sasat 0.22.8 → 0.22.9

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/dist/index.d.mts CHANGED
@@ -1,495 +1,3 @@
1
- import { i as setConfig, n as ComparisonOperators, t as ComparisonExpression$1 } from "./comparison-CEpYTo3e.mjs";
2
- import { a as SQLExecutor, i as SQLClient, n as DBClient, o as SQLTransaction, r as QueryResponse, s as SqlValueType, t as CommandResponse } from "./dbClient-TBYnlvTc.mjs";
3
- import * as _$mysql2_promise0 from "mysql2/promise";
4
- import { ConnectionOptions, PoolOptions } from "mysql2/promise";
5
- import pkg from "sqlstring";
6
- import { GraphQLResolveInfo } from "graphql";
7
- import Hashids from "hashids";
8
- import { GraphQLResolveInfo as GraphQLResolveInfo$1 } from "graphql/type/index.js";
9
-
10
- //#region src/db/connectors/mysql/client.d.ts
11
- declare class MysqlClient extends DBClient {
12
- readonly connectionOption: ConnectionOptions;
13
- release(): Promise<void>;
14
- constructor(connectionOption: ConnectionOptions, logger?: (query: string) => void);
15
- protected getConnection(): Promise<_$mysql2_promise0.Connection>;
16
- transaction(): Promise<SQLTransaction>;
17
- protected execSql(sql: string): Promise<QueryResponse | CommandResponse>;
18
- }
19
- //#endregion
20
- //#region src/db/formatQuery.d.ts
21
- declare const formatQuery: (str: TemplateStringsArray, ...params: any[]) => string;
22
- //#endregion
23
- //#region src/runtime/dsl/query/query.d.ts
24
- declare enum QueryNodeKind {
25
- Field = 0,
26
- Function = 1,
27
- Table = 2,
28
- Join = 3,
29
- CompoundExpr = 4,
30
- ComparisonExpr = 5,
31
- IsNullExpr = 6,
32
- Parenthesis = 7,
33
- InExpr = 8,
34
- BetweenExpr = 9,
35
- ContainsExpr = 10,
36
- Literal = 11,
37
- Sort = 12,
38
- Identifier = 13,
39
- Exists = 14,
40
- Raw = 15,
41
- GroupBy = 16,
42
- Over = 17,
43
- Window = 18
44
- }
45
- type LockMode = "FOR UPDATE" | "FOR SHARE";
46
- type Query = {
47
- select: SelectExpr[];
48
- from: QueryTable;
49
- where?: BooleanValueExpression;
50
- groupBy?: GroupByExpr;
51
- having?: BooleanValueExpression;
52
- sort?: Sort[];
53
- limit?: number;
54
- offset?: number;
55
- lock?: LockMode;
56
- join?: Join[];
57
- };
58
- type GroupByExpr = {
59
- kind: QueryNodeKind.GroupBy;
60
- cols: (Field | Identifier)[];
61
- };
62
- type Field = {
63
- kind: QueryNodeKind.Field;
64
- table: string;
65
- name: string;
66
- alias?: string;
67
- };
68
- type Fn = {
69
- kind: QueryNodeKind.Function;
70
- fnName: string;
71
- args: Value[];
72
- over?: Over;
73
- alias?: string;
74
- };
75
- type Over = {
76
- kind: QueryNodeKind.Over;
77
- orderBy?: Sort[];
78
- partitionBy?: Identifier[];
79
- window?: Window;
80
- };
81
- type Window = {
82
- kind: QueryNodeKind.Window;
83
- type: "ROWS" | "RANGE";
84
- between: true;
85
- start: WindowContent;
86
- end: WindowContent;
87
- } | {
88
- kind: QueryNodeKind.Window;
89
- type: "ROWS" | "RANGE";
90
- between: false;
91
- value: WindowContent;
92
- };
93
- type WINDOW_TYPES_NO_ARG = "UNBOUNDED PRECEDING" | "UNBOUNDED FOLLOWING" | "CURRENT ROW";
94
- type WINDOW_TYPES_ARG = "PRECEDING" | "FOLLOWING";
95
- type WindowContent = {
96
- type: WINDOW_TYPES_NO_ARG;
97
- } | {
98
- type: WINDOW_TYPES_ARG;
99
- value: number;
100
- };
101
- type SelectExpr = Field | Fn | Identifier | RawExpression;
102
- type QueryTable = {
103
- kind: QueryNodeKind.Table;
104
- alias: string;
105
- joins: Join[];
106
- } & ({
107
- subquery?: false;
108
- name: string;
109
- } | {
110
- subquery: true;
111
- query: Query;
112
- });
113
- type JoinType = "INNER" | "LEFT" | "RIGHT" | "OUTER";
114
- type Join = {
115
- kind: QueryNodeKind.Join;
116
- type?: JoinType;
117
- table: QueryTable;
118
- conditions: BooleanValueExpression;
119
- };
120
- type ParenthesisExpression = {
121
- kind: QueryNodeKind.Parenthesis;
122
- expression: BooleanValueExpression;
123
- };
124
- type RawExpression = {
125
- kind: QueryNodeKind.Raw;
126
- expr: string;
127
- };
128
- type ExistsExpression = {
129
- kind: QueryNodeKind.Exists;
130
- query: Query | RawExpression;
131
- };
132
- type BooleanValueExpression = CompoundExpression | ComparisonExpression | IsNullExpression | ParenthesisExpression | InExpression | BetweenExpression | ContainsExpression | ExistsExpression | RawExpression;
133
- type IsNullExpression = {
134
- kind: QueryNodeKind.IsNullExpr;
135
- expr: Value;
136
- isNot: boolean;
137
- };
138
- type CompoundOperator = "AND" | "OR";
139
- type CompoundExpression = {
140
- kind: QueryNodeKind.CompoundExpr;
141
- left: BooleanValueExpression;
142
- operator: CompoundOperator;
143
- right: BooleanValueExpression;
144
- };
145
- type ComparisonExpression = {
146
- kind: QueryNodeKind.ComparisonExpr;
147
- left: Value;
148
- operator: ComparisonOperators;
149
- right: Value;
150
- };
151
- type ContainType = "start" | "end" | "contains";
152
- type ContainsExpression = {
153
- kind: QueryNodeKind.ContainsExpr;
154
- type: ContainType;
155
- left: Value;
156
- isNot: boolean;
157
- right: string;
158
- };
159
- type InExpression = {
160
- kind: QueryNodeKind.InExpr;
161
- left: Value;
162
- operator: "IN" | "NOT IN";
163
- } & ({
164
- query: Query | RawExpression;
165
- } | {
166
- right: Value[];
167
- });
168
- type BetweenExpression = {
169
- kind: QueryNodeKind.BetweenExpr;
170
- left: Value;
171
- begin: Value;
172
- end: Value;
173
- };
174
- type Value = Literal | Field | Fn | Identifier;
175
- type Identifier = {
176
- kind: QueryNodeKind.Identifier;
177
- identifier: string;
178
- };
179
- type Literal = {
180
- kind: QueryNodeKind.Literal;
181
- value: string | boolean | number | null;
182
- };
183
- type SortDirection = "ASC" | "DESC";
184
- type Sort = {
185
- kind: QueryNodeKind.Sort;
186
- field: Field | Fn | Identifier;
187
- direction?: SortDirection;
188
- };
189
- //#endregion
190
- //#region src/runtime/dsl/query/sql/queryToSql.d.ts
191
- declare const queryToSql: (query: Query) => string;
192
- //#endregion
193
- //#region src/runtime/field.d.ts
194
- type Fields<Entity, Relation = Record<string, unknown>> = {
195
- fields: Array<keyof Entity & string>;
196
- relations?: Relation;
197
- tableAlias?: string;
198
- joinOn?: BooleanValueExpression;
199
- joinType?: "INNER" | "LEFT";
200
- };
201
- //#endregion
202
- //#region src/runtime/dsl/query/createQueryResolveInfo.d.ts
203
- type MakeConditionArg<Context = unknown, Entity = unknown> = {
204
- childTableAlias: string;
205
- context?: Context;
206
- } & ({
207
- parentTableAlias: string;
208
- parent?: undefined;
209
- } | {
210
- parent: Partial<Entity>;
211
- parentTableAlias?: undefined;
212
- });
213
- type MakeCondition<Context, Entity = any> = (arg: MakeConditionArg<Context, Entity>) => BooleanValueExpression;
214
- type RelationInfo<Context = unknown> = {
215
- table: string;
216
- condition: MakeCondition<Context>;
217
- array: boolean;
218
- nullable: boolean;
219
- requiredColumns: string[];
220
- };
221
- type RelationMap<Context = unknown> = {
222
- [from: string]: {
223
- [to: string]: RelationInfo<Context>;
224
- };
225
- };
226
- type TableInfo = {
227
- [tableName: string]: {
228
- identifiableKeys: string[];
229
- identifiableFields: string[];
230
- columnMap: {
231
- [fieldName: string]: string;
232
- };
233
- };
234
- };
235
- //#endregion
236
- //#region src/runtime/sql/runQuery.d.ts
237
- type PagingOption$1 = {
238
- numberOfItem: number;
239
- where?: BooleanValueExpression;
240
- offset?: number;
241
- sort?: Sort[];
242
- join?: Join[];
243
- };
244
- //#endregion
245
- //#region src/runtime/sasatDBDatasource.d.ts
246
- type EntityType = Record<string, SqlValueType>;
247
- type EntityResult<Entity, Identifiable> = Identifiable & Partial<Entity>;
248
- interface Repository<Entity, Identifiable, Creatable, Updatable> {
249
- create(entity: Creatable): Promise<Entity>;
250
- update(entity: Updatable): Promise<CommandResponse>;
251
- delete(entity: Identifiable): Promise<CommandResponse>;
252
- }
253
- type ListQueryOption = {
254
- numberOfItem: number;
255
- offset?: number;
256
- order?: string;
257
- asc?: boolean;
258
- join?: Join[];
259
- };
260
- type QueryOptions = {
261
- where?: BooleanValueExpression;
262
- sort?: Sort[];
263
- limit?: number;
264
- offset?: number;
265
- lock?: LockMode;
266
- join?: Join[];
267
- };
268
- declare abstract class SasatDBDatasource<Entity extends EntityType, Identifiable extends object, Creatable extends EntityType, Updatable extends Identifiable, EntityFields extends Fields<Entity>, QueryResult extends Partial<Entity> & Identifiable> implements Repository<Entity, Identifiable, Creatable, Updatable> {
269
- protected client: SQLExecutor;
270
- protected abstract relationMap: RelationMap<any>;
271
- protected abstract tableInfo: TableInfo;
272
- abstract readonly tableName: string;
273
- abstract readonly fields: string[];
274
- protected abstract readonly primaryKeys: string[];
275
- protected abstract readonly identifyFields: string[];
276
- protected abstract readonly autoIncrementColumn?: string | undefined;
277
- constructor(client?: SQLExecutor);
278
- protected abstract getDefaultValueString(): Partial<{ [P in keyof Entity]: Entity[P] | string | null | never }> | never;
279
- create(entity: Creatable, option?: {
280
- ignore?: boolean;
281
- upsert?: {
282
- updateColumns: string[];
283
- };
284
- }): Promise<Entity>;
285
- createBulk(entities: Creatable[], option?: {
286
- ignore?: boolean;
287
- upsert?: {
288
- updateColumns: string[];
289
- };
290
- }): Promise<CommandResponse>;
291
- upsert<T extends Creatable & Partial<Entity>>(entity: T, updateFields?: (keyof T)[]): Promise<Entity>;
292
- update(entity: Updatable): Promise<CommandResponse>;
293
- updateWhere(update: Omit<Updatable, keyof Identifiable>, condition: BooleanValueExpression): Promise<CommandResponse>;
294
- delete(entity: Identifiable): Promise<CommandResponse>;
295
- deleteWhere(condition: BooleanValueExpression): Promise<CommandResponse>;
296
- first(fields?: EntityFields, option?: QueryOptions, context?: unknown): Promise<QueryResult | null>;
297
- find(fields?: EntityFields, options?: QueryOptions, context?: unknown): Promise<QueryResult[]>;
298
- findPageable(paging: PagingOption$1, fields?: EntityFields, options?: QueryOptions, context?: unknown): Promise<QueryResult[]>;
299
- private executeQuery;
300
- private createIdentifiableExpression;
301
- getRelationMap(): {
302
- [to: string]: RelationInfo<any>;
303
- };
304
- protected fieldToColumn(fields: string[]): string[];
305
- }
306
- //#endregion
307
- //#region src/db/getDbClient.d.ts
308
- declare const getDbClient: (option?: Partial<PoolOptions>, logger?: (query: string) => void) => DBClient;
309
- //#endregion
310
- //#region src/db/sql/expression/conditionExpression.d.ts
311
- type ConditionExpression<T> = ComparisonExpression$1<T> | CompositeCondition<T>;
312
- //#endregion
313
- //#region src/db/sql/expression/compositeCondition.d.ts
314
- declare class CompositeCondition<T> {
315
- private type;
316
- private conditions;
317
- private constructor();
318
- static or<T>(conditions: ConditionExpression<T>[]): CompositeCondition<T>;
319
- static and<T>(conditions: ConditionExpression<T>[]): CompositeCondition<T>;
320
- toSQL(): string;
321
- }
322
- //#endregion
323
- //#region src/generatorv2/codegen/ts/scripts/typeDefinition.d.ts
324
- type TypeFieldDefinition = {
325
- return: string;
326
- args?: {
327
- name: string;
328
- type: string;
329
- }[];
330
- };
331
- //#endregion
332
- //#region src/runtime/createTypeDef.d.ts
333
- type TypeDef = Record<string, TypeFieldDefinition>;
334
- declare const createTypeDef: (typeDefs: Record<string, TypeDef>, inputs: Record<string, TypeDef>) => string;
335
- //#endregion
336
- //#region src/runtime/date.d.ts
337
- declare const dateOffset: (date: Date, timeZoneHour?: number) => Date;
338
- declare const dateToDatetimeString: (d: Date) => string;
339
- declare const dateToDateString: (d: Date) => string;
340
- declare const getTodayDateString: (timeZoneHour?: number) => string;
341
- declare const getTodayDateTimeString: (timeZoneHour?: number) => string;
342
- declare const getDayRange: (date: Date, timeZoneHour?: number) => [string, string];
343
- declare const getDayRangeQExpr: (date: Date, timeZoneHour?: number) => [Literal, Literal];
344
- //#endregion
345
- //#region src/runtime/dsl/factory.d.ts
346
- type StrOrNum = string | number;
347
- type ValueType = string | boolean | number | null;
348
- declare const QExpr: {
349
- readonly field: (table: string, name: string, alias?: string) => Field;
350
- readonly fn: (fnName: string, args: Value[], alias?: string) => Fn;
351
- readonly window: (type: "ROWS" | "RANGE", value: WindowContent) => Window;
352
- readonly windowBetween: (type: "ROWS" | "RANGE", start: WindowContent, end: WindowContent) => Window;
353
- readonly paren: (expression: BooleanValueExpression) => ParenthesisExpression;
354
- readonly table: (name: string, joins: Join[], alias: string) => QueryTable;
355
- readonly subQueryTable: (query: Query, joins: Join[], alias: string) => QueryTable;
356
- readonly join: (table: QueryTable, conditions: BooleanValueExpression, type?: JoinType) => Join;
357
- readonly value: (value: ValueType) => Literal;
358
- readonly sort: (field: Field | Fn | Identifier, direction?: SortDirection) => Sort;
359
- readonly order: (field: Field | Fn | Identifier, direction?: SortDirection) => Sort;
360
- readonly ident: (identifier: string) => Identifier;
361
- readonly id: (identifier: string) => Identifier;
362
- readonly raw: (sql: string) => RawExpression;
363
- readonly simpleWhere: (tableNameOrAlias: string, where: {
364
- [field: string]: ValueType | [ComparisonOperators, ValueType];
365
- }, isOr?: boolean) => BooleanValueExpression;
366
- readonly and: (...expr: Array<BooleanValueExpression | undefined | null>) => BooleanValueExpression;
367
- readonly or: (...expr: Array<BooleanValueExpression | undefined | null>) => BooleanValueExpression;
368
- readonly eq: (left: Value, right: Value) => ComparisonExpression;
369
- readonly neq: (left: Value, right: Value) => ComparisonExpression;
370
- readonly gt: (left: Value, right: Value) => ComparisonExpression;
371
- readonly gte: (left: Value, right: Value) => ComparisonExpression;
372
- readonly lt: (left: Value, right: Value) => ComparisonExpression;
373
- readonly lte: (left: Value, right: Value) => ComparisonExpression;
374
- readonly comparison: (left: Value, operator: ComparisonOperators, right: Value) => ComparisonExpression;
375
- readonly contains: (left: Value, right: string) => BooleanValueExpression;
376
- readonly notContains: (left: Value, right: string) => BooleanValueExpression;
377
- readonly startsWith: (left: Value, right: string) => BooleanValueExpression;
378
- readonly notStartsWith: (left: Value, right: string) => BooleanValueExpression;
379
- readonly endsWith: (left: Value, right: string) => BooleanValueExpression;
380
- readonly notEndsWith: (left: Value, right: string) => BooleanValueExpression;
381
- readonly in: (left: Value, right: StrOrNum[] | Query | RawExpression) => BooleanValueExpression;
382
- readonly notIn: (left: Value, values: StrOrNum[]) => InExpression;
383
- readonly between: (left: Value, begin: Value, end: Value) => BetweenExpression;
384
- readonly isNull: (expr: Value) => IsNullExpression;
385
- readonly isNotNull: (expr: Value) => IsNullExpression;
386
- readonly exists: (query: RawExpression | Query) => ExistsExpression;
387
- readonly conditions: {
388
- simpleWhere: (tableNameOrAlias: string, where: {
389
- [field: string]: ValueType | [ComparisonOperators, ValueType];
390
- }, isOr?: boolean) => BooleanValueExpression;
391
- and: (...expr: Array<BooleanValueExpression | undefined | null>) => BooleanValueExpression;
392
- or: (...expr: Array<BooleanValueExpression | undefined | null>) => BooleanValueExpression;
393
- eq: (left: Value, right: Value) => ComparisonExpression;
394
- neq: (left: Value, right: Value) => ComparisonExpression;
395
- gt: (left: Value, right: Value) => ComparisonExpression;
396
- gte: (left: Value, right: Value) => ComparisonExpression;
397
- lt: (left: Value, right: Value) => ComparisonExpression;
398
- lte: (left: Value, right: Value) => ComparisonExpression;
399
- comparison: (left: Value, operator: ComparisonOperators, right: Value) => ComparisonExpression;
400
- contains: (left: Value, right: string) => BooleanValueExpression;
401
- notContains: (left: Value, right: string) => BooleanValueExpression;
402
- startsWith: (left: Value, right: string) => BooleanValueExpression;
403
- notStartsWith: (left: Value, right: string) => BooleanValueExpression;
404
- endsWith: (left: Value, right: string) => BooleanValueExpression;
405
- notEndsWith: (left: Value, right: string) => BooleanValueExpression;
406
- in: (left: Value, right: StrOrNum[] | Query | RawExpression) => BooleanValueExpression;
407
- notIn: (left: Value, values: StrOrNum[]) => InExpression;
408
- between: (left: Value, begin: Value, end: Value) => BetweenExpression;
409
- isNull: (expr: Value) => IsNullExpression;
410
- isNotNull: (expr: Value) => IsNullExpression;
411
- exists: (query: RawExpression | Query) => ExistsExpression;
412
- };
413
- };
414
- //#endregion
415
- //#region src/runtime/dsl/query/sql/nodeToSql.d.ts
416
- declare const Sql: {
417
- select: (expr: SelectExpr) => string;
418
- literal: (literal: Literal) => string;
419
- fieldInCondition: (identifier: Field) => string;
420
- fieldInSelect: (identifier: Field) => string;
421
- identifier: (ident: Identifier) => string;
422
- fn: (fn: Fn) => string;
423
- value: (v: Value) => string;
424
- between: (expr: BetweenExpression) => string;
425
- contains: (expr: ContainsExpression) => string;
426
- in: (expr: InExpression) => string;
427
- comparison: (expr: ComparisonExpression) => string;
428
- compound: (expr: CompoundExpression) => string;
429
- isNull: (expr: IsNullExpression) => string;
430
- paren: (expr: ParenthesisExpression) => string;
431
- table: (table: QueryTable) => string;
432
- join: (join: Join) => string;
433
- booleanValue: (expr: BooleanValueExpression) => string;
434
- exists: (expr: ExistsExpression) => string;
435
- sort: (expr: Sort) => string;
436
- sorts: (sorts: Sort[]) => string;
437
- queryOrRaw: (expr: Query | RawExpression) => string;
438
- };
439
- //#endregion
440
- //#region src/runtime/gqlResolveInfoToField.d.ts
441
- declare const gqlResolveInfoToField: <T extends Fields<any> = Fields<unknown>>(info: GraphQLResolveInfo) => T;
442
- //#endregion
443
- //#region src/runtime/id.d.ts
444
- type NumberIdEncoder = {
445
- encode: (id: number) => string;
446
- decode: (id: string) => number;
447
- };
448
- declare const makeNumberIdEncoder: (hashId: Hashids) => NumberIdEncoder;
449
- //#endregion
450
- //#region src/runtime/resolverMiddleware.d.ts
451
- type ResolverMiddleware<Context, RequiredParams = any, IncomingParams = RequiredParams> = (args: ResolverArgs<Context, IncomingParams | RequiredParams>) => ResolverArgs<Context, RequiredParams | IncomingParams>;
452
- declare const makeParamsMiddleware: <RequiredParams, IncomingParams = RequiredParams>(update: (params: RequiredParams) => IncomingParams) => ResolverMiddleware<never, RequiredParams, IncomingParams>;
453
- //#endregion
454
- //#region src/runtime/makeResolver.d.ts
455
- type ResolverArgs<Context, Params = unknown> = [_: unknown, params: Params, context: Context, info: GraphQLResolveInfo$1];
456
- type Resolver<Context, Params> = (_: unknown, params: Params, context: Context, info: GraphQLResolveInfo$1) => unknown;
457
- declare const makeResolver: <Context, RequiredParams, IncomingParams = RequiredParams>(resolver: Resolver<Context, RequiredParams>, middlewares?: ResolverMiddleware<Context, RequiredParams, IncomingParams>[]) => Resolver<Context, RequiredParams>;
458
- //#endregion
459
- //#region src/runtime/sql/sqlString.d.ts
460
- declare const escape: typeof pkg.escape;
461
- declare const SqlString: {
462
- escape: (value: Parameters<typeof escape>[0]) => string;
463
- escapeId: (name: string) => string;
464
- };
465
- //#endregion
466
- //#region src/runtime/types.d.ts
467
- type CustomCondition<Context> = (args: MakeConditionArg<Context>) => BooleanValueExpression;
468
- //#endregion
469
- //#region src/runtime/util.d.ts
470
- declare const pick: <T extends object>(target: T, keys: Array<keyof T>) => {
471
- [k: string]: T[keyof T];
472
- };
473
- //#endregion
474
- //#region src/util/assignDeep.d.ts
475
- type Obj = {
476
- [key: string]: any;
477
- };
478
- declare const assignDeep: (base: Obj, ...objects: Obj[]) => Obj;
479
- //#endregion
480
- //#region src/util/dateUtil.d.ts
481
- declare const getCurrentDateTimeString: () => string;
482
- //#endregion
483
- //#region src/runtime/pagingOption.d.ts
484
- type DsPagingOption = {
485
- numberOfItem: number;
486
- where?: BooleanValueExpression;
487
- offset?: number;
488
- sort?: Sort[];
489
- };
490
- declare const pagingOption$1: (option: ListQueryOption) => DsPagingOption;
491
- //#endregion
492
- //#region src/index.d.ts
493
- type PagingOption = ListQueryOption;
494
- //#endregion
495
- export { type BooleanValueExpression, type CommandResponse, type ComparisonOperators, CompositeCondition, type CustomCondition, type EntityResult, type EntityType, type Fields, type ListQueryOption, type LockMode, MysqlClient, PagingOption, QExpr, QExpr as qe, type Query, type QueryOptions, type QueryResponse, type RelationMap, type ResolverMiddleware, type SQLClient, type SQLExecutor, type SQLTransaction, SasatDBDatasource, Sql, SqlString, type TableInfo, type TypeFieldDefinition, assignDeep, createTypeDef, dateOffset, dateToDateString, dateToDatetimeString, formatQuery, getCurrentDateTimeString, getDayRange, getDayRangeQExpr, getDbClient, getTodayDateString, getTodayDateTimeString, gqlResolveInfoToField, makeNumberIdEncoder, makeParamsMiddleware, makeResolver, pagingOption$1 as pagingOption, pick, queryToSql, setConfig };
1
+ import { a as QueryResponse, c as SQLTransaction, f as setConfig, n as ComparisonOperators, o as SQLClient, r as CommandResponse, s as SQLExecutor } from "./comparison-HpKmxsjs.mjs";
2
+ import { A as RelationMap, C as CompositeCondition, D as ListQueryOption, E as EntityType, F as BooleanValueExpression, I as LockMode, L as Query, M as Fields, N as CustomCondition, O as QueryOptions, P as queryToSql, R as formatQuery, S as TypeFieldDefinition, T as EntityResult, _ as getDayRange, a as pick, b as getTodayDateTimeString, c as ResolverMiddleware, d as gqlResolveInfoToField, f as Sql, g as dateToDatetimeString, h as dateToDateString, i as assignDeep, j as TableInfo, k as SasatDBDatasource, l as makeParamsMiddleware, m as dateOffset, n as pagingOption, o as SqlString, p as QExpr, r as getCurrentDateTimeString, s as makeResolver, t as PagingOption, u as makeNumberIdEncoder, v as getDayRangeQExpr, w as getDbClient, x as createTypeDef, y as getTodayDateString, z as MysqlClient } from "./index-1a8KLRT7.mjs";
3
+ export { BooleanValueExpression, CommandResponse, ComparisonOperators, CompositeCondition, CustomCondition, EntityResult, EntityType, Fields, ListQueryOption, LockMode, MysqlClient, PagingOption, QExpr, QExpr as qe, Query, QueryOptions, QueryResponse, RelationMap, ResolverMiddleware, SQLClient, SQLExecutor, SQLTransaction, SasatDBDatasource, Sql, SqlString, TableInfo, TypeFieldDefinition, assignDeep, createTypeDef, dateOffset, dateToDateString, dateToDatetimeString, formatQuery, getCurrentDateTimeString, getDayRange, getDayRangeQExpr, getDbClient, getTodayDateString, getTodayDateTimeString, gqlResolveInfoToField, makeNumberIdEncoder, makeParamsMiddleware, makeResolver, pagingOption, pick, queryToSql, setConfig };