Skip to main content

database_instances

Creates, updates, deletes, gets or lists a database_instances resource.

Overview

Namedatabase_instances
TypeResource
Iddeno.databases.database_instances

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertslug, connectionCreate a new database instance owned by the organization. Supported engines: postgresql (bring-your-own server), denokv (Deno-managed key-value), and prisma (Prisma-managed Postgres).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

INSERT examples

Create a new database instance owned by the organization. Supported engines: postgresql (bring-your-own server), denokv (Deno-managed key-value), and prisma (Prisma-managed Postgres).

INSERT INTO deno.databases.database_instances (
slug,
connection
)
SELECT
'{{ slug }}' /* required */,
'{{ connection }}' /* required */
RETURNING
id,
connection,
created_at,
databases,
engine,
slug
;