Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kysely_postgrs_js_dialect/deps.ts>DatabaseIntrospector

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

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.