@supabase/lite 0.2.1-next.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/STATUS.md +7 -6
- package/dist/{Connection-rAPmec1m.d.ts → Connection-CSVCuMv-.d.ts} +1 -152
- package/dist/cli/index.js +152 -128
- package/dist/cli/lib.js +39 -36
- package/dist/db/browser/index.d.ts +3 -532
- package/dist/db/browser/index.js +3 -207
- package/dist/db/bun/index.d.ts +3 -532
- package/dist/db/bun/index.js +3 -207
- package/dist/db/fallback.d.ts +4 -180
- package/dist/db/fallback.js +2 -205
- package/dist/db/node/index.d.ts +3 -532
- package/dist/db/node/index.js +3 -207
- package/dist/db/postgres/{BasePostgresConnection-B7zHDAib.d.ts → BasePostgresConnection-Clykq58D.d.ts} +1 -1
- package/dist/db/postgres/PostgresConnection.d.ts +1 -1
- package/dist/db/postgres/PostgresConnection.js +21 -25
- package/dist/db/postgres/pglite/PgliteConnection.d.ts +1 -1
- package/dist/db/postgres/pglite/PgliteConnection.js +25 -27
- package/dist/db/workerd/index.d.ts +6 -535
- package/dist/db/workerd/index.js +2 -206
- package/dist/index.d.ts +329 -7
- package/dist/index.js +252 -54
- package/dist/vite/index.js +2 -6
- package/package.json +4 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,169 @@
|
|
|
1
1
|
import * as _supabase_supabase_js from '@supabase/supabase-js';
|
|
2
2
|
import { SupabaseClientOptions } from '@supabase/supabase-js';
|
|
3
3
|
import { D as DefaultSchema, S as Schema } from './index-xv_pDjEt.js';
|
|
4
|
-
import { Connection } from '@supabase/lite';
|
|
4
|
+
import { Connection, ConnectionMigrator, MaybePromise as MaybePromise$1, SchemaDiffResult, PlanStep, PlanResult, IConnectionConfig, Dialect as Dialect$2, IntrospectResult as IntrospectResult$1, TransactionOptions } from '@supabase/lite';
|
|
5
5
|
import * as hono_hono_base from 'hono/hono-base';
|
|
6
|
-
import { b as CacheDriver, c as CacheSetOptions,
|
|
7
|
-
export {
|
|
6
|
+
import { W as Where, a as IntrospectResult, b as CacheDriver, c as CacheSetOptions, A as AnyAST, V as VarsContext, T as TransactionOptions$1 } from './Connection-CSVCuMv-.js';
|
|
7
|
+
export { d as AST, e as ASTType, f as AggregateFunction, B as BaseAST, g as BodyResult, h as CheckConstraintInfo, i as ColumnDef, j as ColumnDiff, k as ColumnInfo, l as ColumnRef, m as CommentInfo, C as Connection, n as ConnectionContextOptions, o as ConnectionMigrator, p as CustomTypesInfo, D as DataLossError, q as DataLossWarning, r as DeleteAST, s as Dialect, t as DiffResult, E as EmbedDef, u as EmbedTransform, v as ExplainOptions, F as FiltersResult, w as ForeignKeyDiff, x as ForeignKeyInfo, H as HeadersResult, I as IConnectionConfig, y as IndexDiff, z as IndexInfo, G as InsertAST, J as IntrospectOptions, K as JoinDef, L as JoinMap, M as Meta, N as MigrationError, O as OrderEntry, P as PlanResult, Q as PlanStep, R as PlanStepType, S as PreferToken, U as PrimaryKeyInfo, X as Qb, Y as QbDelete, Z as QbInsert, _ as QbSelect, $ as QbUpdate, a0 as QueryAST, a1 as QueryParamsResult, a2 as RelationNotFoundError, a3 as RouteResult, a4 as RpcAST, a5 as RpcResult, a6 as SchemaDiffResult, a7 as SelectEntry, a8 as SelectResult, a9 as TableDiff, aa as TableInfo, ab as TextSearchValue, ac as TransformsResult, ad as TranslatorConfig, ae as TriggerInfo, af as UniqueConstraintInfo, ag as UpdateAST, ah as UpsertAST, ai as UpsertResult, aj as ViewInfo, ak as WhereValue, al as isRef } from './Connection-CSVCuMv-.js';
|
|
8
8
|
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
9
9
|
import * as hono_utils_types from 'hono/utils/types';
|
|
10
10
|
import * as hono_types from 'hono/types';
|
|
11
11
|
import * as hono from 'hono';
|
|
12
12
|
import { MiddlewareHandler, Context } from 'hono';
|
|
13
|
-
import { Kysely } from 'kysely';
|
|
13
|
+
import { Kysely, KyselyPlugin } from 'kysely';
|
|
14
14
|
import { ReadableStream as ReadableStream$1 } from 'node:stream/web';
|
|
15
|
+
import { ParseResult } from 'libpg-query';
|
|
16
|
+
import { DeparserOptions } from 'pgsql-deparser';
|
|
15
17
|
import 'jsonv-ts';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
type TUnwrappedConst = string | number | boolean | null | undefined;
|
|
20
|
+
|
|
21
|
+
type PolicyCommand = "SELECT" | "INSERT" | "UPDATE" | "DELETE" | "ALL";
|
|
22
|
+
type PolicyRole = "anon" | "authenticated" | string;
|
|
23
|
+
interface PolicyData {
|
|
24
|
+
name: string;
|
|
25
|
+
table: string;
|
|
26
|
+
schema?: string;
|
|
27
|
+
command: PolicyCommand;
|
|
28
|
+
permissive: boolean;
|
|
29
|
+
roles: PolicyRole[];
|
|
30
|
+
using?: Where;
|
|
31
|
+
withCheck?: Where;
|
|
32
|
+
}
|
|
33
|
+
declare class Policy {
|
|
34
|
+
readonly data: PolicyData;
|
|
35
|
+
constructor(data: PolicyData);
|
|
36
|
+
appliesTo(cmd: "SELECT" | "INSERT" | "UPDATE" | "DELETE"): boolean;
|
|
37
|
+
appliesToRole(role: string): boolean;
|
|
38
|
+
toJSON(): PolicyData;
|
|
39
|
+
static fromJSON(data: PolicyData): Policy;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class CheckConstraintError extends Error {
|
|
43
|
+
readonly table: string;
|
|
44
|
+
readonly column: string;
|
|
45
|
+
readonly constraint: string;
|
|
46
|
+
readonly value: unknown;
|
|
47
|
+
constructor(table: string, column: string, constraint: string, value: unknown);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
type SqliteType = "INTEGER" | "REAL" | "TEXT" | "BLOB" | "ANY";
|
|
51
|
+
type DefaultFn = () => unknown;
|
|
52
|
+
interface ValidationResult {
|
|
53
|
+
status: "pass" | "warn" | "fail";
|
|
54
|
+
message: string | null;
|
|
55
|
+
action?: string;
|
|
56
|
+
}
|
|
57
|
+
interface FieldContext {
|
|
58
|
+
schema: string;
|
|
59
|
+
table: string;
|
|
60
|
+
column: string;
|
|
61
|
+
pgTypeName: string;
|
|
62
|
+
nullable: boolean;
|
|
63
|
+
defaultValue: string | null;
|
|
64
|
+
defaultFn?: DefaultFn | null;
|
|
65
|
+
isPrimaryKey: boolean;
|
|
66
|
+
isUnique: boolean;
|
|
67
|
+
isSerial: boolean;
|
|
68
|
+
isGenerated?: boolean;
|
|
69
|
+
fkRef?: {
|
|
70
|
+
refSchema?: string;
|
|
71
|
+
refTable: string;
|
|
72
|
+
refColumn: string;
|
|
73
|
+
constraintName?: string;
|
|
74
|
+
};
|
|
75
|
+
hasCheck?: boolean;
|
|
76
|
+
checkConstraintName?: string;
|
|
77
|
+
uniqueConstraintName?: string;
|
|
78
|
+
}
|
|
79
|
+
interface ColumnDDLOptions {
|
|
80
|
+
includeNullable?: boolean;
|
|
81
|
+
}
|
|
82
|
+
declare abstract class Field {
|
|
83
|
+
readonly context: FieldContext;
|
|
84
|
+
constructor(context: FieldContext);
|
|
85
|
+
abstract get sqliteType(): SqliteType;
|
|
86
|
+
get isShimBacked(): boolean;
|
|
87
|
+
checkConstraint(): string | null;
|
|
88
|
+
serialize(value: unknown): unknown;
|
|
89
|
+
deserialize(value: unknown): unknown;
|
|
90
|
+
validateStorage(_rawSqliteValue: unknown): ValidationResult;
|
|
91
|
+
protected validationFail(message: string, action?: string): ValidationResult;
|
|
92
|
+
protected validationPass(): ValidationResult;
|
|
93
|
+
protected isNullish(value: unknown): value is null | undefined;
|
|
94
|
+
toColumnDDL(options?: ColumnDDLOptions): string;
|
|
95
|
+
protected checkError(constraint: string, value: unknown): CheckConstraintError;
|
|
96
|
+
protected quoteIfNeeded(name: string): string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type FunctionResolutionMode = "synthetic" | "translate" | "auto";
|
|
100
|
+
|
|
101
|
+
declare class TableSchema {
|
|
102
|
+
readonly table: string;
|
|
103
|
+
readonly schema: string;
|
|
104
|
+
private fields;
|
|
105
|
+
constructor(table: string, schema?: string, fields?: Map<string, Field>);
|
|
106
|
+
get(col: string): Field | undefined;
|
|
107
|
+
has(col: string): boolean;
|
|
108
|
+
set(col: string, field: Field): void;
|
|
109
|
+
columns(): string[];
|
|
110
|
+
all(): Field[];
|
|
111
|
+
serializeRow(row: Record<string, unknown>): Record<string, unknown>;
|
|
112
|
+
deserializeRow(row: Record<string, unknown>): Record<string, unknown>;
|
|
113
|
+
applyDefaults(row: Record<string, unknown>): Record<string, unknown>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
type CollectedEnums = Map<string, string[]>;
|
|
117
|
+
type CollectedVariable = {
|
|
118
|
+
local?: boolean;
|
|
119
|
+
value: TUnwrappedConst;
|
|
120
|
+
};
|
|
121
|
+
type CollectedVariables = Map<string, CollectedVariable>;
|
|
122
|
+
type CollectedRlsTables = Set<string>;
|
|
123
|
+
type CollectedSchema = Map<string, TableSchema>;
|
|
124
|
+
type CollectedTableConstraint = {
|
|
125
|
+
schema: string;
|
|
126
|
+
table: string;
|
|
127
|
+
kind: "unique" | "check" | "foreign_key";
|
|
128
|
+
name?: string;
|
|
129
|
+
columns: string[];
|
|
130
|
+
refSchema?: string;
|
|
131
|
+
refTable?: string;
|
|
132
|
+
refColumns?: string[];
|
|
133
|
+
};
|
|
134
|
+
type CollectedComment = {
|
|
135
|
+
schema: string;
|
|
136
|
+
table: string;
|
|
137
|
+
column?: string;
|
|
138
|
+
text: string;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
type SchemaHandling = "default" | "prefix";
|
|
142
|
+
interface DeparseOptions extends DeparserOptions {
|
|
143
|
+
schemaHandling?: SchemaHandling;
|
|
144
|
+
forceDefaultSchema?: string | false;
|
|
145
|
+
enums?: CollectedEnums;
|
|
146
|
+
/** Current DB introspection. Required for ALTER TABLE ops that need 12-step rebuild. */
|
|
147
|
+
introspection?: IntrospectResult;
|
|
148
|
+
functionResolution?: FunctionResolutionMode;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare function translatePostgresDdl(pgSql: string, options?: DeparseOptions): Promise<string>;
|
|
152
|
+
declare function deparsePostgresDdl(pgSql: string, options?: DeparseOptions & {
|
|
153
|
+
strict?: boolean;
|
|
154
|
+
}): Promise<{
|
|
155
|
+
ddl: string;
|
|
156
|
+
enums: CollectedEnums;
|
|
157
|
+
rls: {
|
|
158
|
+
tables: CollectedRlsTables;
|
|
159
|
+
policies: Policy[];
|
|
160
|
+
};
|
|
161
|
+
schema: CollectedSchema;
|
|
162
|
+
vars: CollectedVariables;
|
|
163
|
+
tableConstraints: CollectedTableConstraint[];
|
|
164
|
+
comments: CollectedComment[];
|
|
165
|
+
ast: ParseResult;
|
|
166
|
+
}>;
|
|
18
167
|
|
|
19
168
|
interface UsersTable {
|
|
20
169
|
id: string;
|
|
@@ -2356,6 +2505,179 @@ declare class InvalidPostgresToSQLiteTranslation extends Error {
|
|
|
2356
2505
|
constructor(pgSql: string, sqliteDdl: string, cause: Error | unknown);
|
|
2357
2506
|
}
|
|
2358
2507
|
|
|
2508
|
+
type SqliteMigratorOptions = {
|
|
2509
|
+
onTranslation?: (result: SqlitePostgresTranslationResult) => MaybePromise$1<void>;
|
|
2510
|
+
};
|
|
2511
|
+
declare class SqliteMigrator implements ConnectionMigrator {
|
|
2512
|
+
private readonly conn;
|
|
2513
|
+
private readonly desiredSchema;
|
|
2514
|
+
private readonly options;
|
|
2515
|
+
private readonly differ;
|
|
2516
|
+
private readonly planner;
|
|
2517
|
+
translationResult?: SqlitePostgresTranslationResult;
|
|
2518
|
+
constructor(conn: SqliteConnection, desiredSchema: string, options?: SqliteMigratorOptions);
|
|
2519
|
+
getDesiredSchema(): Promise<string>;
|
|
2520
|
+
diff(): Promise<SchemaDiffResult>;
|
|
2521
|
+
safeSortPlanSteps(steps: PlanStep[]): PlanStep[];
|
|
2522
|
+
migratePlan(planResult: PlanResult, opts?: {
|
|
2523
|
+
force?: boolean;
|
|
2524
|
+
}): Promise<void>;
|
|
2525
|
+
migrate(opts?: {
|
|
2526
|
+
force?: boolean;
|
|
2527
|
+
}): Promise<SchemaDiffResult>;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
interface ISqliteConnectionConfig extends IConnectionConfig {
|
|
2531
|
+
/**
|
|
2532
|
+
* The origin dialect for schema declarations. If "postgres",
|
|
2533
|
+
* the schema declarations will be translated to SQLite syntax.
|
|
2534
|
+
* If "sqlite", the schema declarations will be left as is.
|
|
2535
|
+
* @default "postgres"
|
|
2536
|
+
*/
|
|
2537
|
+
ddlDialect?: "postgres" | "sqlite";
|
|
2538
|
+
/**
|
|
2539
|
+
* The origin dialect for query execution. If "sqlite", the queries will be executed as is.
|
|
2540
|
+
* Currently only "sqlite" is supported.
|
|
2541
|
+
* @default "sqlite"
|
|
2542
|
+
*/
|
|
2543
|
+
queryDialect?: "sqlite";
|
|
2544
|
+
/**
|
|
2545
|
+
* Max bound parameters per statement. Enforced across all SQLite drivers
|
|
2546
|
+
* for portability: drivers and hosts vary in how many parameters they
|
|
2547
|
+
* accept (e.g. Cloudflare D1, sqlite-wasm), so we cap conservatively.
|
|
2548
|
+
* Statements exceeding this throw before execution.
|
|
2549
|
+
* @default 100
|
|
2550
|
+
*/
|
|
2551
|
+
maxBoundParameters?: number;
|
|
2552
|
+
/**
|
|
2553
|
+
* Translation options for SQLite databases
|
|
2554
|
+
*/
|
|
2555
|
+
translation?: {
|
|
2556
|
+
/**
|
|
2557
|
+
* The approach to take when translating PostgreSQL schema declarations to SQLite syntax.
|
|
2558
|
+
* Only applies if `ddl` is "postgres".
|
|
2559
|
+
*/
|
|
2560
|
+
schemas?: {
|
|
2561
|
+
/**
|
|
2562
|
+
* The approach to take when translating PostgreSQL schema declarations to SQLite syntax.
|
|
2563
|
+
* If "quote" -> `public`.`table` -> `"public.table"`
|
|
2564
|
+
* If "snake_case" -> `public`.`table` -> `public__table`
|
|
2565
|
+
* @default "quote"
|
|
2566
|
+
*/
|
|
2567
|
+
approach?: "quote" | "snake_case";
|
|
2568
|
+
/**
|
|
2569
|
+
* Whether to append the default schema to the table name when a table does not have a schema
|
|
2570
|
+
* @default false
|
|
2571
|
+
*/
|
|
2572
|
+
appendDefaultSchema?: boolean;
|
|
2573
|
+
/**
|
|
2574
|
+
* The default schema to use when a table does not have a schema
|
|
2575
|
+
* @default "public"
|
|
2576
|
+
*/
|
|
2577
|
+
defaultSchema?: string | false;
|
|
2578
|
+
};
|
|
2579
|
+
/**
|
|
2580
|
+
* Deparse details the connection must be aware of
|
|
2581
|
+
*/
|
|
2582
|
+
deparse?: SqlitePostgresDeparseInfo;
|
|
2583
|
+
};
|
|
2584
|
+
}
|
|
2585
|
+
type DeparsePostgresDdlResult = Awaited<ReturnType<typeof deparsePostgresDdl>>;
|
|
2586
|
+
type SqlitePostgresDeparseInfo = Pick<DeparsePostgresDdlResult, "enums" | "rls" | "schema" | "vars"> & Partial<Pick<DeparsePostgresDdlResult, "tableConstraints" | "comments">>;
|
|
2587
|
+
type SqlitePostgresTranslationResult = Pick<DeparsePostgresDdlResult, "ddl"> & Partial<DeparsePostgresDdlResult>;
|
|
2588
|
+
declare abstract class SqliteConnection<Driver = unknown, DB = any, Config extends ISqliteConnectionConfig = ISqliteConnectionConfig> extends Connection<Driver, DB, Config> {
|
|
2589
|
+
dialect: Dialect$2;
|
|
2590
|
+
deserializeRow(row: Record<string, unknown>): Record<string, unknown>;
|
|
2591
|
+
constructor(config?: Config);
|
|
2592
|
+
static parseDeparseInfo(details: any): {
|
|
2593
|
+
rls?: undefined;
|
|
2594
|
+
vars?: undefined;
|
|
2595
|
+
} | {
|
|
2596
|
+
rls: {
|
|
2597
|
+
tables: any;
|
|
2598
|
+
policies: any;
|
|
2599
|
+
};
|
|
2600
|
+
vars: any;
|
|
2601
|
+
};
|
|
2602
|
+
updateDeparseInfo(details: NonNullable<ISqliteConnectionConfig["translation"]>["deparse"]): void;
|
|
2603
|
+
protected withSqlitePlugins(add_plugins?: KyselyPlugin[]): KyselyPlugin[];
|
|
2604
|
+
translateDdl(ddl: string): Promise<SqlitePostgresTranslationResult>;
|
|
2605
|
+
introspect(options?: {
|
|
2606
|
+
useCache?: boolean;
|
|
2607
|
+
postprocess?: boolean;
|
|
2608
|
+
}): Promise<IntrospectResult$1>;
|
|
2609
|
+
transaction(statements: string[], opts?: TransactionOptions): Promise<void>;
|
|
2610
|
+
close(): Promise<void>;
|
|
2611
|
+
/**
|
|
2612
|
+
* When ddlDialect === "postgres", enrich the PRAGMA-derived IntrospectResult
|
|
2613
|
+
* with metadata recovered from the parsed Postgres DDL: real FK constraint
|
|
2614
|
+
* names, table-level UNIQUE/CHECK constraints, column pg_type / is_generated,
|
|
2615
|
+
* and comments.
|
|
2616
|
+
*/
|
|
2617
|
+
private mergeDeparseMetadata;
|
|
2618
|
+
private markForeignKeyVisibility;
|
|
2619
|
+
/**
|
|
2620
|
+
* Create a migrator for the given schema.
|
|
2621
|
+
* @param desiredSchema The desired schema to migrate to. Input DDL is expected to be `config.ddlDialect`.
|
|
2622
|
+
* @returns A migrator instance.
|
|
2623
|
+
*/
|
|
2624
|
+
createMigrator(desiredSchema: string): SqliteMigrator;
|
|
2625
|
+
get maxBoundParameters(): number;
|
|
2626
|
+
/**
|
|
2627
|
+
* Throws if the compiled statement has more bound parameters than
|
|
2628
|
+
* `maxBoundParameters`. Drivers call this from their query executor so
|
|
2629
|
+
* the same limit is enforced regardless of host capability.
|
|
2630
|
+
*/
|
|
2631
|
+
assertParamLimit(parameters: readonly unknown[] | undefined): void;
|
|
2632
|
+
/**
|
|
2633
|
+
* Asserts the parameter limit and normalizes bind values. Drivers call
|
|
2634
|
+
* this once per statement; same limit and same value coercion everywhere.
|
|
2635
|
+
*/
|
|
2636
|
+
prepareBindParams(parameters: readonly unknown[] | undefined): unknown[];
|
|
2637
|
+
/**
|
|
2638
|
+
* Coerces JS values to types every SQLite driver accepts. Drivers vary:
|
|
2639
|
+
* `bun:sqlite` silently coerces booleans, `node:sqlite` throws. Normalize
|
|
2640
|
+
* centrally so the executor boundary behaves identically everywhere.
|
|
2641
|
+
*
|
|
2642
|
+
* - `undefined` is dropped (matches prior DO behaviour and Kysely slots
|
|
2643
|
+
* that never bound a value).
|
|
2644
|
+
* - `boolean` → `0` / `1`.
|
|
2645
|
+
* - pass-through: `null`, `number`, `bigint`, `string`, `Uint8Array`,
|
|
2646
|
+
* `ArrayBuffer`, `Date` (drivers handle these, or upstream field
|
|
2647
|
+
* serializers have already converted).
|
|
2648
|
+
* - unknown types throw with the offending index so divergence surfaces
|
|
2649
|
+
* loudly instead of as a driver-specific bind error.
|
|
2650
|
+
*/
|
|
2651
|
+
normalizeBindParams(parameters: readonly unknown[] | undefined): unknown[];
|
|
2652
|
+
normalizeDbError(e: unknown): unknown;
|
|
2653
|
+
onPostgrestAST(ast: AnyAST, vars?: VarsContext): Promise<AnyAST>;
|
|
2654
|
+
private applyRls;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
interface ICloudConnectionConfig extends ISqliteConnectionConfig {
|
|
2658
|
+
projectRef: string;
|
|
2659
|
+
token: string;
|
|
2660
|
+
host: string;
|
|
2661
|
+
}
|
|
2662
|
+
declare class CloudConnection<DB = any> extends SqliteConnection<never, DB> {
|
|
2663
|
+
readonly config: ICloudConnectionConfig;
|
|
2664
|
+
dialect: "sqlite";
|
|
2665
|
+
driver: never;
|
|
2666
|
+
kysely: never;
|
|
2667
|
+
constructor(config: ICloudConnectionConfig);
|
|
2668
|
+
private fetch;
|
|
2669
|
+
introspect(options?: {
|
|
2670
|
+
useCache?: boolean;
|
|
2671
|
+
postprocess?: boolean;
|
|
2672
|
+
}): Promise<IntrospectResult>;
|
|
2673
|
+
transaction(statements: string[], opts?: TransactionOptions$1): Promise<void>;
|
|
2674
|
+
exec<T = {
|
|
2675
|
+
rows: unknown[];
|
|
2676
|
+
} | void>(statement: string, ...parameters: readonly unknown[]): Promise<T>;
|
|
2677
|
+
close(): Promise<void>;
|
|
2678
|
+
}
|
|
2679
|
+
declare function cloud<DB = any>(config: ICloudConnectionConfig): CloudConnection<DB>;
|
|
2680
|
+
|
|
2359
2681
|
type Primitive = string | number | boolean;
|
|
2360
2682
|
declare function isPrimitive(value: any): value is Primitive;
|
|
2361
2683
|
type BooleanLike = boolean | 0 | 1;
|
|
@@ -2495,4 +2817,4 @@ declare function isExperimentalEnabled(name: ExperimentalFeature): boolean;
|
|
|
2495
2817
|
declare function setExperimental(name: ExperimentalFeature, enabled: boolean): void;
|
|
2496
2818
|
declare function listEnabledExperimentals(): ExperimentalFeature[];
|
|
2497
2819
|
|
|
2498
|
-
export { App, type AppDrivers, AwsSesEmailDriver, type AwsSesEmailDriverOptions, type BooleanLike, CacheDriver, CacheSetOptions, CloudflareKvCacheDriver, type CloudflareKvCacheDriverOptions, type DefaultAppConfig, type EmailDriver, type EmailMessage, type ExperimentalFeature, type HonoContext, type IAppConfig, InMemoryEmailDriver, type InMemoryEmailDriverOptions, InMemoryLruCacheDriver, type InMemoryLruCacheDriverOptions, InvalidPostgresToSQLiteTranslation, type MatchPattern, type MaybePromise, NoopEmailDriver, type NoopEmailDriverOptions, NoopSmsDriver, type NoopSmsDriverOptions, type PartialAppDrivers, type Primitive, type RedisCacheClient, RedisCacheDriver, type RedisCacheDriverOptions, ResendEmailDriver, type ResendEmailDriverOptions, Schema, SendmailEmailDriver, type SendmailEmailDriverOptions, type ServerOptions, type SmsDriver, type SmsMessage, type StoredEmailMessage, UnableToCreateRuntimeConnection, checkPasswordStrength, cleanSql, createAppDrivers, ensureVar, filterSearchParams, formatSendmailMessage, fuzzyMatch, getAuthSchemaSql, getPath, getStatementsArray, invariant, isBooleanLike, isBun, isEmail, isEqual, isExperimentalEnabled, isNode, isObject, isPlainObject, isPrimitive, isString, jsonStringify, listEnabledExperimentals, measureTime, mergeObject, mergeObjectWith, normalizeDefault, normalizeSql, normalizeString, normalizeType, objectDiff, omit, params, parseBigInt, patternMatch, pick, pipe, pipeEach, quote, randomString, replacePlaceholders, requireAuth, resolveAuth, setExperimental, setPath, slugify, snakeToPascalWithSpaces, splitSqlStatements, studioRouteHandler, threw, threwAsync, truncate, trySync, ucFirst, ucFirstAll, uuid };
|
|
2820
|
+
export { AnyAST, App, type AppDrivers, AwsSesEmailDriver, type AwsSesEmailDriverOptions, type BooleanLike, CacheDriver, CacheSetOptions, CloudConnection, CloudflareKvCacheDriver, type CloudflareKvCacheDriverOptions, type DefaultAppConfig, type EmailDriver, type EmailMessage, type ExperimentalFeature, type HonoContext, type IAppConfig, type ICloudConnectionConfig, type ISqliteConnectionConfig, InMemoryEmailDriver, type InMemoryEmailDriverOptions, InMemoryLruCacheDriver, type InMemoryLruCacheDriverOptions, IntrospectResult, InvalidPostgresToSQLiteTranslation, type MatchPattern, type MaybePromise, NoopEmailDriver, type NoopEmailDriverOptions, NoopSmsDriver, type NoopSmsDriverOptions, type PartialAppDrivers, type Primitive, type RedisCacheClient, RedisCacheDriver, type RedisCacheDriverOptions, ResendEmailDriver, type ResendEmailDriverOptions, Schema, SendmailEmailDriver, type SendmailEmailDriverOptions, type ServerOptions, type SmsDriver, type SmsMessage, SqliteConnection, type SqlitePostgresTranslationResult, type StoredEmailMessage, TransactionOptions$1 as TransactionOptions, UnableToCreateRuntimeConnection, VarsContext, Where, checkPasswordStrength, cleanSql, cloud, createAppDrivers, ensureVar, filterSearchParams, formatSendmailMessage, fuzzyMatch, getAuthSchemaSql, getPath, getStatementsArray, invariant, isBooleanLike, isBun, isEmail, isEqual, isExperimentalEnabled, isNode, isObject, isPlainObject, isPrimitive, isString, jsonStringify, listEnabledExperimentals, measureTime, mergeObject, mergeObjectWith, normalizeDefault, normalizeSql, normalizeString, normalizeType, objectDiff, omit, params, parseBigInt, patternMatch, pick, pipe, pipeEach, quote, randomString, replacePlaceholders, requireAuth, resolveAuth, setExperimental, setPath, slugify, snakeToPascalWithSpaces, splitSqlStatements, studioRouteHandler, threw, threwAsync, translatePostgresDdl, truncate, trySync, ucFirst, ucFirstAll, uuid };
|