@type32/tauri-sqlite-orm 0.1.18-10 → 0.1.18-11
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -266,7 +266,7 @@ declare const avg: (column: AnySQLiteColumn) => SQLCondition;
|
|
|
266
266
|
declare const max: (column: AnySQLiteColumn) => SQLCondition;
|
|
267
267
|
declare const min: (column: AnySQLiteColumn) => SQLCondition;
|
|
268
268
|
|
|
269
|
-
declare const
|
|
269
|
+
declare const text: <TName extends string>(name: TName) => SQLiteColumn<TName, "TEXT", "default", false, false, false>;
|
|
270
270
|
declare const integer: <TName extends string, TMode extends Mode = "default">(name: TName, config?: {
|
|
271
271
|
mode?: TMode;
|
|
272
272
|
}) => SQLiteColumn<TName, "INTEGER", "default" | TMode, false, false, false>;
|
|
@@ -274,4 +274,4 @@ declare const real: <TName extends string>(name: TName) => SQLiteColumn<TName, "
|
|
|
274
274
|
declare const blob: <TName extends string>(name: TName) => SQLiteColumn<TName, "BLOB", "default", false, false, false>;
|
|
275
275
|
declare const boolean: <TName extends string>(name: TName) => SQLiteColumn<TName, "BOOLEAN", "default", false, false, false>;
|
|
276
276
|
|
|
277
|
-
export { type AnySQLiteColumn, type AnyTable, BaseQueryBuilder, type ColumnDataType, type ColumnOptions, type ColumnValueTypes, DeleteQueryBuilder, type ExtractColumnType, type InferInsertModel, type InferSelectModel, InsertQueryBuilder, ManyRelation, type Mode, OneRelation, Relation, type RelationConfig, type RelationType, type RelationsBuilder, type SQLCondition, SQLiteColumn, SelectQueryBuilder, Table, TauriORM, UpdateQueryBuilder, WithQueryBuilder, alias, and, asc, avg, blob, boolean,
|
|
277
|
+
export { type AnySQLiteColumn, type AnyTable, BaseQueryBuilder, type ColumnDataType, type ColumnOptions, type ColumnValueTypes, DeleteQueryBuilder, type ExtractColumnType, type InferInsertModel, type InferSelectModel, InsertQueryBuilder, ManyRelation, type Mode, OneRelation, Relation, type RelationConfig, type RelationType, type RelationsBuilder, type SQLCondition, SQLiteColumn, SelectQueryBuilder, Table, TauriORM, UpdateQueryBuilder, WithQueryBuilder, alias, and, asc, avg, blob, boolean, count, countDistinct, desc, eq, getTableColumns, gt, gte, inArray, integer, isNotNull, isNull, like, lt, lte, max, min, not, or, real, relations, sql, sqliteTable, sum, text };
|
package/dist/index.d.ts
CHANGED
|
@@ -266,7 +266,7 @@ declare const avg: (column: AnySQLiteColumn) => SQLCondition;
|
|
|
266
266
|
declare const max: (column: AnySQLiteColumn) => SQLCondition;
|
|
267
267
|
declare const min: (column: AnySQLiteColumn) => SQLCondition;
|
|
268
268
|
|
|
269
|
-
declare const
|
|
269
|
+
declare const text: <TName extends string>(name: TName) => SQLiteColumn<TName, "TEXT", "default", false, false, false>;
|
|
270
270
|
declare const integer: <TName extends string, TMode extends Mode = "default">(name: TName, config?: {
|
|
271
271
|
mode?: TMode;
|
|
272
272
|
}) => SQLiteColumn<TName, "INTEGER", "default" | TMode, false, false, false>;
|
|
@@ -274,4 +274,4 @@ declare const real: <TName extends string>(name: TName) => SQLiteColumn<TName, "
|
|
|
274
274
|
declare const blob: <TName extends string>(name: TName) => SQLiteColumn<TName, "BLOB", "default", false, false, false>;
|
|
275
275
|
declare const boolean: <TName extends string>(name: TName) => SQLiteColumn<TName, "BOOLEAN", "default", false, false, false>;
|
|
276
276
|
|
|
277
|
-
export { type AnySQLiteColumn, type AnyTable, BaseQueryBuilder, type ColumnDataType, type ColumnOptions, type ColumnValueTypes, DeleteQueryBuilder, type ExtractColumnType, type InferInsertModel, type InferSelectModel, InsertQueryBuilder, ManyRelation, type Mode, OneRelation, Relation, type RelationConfig, type RelationType, type RelationsBuilder, type SQLCondition, SQLiteColumn, SelectQueryBuilder, Table, TauriORM, UpdateQueryBuilder, WithQueryBuilder, alias, and, asc, avg, blob, boolean,
|
|
277
|
+
export { type AnySQLiteColumn, type AnyTable, BaseQueryBuilder, type ColumnDataType, type ColumnOptions, type ColumnValueTypes, DeleteQueryBuilder, type ExtractColumnType, type InferInsertModel, type InferSelectModel, InsertQueryBuilder, ManyRelation, type Mode, OneRelation, Relation, type RelationConfig, type RelationType, type RelationsBuilder, type SQLCondition, SQLiteColumn, SelectQueryBuilder, Table, TauriORM, UpdateQueryBuilder, WithQueryBuilder, alias, and, asc, avg, blob, boolean, count, countDistinct, desc, eq, getTableColumns, gt, gte, inArray, integer, isNotNull, isNull, like, lt, lte, max, min, not, or, real, relations, sql, sqliteTable, sum, text };
|
package/dist/index.js
CHANGED
|
@@ -38,7 +38,6 @@ __export(index_exports, {
|
|
|
38
38
|
avg: () => avg,
|
|
39
39
|
blob: () => blob,
|
|
40
40
|
boolean: () => boolean,
|
|
41
|
-
columnHelpers: () => columnHelpers,
|
|
42
41
|
count: () => count,
|
|
43
42
|
countDistinct: () => countDistinct,
|
|
44
43
|
desc: () => desc,
|
|
@@ -61,7 +60,8 @@ __export(index_exports, {
|
|
|
61
60
|
relations: () => relations,
|
|
62
61
|
sql: () => sql,
|
|
63
62
|
sqliteTable: () => sqliteTable,
|
|
64
|
-
sum: () => sum
|
|
63
|
+
sum: () => sum,
|
|
64
|
+
text: () => text
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(index_exports);
|
|
67
67
|
|
|
@@ -886,7 +886,7 @@ var alias = (table, alias2) => {
|
|
|
886
886
|
};
|
|
887
887
|
|
|
888
888
|
// src/column-helpers.ts
|
|
889
|
-
var
|
|
889
|
+
var text = (name) => new SQLiteColumn(name, "TEXT");
|
|
890
890
|
var integer = (name, config) => new SQLiteColumn(name, "INTEGER", {}, config?.mode || "default");
|
|
891
891
|
var real = (name) => new SQLiteColumn(name, "REAL");
|
|
892
892
|
var blob = (name) => new SQLiteColumn(name, "BLOB");
|
|
@@ -911,7 +911,6 @@ var boolean = (name) => new SQLiteColumn(name, "BOOLEAN");
|
|
|
911
911
|
avg,
|
|
912
912
|
blob,
|
|
913
913
|
boolean,
|
|
914
|
-
columnHelpers,
|
|
915
914
|
count,
|
|
916
915
|
countDistinct,
|
|
917
916
|
desc,
|
|
@@ -934,5 +933,6 @@ var boolean = (name) => new SQLiteColumn(name, "BOOLEAN");
|
|
|
934
933
|
relations,
|
|
935
934
|
sql,
|
|
936
935
|
sqliteTable,
|
|
937
|
-
sum
|
|
936
|
+
sum,
|
|
937
|
+
text
|
|
938
938
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -819,7 +819,7 @@ var alias = (table, alias2) => {
|
|
|
819
819
|
};
|
|
820
820
|
|
|
821
821
|
// src/column-helpers.ts
|
|
822
|
-
var
|
|
822
|
+
var text = (name) => new SQLiteColumn(name, "TEXT");
|
|
823
823
|
var integer = (name, config) => new SQLiteColumn(name, "INTEGER", {}, config?.mode || "default");
|
|
824
824
|
var real = (name) => new SQLiteColumn(name, "REAL");
|
|
825
825
|
var blob = (name) => new SQLiteColumn(name, "BLOB");
|
|
@@ -843,7 +843,6 @@ export {
|
|
|
843
843
|
avg,
|
|
844
844
|
blob,
|
|
845
845
|
boolean,
|
|
846
|
-
columnHelpers,
|
|
847
846
|
count,
|
|
848
847
|
countDistinct,
|
|
849
848
|
desc,
|
|
@@ -866,5 +865,6 @@ export {
|
|
|
866
865
|
relations,
|
|
867
866
|
sql,
|
|
868
867
|
sqliteTable,
|
|
869
|
-
sum
|
|
868
|
+
sum,
|
|
869
|
+
text
|
|
870
870
|
};
|