Beignet API reference
    Preparing search index...

    Interface DbPort<TSchema>

    Typed database port interface. Exposes a typed Drizzle database instance for your schema.

    interface DbPort<
        TSchema extends Record<string, unknown> = Record<string, unknown>,
    > {
        client: Client;
        db: LibSQLDatabase<TSchema>;
    }

    Type Parameters

    • TSchema extends Record<string, unknown> = Record<string, unknown>

      The Drizzle schema type (e.g., typeof schema)

    Index

    Properties

    Properties

    client: Client

    The underlying libSQL client instance. Use this for advanced operations not covered by Drizzle ORM.

    db: LibSQLDatabase<TSchema>

    The typed Drizzle database instance. Use this to query your database with full type safety.