Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.DatabaseIntrospector

Kysely dialect for PostgreSQL using the Postgres.js client.
Go to Latest
interface kysely.DatabaseIntrospector
Re-export
import { type kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { DatabaseIntrospector } = kysely;

An interface for getting the database metadata (names of the tables and columns etc.)

Methods

getSchemas(): Promise<SchemaMetadata[]>

Get schema metadata.

getTables(options?: DatabaseMetadataOptions): Promise<TableMetadata[]>

Get tables and views metadata.

deprecated
getMetadata(options?: DatabaseMetadataOptions): Promise<DatabaseMetadata>

Get the database metadata such as table and column names.