TenantAtlas/apps/platform/.pnpm-store/v10/files/ad/0156f5495f7a841715c7886c685972c400e9d2345042768a8060b45b37c6d145714c3e707c658d980e4e54746359564129f212fe8681900a96e490cc74d4de
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

31 lines
1.1 KiB
Plaintext

import type { SQLOptions } from 'bun';
import { SQL } from 'bun';
import { entityKind } from "../entity.cjs";
import { PgDatabase } from "../pg-core/db.cjs";
import { type DrizzleConfig } from "../utils.cjs";
import type { BunSQLQueryResultHKT } from "./session.cjs";
export declare class BunSQLDatabase<TSchema extends Record<string, unknown> = Record<string, never>> extends PgDatabase<BunSQLQueryResultHKT, TSchema> {
static readonly [entityKind]: string;
}
export declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends SQL = SQL>(...params: [
TClient | string
] | [
TClient | string,
DrizzleConfig<TSchema>
] | [
(DrizzleConfig<TSchema> & ({
connection: string | ({
url?: string;
} & SQLOptions);
} | {
client: TClient;
}))
]): BunSQLDatabase<TSchema> & {
$client: TClient;
};
export declare namespace drizzle {
function mock<TSchema extends Record<string, unknown> = Record<string, never>>(config?: DrizzleConfig<TSchema>): BunSQLDatabase<TSchema> & {
$client: '$client is not available on drizzle.mock()';
};
}