@creator.co/wapi - v1.8.1
    Preparing search index...

    Type Alias DatabaseClass<T>

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

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

    Type Parameters

    • T

      The type of data the KyselyDatabase instance will handle.

    Index

    Properties

    Properties

    dynamo: new (...args: any[]) => DynamoDatabase
    knex: new (...args: any[]) => KnexDatabase

    Constructor for KnexDatabase instances.

    kysely: new (...args: any[]) => KyselyDatabase<T>

    Constructor for KyselyDatabase instances with type T.

    pg: new (...args: any[]) => PostgresDatabase

    Constructor for PostgresDatabase instances.