kysely-codegen
Version:
`kysely-codegen` generates Kysely type definitions from your database. That's it.
25 lines (24 loc) • 717 B
TypeScript
import type { Dialect as KyselyDialect } from 'kysely';
import type { Introspector } from '../introspector';
import type { Adapter } from './adapter';
export type CreateKyselyDialectOptions = {
connectionString: string;
ssl?: boolean;
};
/**
* A Dialect is the glue between the codegen and the specified database.
*/
export declare abstract class Dialect {
/**
* The adapter for the dialect.
*/
abstract readonly adapter: Adapter;
/**
* The introspector for the dialect.
*/
abstract readonly introspector: Introspector<any>;
/**
* Creates a Kysely dialect.
*/
abstract createKyselyDialect(options: CreateKyselyDialectOptions): Promise<KyselyDialect>;
}