import { UNBOUND_NAMESPACE_ID } from "@prisma-next/framework-components/ir"; import { orm } from "@prisma-next/sql-orm-client"; import { BindSiteParams, Declaration, ExecutionContext, ParamsFromDeclaration, PreparedStatement, Runtime, SqlExecutionStackWithDriver, SqlMiddleware, SqlRuntimeExtensionDescriptor, TransactionContext, VerifyMarkerOption } from "@prisma-next/sql-runtime"; import { NamespacedEnums } from "@prisma-next/contract/enum-accessor"; import { CodecTypesBase, RawSqlTag } from "@prisma-next/sql-relational-core/expression"; import { ExtractCodecTypes, SqlStorage } from "@prisma-next/sql-contract/types"; import { Contract } from "@prisma-next/contract/types"; import { Db } from "@prisma-next/sql-builder/types"; import { SqlQueryPlan } from "@prisma-next/sql-relational-core/plan"; //#region src/static/sqlite-static.d.ts type UnboundSql$1> = Db[typeof UNBOUND_NAMESPACE_ID]; type UnboundEnums> = NamespacedEnums[typeof UNBOUND_NAMESPACE_ID]; interface SqliteStaticContext> { readonly context: ExecutionContext; readonly contract: TContract; readonly enums: UnboundEnums; readonly sql: UnboundSql$1; readonly raw: RawSqlTag; } declare function sqliteStatic>(options: { readonly contractJson: unknown; readonly extensions?: readonly SqlRuntimeExtensionDescriptor[]; }): SqliteStaticContext; //#endregion //#region src/runtime/sqlite.d.ts type SqliteTargetId = 'sqlite'; type OrmClient> = ReturnType>; type UnboundSql> = Db[typeof UNBOUND_NAMESPACE_ID]; type UnboundOrm> = OrmClient[typeof UNBOUND_NAMESPACE_ID]; interface SqliteTransactionContext> extends TransactionContext { readonly sql: UnboundSql; readonly orm: UnboundOrm; readonly enums: SqliteStaticContext['enums']; } interface SqliteClient> { readonly sql: UnboundSql; readonly orm: UnboundOrm; readonly enums: SqliteStaticContext['enums']; readonly raw: RawSqlTag; readonly context: ExecutionContext; readonly contract: TContract; readonly stack: SqlExecutionStackWithDriver; connect(bindingInput?: { readonly path: string; }): Promise; runtime(): Runtime; prepare, Row, CT extends CodecTypesBase = ExtractCodecTypes & CodecTypesBase>(declaration: D, callback: (sql: UnboundSql, params: BindSiteParams) => SqlQueryPlan): Promise, Row>>; transaction(fn: (tx: SqliteTransactionContext) => PromiseLike): Promise; close(): Promise; [Symbol.asyncDispose](): Promise; } interface SqliteOptionsBase { readonly extensions?: readonly SqlRuntimeExtensionDescriptor[]; readonly middleware?: readonly SqlMiddleware[]; readonly verifyMarker?: VerifyMarkerOption; } type SqliteOptionsWithContract> = { readonly path?: string; } & SqliteOptionsBase & { readonly contract: TContract; readonly contractJson?: never; }; type SqliteOptionsWithContractJson> = { readonly path?: string; readonly _contract?: TContract; } & SqliteOptionsBase & { readonly contractJson: unknown; readonly contract?: never; }; type SqliteOptions> = SqliteOptionsWithContract | SqliteOptionsWithContractJson; declare function sqlite>(options: SqliteOptionsWithContract): SqliteClient; declare function sqlite>(options: SqliteOptionsWithContractJson): SqliteClient; //#endregion export { SqliteOptionsWithContractJson as a, SqliteStaticContext as c, SqliteOptionsWithContract as i, sqliteStatic as l, SqliteOptions as n, SqliteTargetId as o, SqliteOptionsBase as r, sqlite as s, SqliteClient as t }; //# sourceMappingURL=sqlite-BI5VuEiB.d.mts.map