rado 0.1.37 → 0.1.38
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/lib/Formatter.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare abstract class Formatter implements Sanitizer {
|
|
|
38
38
|
formatDropIndex(ctx: FormatContext, query: Query.DropIndex): Statement;
|
|
39
39
|
formatAlterTable(ctx: FormatContext, query: Query.AlterTable): Statement;
|
|
40
40
|
formatTransaction(ctx: FormatContext, { op, id }: Query.Transaction): Statement;
|
|
41
|
-
formatBatch(ctx: FormatContext, queries: Query
|
|
41
|
+
formatBatch(ctx: FormatContext, { queries }: Query.Batch): Statement;
|
|
42
42
|
formatRaw(ctx: FormatContext, { strings, params }: Query.Raw): Statement;
|
|
43
43
|
formatColumn(ctx: FormatContext, column: ColumnData): Statement;
|
|
44
44
|
formatContraintReference(ctx: FormatContext, reference: ExprData): Statement;
|
package/dist/lib/Formatter.js
CHANGED
|
@@ -71,7 +71,7 @@ var Formatter = class {
|
|
|
71
71
|
case QueryType.Transaction:
|
|
72
72
|
return this.formatTransaction(ctx, query);
|
|
73
73
|
case QueryType.Batch:
|
|
74
|
-
return this.formatBatch(ctx, query
|
|
74
|
+
return this.formatBatch(ctx, query);
|
|
75
75
|
case QueryType.Raw:
|
|
76
76
|
return this.formatRaw(ctx, query);
|
|
77
77
|
}
|
|
@@ -198,7 +198,7 @@ var Formatter = class {
|
|
|
198
198
|
return stmt.raw("ROLLBACK TO").addIdentifier(id);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
formatBatch(ctx, queries) {
|
|
201
|
+
formatBatch(ctx, { queries }) {
|
|
202
202
|
const { stmt } = ctx;
|
|
203
203
|
for (const query of stmt.separate(queries, ";"))
|
|
204
204
|
this.format(ctx, query);
|
|
@@ -157,7 +157,7 @@ export type SqliteFunctions = {
|
|
|
157
157
|
julianday(timeValue: EV<any>, ...rest: Array<EV<string>>): Expr<string>;
|
|
158
158
|
strftime(format: EV<string>, timeValue: EV<any>, ...rest: Array<EV<string>>): Expr<string>;
|
|
159
159
|
};
|
|
160
|
-
export declare const count: (x?: Expr<any>) => Expr<number>, iif: <T>(x: EV<boolean>, y: EV<T>, z: EV<T>) => Expr<T>, exists: (cursor: Cursor<any>) => Expr<boolean>, match: (table: Table<any>, searchTerm: EV<string>) => Expr<boolean>, cast: {
|
|
160
|
+
export declare const count: (x?: Expr<any>) => Expr<number>, iif: <T>(x: EV<boolean>, y: EV<T>, z: EV<T>) => Expr<T>, exists: (cursor: Cursor<any>) => Expr<boolean>, match: (table: Table<any>, searchTerm: EV<string>) => Expr<boolean>, highlight: (table: Table<any>, index: EV<number>, insertBefore: EV<string>, insertAfter: EV<string>) => Expr<string>, snippet: (table: Table<any>, index: EV<number>, insertBefore: EV<string>, insertAfter: EV<string>, snip: EV<string>, maxTokens: EV<number>) => Expr<string>, cast: {
|
|
161
161
|
(x: EV<any>, type: 'text'): Expr<string>;
|
|
162
162
|
(x: EV<any>, type: 'real'): Expr<number>;
|
|
163
163
|
(x: EV<any>, type: 'integer'): Expr<number>;
|
|
@@ -6,6 +6,8 @@ var {
|
|
|
6
6
|
iif,
|
|
7
7
|
exists,
|
|
8
8
|
match,
|
|
9
|
+
highlight,
|
|
10
|
+
snippet,
|
|
9
11
|
cast,
|
|
10
12
|
abs,
|
|
11
13
|
changes,
|
|
@@ -98,6 +100,7 @@ export {
|
|
|
98
100
|
exp,
|
|
99
101
|
floor,
|
|
100
102
|
group_concat,
|
|
103
|
+
highlight,
|
|
101
104
|
ifnull,
|
|
102
105
|
iif,
|
|
103
106
|
instr,
|
|
@@ -128,6 +131,7 @@ export {
|
|
|
128
131
|
sign,
|
|
129
132
|
sin,
|
|
130
133
|
sinh,
|
|
134
|
+
snippet,
|
|
131
135
|
soundex,
|
|
132
136
|
sqlite_version,
|
|
133
137
|
sqrt,
|