DatabaseClass<T>: {
    dynamo: (new (...args: any[]) => DynamoDatabase);
    kysely: (new (...args: any[]) => KyselyDatabase<T>);
    pg: (new (...args: any[]) => PostgresDatabase);
}

Defines a type for a database class that includes instances for Postgres, and Kysely databases.

Type Parameters

  • T

    The type of data the KyselyDatabase instance will handle.