uql-orm 0.95.1 → 0.96.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/dist/dialect/abstractSqlDialect.js +21 -13
- package/dist/libsql/libsqlDialect.d.ts +4 -1
- package/dist/libsql/libsqlDialect.js +4 -1
- package/dist/libsql/libsqlQuerierPool.d.ts +1 -1
- package/dist/libsql/libsqlQuerierPool.js +1 -1
- package/dist/maria/mariadbQuerierPool.js +1 -1
- package/dist/migrate/bin.js +2 -4
- package/dist/migrate/cli.js +8 -4
- package/dist/migrate/codegen/entityTypes.js +6 -15
- package/dist/migrate/ddl/indexDdl.d.ts +1 -6
- package/dist/migrate/ddl/indexDdl.js +0 -10
- package/dist/migrate/ddl/mysqlIndexDdl.d.ts +5 -5
- package/dist/migrate/ddl/mysqlIndexDdl.js +11 -6
- package/dist/migrate/ddl/tableDdl.d.ts +8 -2
- package/dist/migrate/ddl/tableDdl.js +11 -3
- package/dist/migrate/drift/driftDetector.js +2 -10
- package/dist/migrate/introspection/sqliteIntrospector.d.ts +1 -1
- package/dist/migrate/introspection/sqliteIntrospector.js +4 -7
- package/dist/migrate/migrator.d.ts +2 -4
- package/dist/migrate/migrator.js +12 -20
- package/dist/migrate/schemaGenerator.d.ts +5 -0
- package/dist/migrate/schemaGenerator.js +18 -9
- package/dist/mongo/mongoDialect.d.ts +2 -2
- package/dist/mongo/mongoDialect.js +2 -3
- package/dist/mongo/mongoIntrospector.js +3 -4
- package/dist/mongo/mongoMigrationStorage.d.ts +2 -3
- package/dist/mongo/mongoMigrationStorage.js +2 -3
- package/dist/mongo/mongoSchemaGenerator.d.ts +6 -4
- package/dist/mongo/mongoSchemaGenerator.js +5 -10
- package/dist/mongo/mongodbQuerier.js +1 -1
- package/dist/mssql/mssqlQuerier.d.ts +6 -3
- package/dist/mssql/mssqlQuerier.js +6 -8
- package/dist/mssql/mssqlQuerierPool.d.ts +1 -5
- package/dist/mssql/mssqlQuerierPool.js +21 -10
- package/dist/mysql/mysql2Querier.d.ts +5 -1
- package/dist/mysql/mysql2Querier.js +8 -5
- package/dist/mysql/mysql2QuerierPool.d.ts +0 -1
- package/dist/mysql/mysql2QuerierPool.js +6 -18
- package/dist/pglite/pgliteQuerier.js +1 -1
- package/dist/postgres/abstractPgQuerierPool.d.ts +3 -2
- package/dist/postgres/abstractPgQuerierPool.js +3 -0
- package/dist/postgres/pgQuerier.d.ts +1 -0
- package/dist/querier/abstractQuerier.js +1 -6
- package/dist/querier/abstractSqlQuerier.d.ts +4 -3
- package/dist/querier/abstractSqlQuerier.js +14 -16
- package/dist/schema/indexColumns.d.ts +8 -0
- package/dist/schema/indexColumns.js +28 -0
- package/dist/schema/indexDifferences.js +4 -7
- package/dist/schema/schemaASTBuilder.js +18 -23
- package/dist/sqlite/hranaQuerier.d.ts +5 -6
- package/dist/sqlite/sqliteDialect.d.ts +1 -1
- package/dist/sqlite/sqliteDialect.js +1 -1
- package/dist/turso/tursoDialect.d.ts +3 -3
- package/dist/turso/tursoDialect.js +5 -10
- package/dist/type/dialect.d.ts +7 -3
- package/dist/type/migration.d.ts +2 -9
- package/package.json +6 -6
- package/skills/uql-orm/SKILL.md +1 -1
|
@@ -2,3 +2,31 @@
|
|
|
2
2
|
export function indexColumns(index) {
|
|
3
3
|
return index.entries.flatMap((entry) => (entry.expression ? [] : (index.table.columns.get(entry.column) ?? [])));
|
|
4
4
|
}
|
|
5
|
+
/** Whether an entry is its column as stored, rather than an expression or a path the engine reprints in its own words. */
|
|
6
|
+
export function isColumnEntry(entry) {
|
|
7
|
+
return !entry.expression && !entry.jsonPath && !entry.jsonArray;
|
|
8
|
+
}
|
|
9
|
+
/** Whether an equality lookup reads each index type; the rest answer text, vector or range questions. Total, so a new type says. */
|
|
10
|
+
const ANSWERS_LOOKUP = {
|
|
11
|
+
btree: true,
|
|
12
|
+
hash: true,
|
|
13
|
+
gin: false,
|
|
14
|
+
gist: false,
|
|
15
|
+
brin: false,
|
|
16
|
+
fulltext: false,
|
|
17
|
+
hnsw: false,
|
|
18
|
+
ivfflat: false,
|
|
19
|
+
vector: false,
|
|
20
|
+
vectorSearch: false,
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The columns an index can look every row up by, in order, as far as its entries are whole columns: none
|
|
24
|
+
* where it holds only some rows (partial) or is of a type an equality lookup does not read.
|
|
25
|
+
*/
|
|
26
|
+
export function lookupColumns(index) {
|
|
27
|
+
if (index.where !== undefined || !ANSWERS_LOOKUP[index.type ?? 'btree']) {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
const whole = index.entries.findIndex((entry) => !isColumnEntry(entry) || entry.length !== undefined);
|
|
31
|
+
return index.entries.slice(0, whole === -1 ? undefined : whole).map((entry) => entry.column);
|
|
32
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { indexDistance, isVectorIndexType } from '../type/vector.js';
|
|
2
2
|
import { fulltextConfig } from '../util/dialect.util.js';
|
|
3
3
|
import { derivedIndexName } from '../util/sql.util.js';
|
|
4
|
+
import { isColumnEntry } from './indexColumns.js';
|
|
4
5
|
import { matchByKey } from './matchByKey.js';
|
|
5
|
-
/** An entry the engine reprints in its own words, so never compared as written. */
|
|
6
|
-
function isReprinted(entry) {
|
|
7
|
-
return Boolean(entry.expression || entry.jsonPath || entry.jsonArray);
|
|
8
|
-
}
|
|
9
6
|
/**
|
|
10
7
|
* Whether the table has this index already, by shape rather than name, uniqueness included. An index
|
|
11
8
|
* over an expression, whose text the engine reprints, falls back to its name.
|
|
12
9
|
*/
|
|
13
10
|
export function indexSignature(index) {
|
|
14
|
-
const comparable =
|
|
11
|
+
const comparable = index.entries.every(isColumnEntry);
|
|
15
12
|
const identity = comparable
|
|
16
13
|
? index.entries.map((entry) => entry.column).join(',')
|
|
17
14
|
: `name:${indexNameStem(index.name)}`;
|
|
@@ -58,7 +55,7 @@ export function indexChanges(table, declared, current, facets) {
|
|
|
58
55
|
* the `idx_Order_total` it wrote until 0.42.1.
|
|
59
56
|
*/
|
|
60
57
|
function hasDerivedName(table, index) {
|
|
61
|
-
const parts = index.entries.map((entry, at) => (
|
|
58
|
+
const parts = index.entries.map((entry, at) => (isColumnEntry(entry) ? entry.column : `expr${at}`));
|
|
62
59
|
const derived = [
|
|
63
60
|
derivedIndexName(table, parts),
|
|
64
61
|
derivedIndexName(table, parts, true),
|
|
@@ -80,7 +77,7 @@ const KIND_PREFIX = /^(?:idx|fk|ck|pk|uk|uq)_/i;
|
|
|
80
77
|
*/
|
|
81
78
|
export function describeIndexDifferences(source, target, facets) {
|
|
82
79
|
const differences = [];
|
|
83
|
-
const comparableEntries =
|
|
80
|
+
const comparableEntries = [...source.entries, ...target.entries].every(isColumnEntry);
|
|
84
81
|
if (comparableEntries) {
|
|
85
82
|
const [sourceColumns, targetColumns] = [source, target].map((index) => textFieldOrder(index, facets, index.entries.map((entry) => entrySignature(entry, facets))).join(', '));
|
|
86
83
|
if (sourceColumns !== targetColumns) {
|
|
@@ -2,10 +2,11 @@ import { fieldOf, foreignKeysOf, getMeta } from '../entity/metadata/definition.j
|
|
|
2
2
|
import { declaredIndexes, declaredIndexName, renderIndexColumn } from '../util/ddlExpression.util.js';
|
|
3
3
|
import { fulltextWeights, textWeightSteps } from '../util/dialect.util.js';
|
|
4
4
|
import { declaresNotNull, isAutoIncrement, isInlinedExpression, isSoleIdField } from '../util/field.util.js';
|
|
5
|
-
import { definedEntries } from '../util/object.util.js';
|
|
6
|
-
import { derivedForeignKeyName, derivedIndexName
|
|
5
|
+
import { definedEntries, entityName } from '../util/object.util.js';
|
|
6
|
+
import { derivedForeignKeyName, derivedIndexName } from '../util/sql.util.js';
|
|
7
7
|
import { UqlUsageError } from '../util/uqlError.js';
|
|
8
8
|
import { resolveColumnCanonicalType } from './canonicalType.js';
|
|
9
|
+
import { lookupColumns } from './indexColumns.js';
|
|
9
10
|
import { createTableNode, keyOfColumns, SchemaAST } from './schemaAST.js';
|
|
10
11
|
import { schemaDefault } from './sqlExpression.js';
|
|
11
12
|
import { DEFAULT_FOREIGN_KEY_ACTION } from './types.js';
|
|
@@ -20,8 +21,8 @@ export function buildSchemaAST(entities, options = {}) {
|
|
|
20
21
|
const compileDdl = options.compileDdl ?? refuseDdl;
|
|
21
22
|
const ctx = {
|
|
22
23
|
ast: new SchemaAST(),
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
tables: new Map(),
|
|
25
|
+
resolveTableName: options.resolveTableName ?? ((m) => namingStrategy?.tableName(entityName(m)) ?? entityName(m)),
|
|
25
26
|
resolveSchema: options.resolveSchema ?? ((m) => m.schema),
|
|
26
27
|
resolveColumnName: options.resolveColumnName ?? ((k, f) => namingStrategy?.columnName(f.name ?? k) ?? f.name ?? k),
|
|
27
28
|
defaultForeignKeyAction: options.defaultForeignKeyAction ?? DEFAULT_FOREIGN_KEY_ACTION,
|
|
@@ -30,9 +31,13 @@ export function buildSchemaAST(entities, options = {}) {
|
|
|
30
31
|
textScoreIndexes: options.textScoreIndexes ?? false,
|
|
31
32
|
vectorIndexRequiresNotNull: options.vectorIndexRequiresNotNull ?? false,
|
|
32
33
|
};
|
|
33
|
-
for (const
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
for (const entity of entities) {
|
|
35
|
+
const meta = getMeta(entity);
|
|
36
|
+
ctx.tables.set(meta, addTableFromEntity(ctx, meta));
|
|
37
|
+
}
|
|
38
|
+
for (const pass of [addRelationshipsFromEntity, addIndexesFromEntity]) {
|
|
39
|
+
for (const [meta, table] of ctx.tables) {
|
|
40
|
+
pass(ctx, meta, table);
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
return ctx.ast;
|
|
@@ -85,22 +90,16 @@ function addTableFromEntity(ctx, meta) {
|
|
|
85
90
|
}
|
|
86
91
|
table.primaryKey = keyOfColumns(columns.values());
|
|
87
92
|
ctx.ast.addTable(table);
|
|
88
|
-
|
|
89
|
-
/** The node an entity maps to, found under the key {@link SchemaAST} stores it by. */
|
|
90
|
-
function tableOf(ctx, meta) {
|
|
91
|
-
return ctx.ast.getTable(qualifyName(ctx.resolveTableName(meta), ctx.resolveSchema(meta)));
|
|
93
|
+
return table;
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
94
96
|
* Add a relationship for each foreign key the entity holds, whether a relation declares it or a bare
|
|
95
97
|
* `@Field({ references })` does.
|
|
96
98
|
*/
|
|
97
|
-
function addRelationshipsFromEntity(ctx, meta) {
|
|
98
|
-
const table = tableOf(ctx, meta);
|
|
99
|
-
if (!table)
|
|
100
|
-
return;
|
|
99
|
+
function addRelationshipsFromEntity(ctx, meta, table) {
|
|
101
100
|
for (const foreignKey of foreignKeysOf(meta)) {
|
|
102
101
|
const relatedMeta = getMeta(foreignKey.entity());
|
|
103
|
-
const relatedTable =
|
|
102
|
+
const relatedTable = ctx.tables.get(relatedMeta);
|
|
104
103
|
if (!relatedTable)
|
|
105
104
|
continue;
|
|
106
105
|
// Every pair, not just the first: a composite key is one constraint over all its columns, and
|
|
@@ -135,10 +134,7 @@ function addRelationshipsFromEntity(ctx, meta) {
|
|
|
135
134
|
* Add indexes from field options (`@Field({ index })`), from `@Index`, and for every foreign
|
|
136
135
|
* key none of those already serves.
|
|
137
136
|
*/
|
|
138
|
-
function addIndexesFromEntity(ctx, meta) {
|
|
139
|
-
const table = tableOf(ctx, meta);
|
|
140
|
-
if (!table)
|
|
141
|
-
return;
|
|
137
|
+
function addIndexesFromEntity(ctx, meta, table) {
|
|
142
138
|
for (const idxMeta of declaredIndexes(meta)) {
|
|
143
139
|
addCompositeIndex(ctx, table, meta, idxMeta);
|
|
144
140
|
}
|
|
@@ -163,11 +159,10 @@ function addForeignKeyIndexes(ctx, meta, table) {
|
|
|
163
159
|
});
|
|
164
160
|
}
|
|
165
161
|
}
|
|
166
|
-
/** Whether the key or an index
|
|
162
|
+
/** Whether the key or an index the engine can look rows up by already leads with `columns`. */
|
|
167
163
|
function isIndexedBy(table, columns) {
|
|
168
164
|
const leads = (indexed) => columns.every((column, at) => indexed[at] === column);
|
|
169
|
-
return
|
|
170
|
-
table.indexes.some((index) => leads(index.entries.map((entry) => entry.expression || entry.jsonPath || entry.jsonArray ? undefined : entry.column))));
|
|
165
|
+
return leads(table.primaryKey?.columns ?? []) || table.indexes.some((index) => leads(lookupColumns(index)));
|
|
171
166
|
}
|
|
172
167
|
/** An `include` column is named like any other, so a naming strategy has to reach it too. */
|
|
173
168
|
function resolveIncludeColumn(ctx, meta, column) {
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { ExtraOptions, RawRow } from '../type/index.js';
|
|
2
2
|
import { AbstractSqliteQuerier, type SqliteBindValue } from './abstractSqliteQuerier.js';
|
|
3
3
|
import type { SqliteDialect } from './sqliteDialect.js';
|
|
4
|
-
/**
|
|
5
|
-
* Structural subset of the Hrana client API, the wire protocol shared by `@libsql/client` and
|
|
6
|
-
* `@tursodatabase/serverless/compat`. Declared here rather than imported so a querier works with
|
|
7
|
-
* any client of this shape (including `@libsql/client/web` and `@libsql/client-wasm`) without
|
|
8
|
-
* depending on vendor types.
|
|
9
|
-
*/
|
|
10
4
|
export type HranaInValue = SqliteBindValue | ArrayBuffer | Date;
|
|
11
5
|
export type HranaResultSet = {
|
|
12
6
|
rows: unknown[];
|
|
@@ -22,6 +16,11 @@ export type HranaTransaction = HranaExecutor & {
|
|
|
22
16
|
commit(): Promise<void>;
|
|
23
17
|
rollback(): Promise<void>;
|
|
24
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* The part of a Hrana client the querier uses: `@libsql/client` in any of its builds (`/web`,
|
|
21
|
+
* `@libsql/client-wasm`). Declared here rather than imported, so a client the caller built fits
|
|
22
|
+
* without the vendor's types.
|
|
23
|
+
*/
|
|
25
24
|
export type HranaClient = HranaExecutor & {
|
|
26
25
|
transaction(mode?: 'write' | 'read' | 'deferred'): Promise<HranaTransaction>;
|
|
27
26
|
close(): void;
|
|
@@ -85,6 +85,6 @@ export declare class SqliteDialect extends AbstractSqlDialect {
|
|
|
85
85
|
protected jsonCast(operand: string): string;
|
|
86
86
|
/** `JSON` keeps each element's JSON type in the array, which answers `[]` for no rows. */
|
|
87
87
|
protected jsonArrayOf(elem: string): string;
|
|
88
|
-
/** `[#]` appends, creating the array where it is absent
|
|
88
|
+
/** `[#]` appends, creating the array where it is absent. */
|
|
89
89
|
protected jsonPush(ctx: QueryContext, expr: string, push: Record<string, unknown>): string;
|
|
90
90
|
}
|
|
@@ -218,7 +218,7 @@ export class SqliteDialect extends AbstractSqlDialect {
|
|
|
218
218
|
jsonArrayOf(elem) {
|
|
219
219
|
return `JSON_GROUP_ARRAY(JSON(${elem}))`;
|
|
220
220
|
}
|
|
221
|
-
/** `[#]` appends, creating the array where it is absent
|
|
221
|
+
/** `[#]` appends, creating the array where it is absent. */
|
|
222
222
|
jsonPush(ctx, expr, push) {
|
|
223
223
|
return jsonSetCall((value) => this.jsonScalarParam(ctx, value), expr, push, this.maxFunctionArgs, '[#]');
|
|
224
224
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LibsqlDialect } from '../libsql/libsqlDialect.js';
|
|
2
2
|
import type { SqlDialectFeatures } from '../type/index.js';
|
|
3
3
|
/**
|
|
4
|
-
* Turso Cloud, as every database there accepts: libSQL's
|
|
5
|
-
* `
|
|
4
|
+
* Turso Cloud, as every database there accepts: libSQL's, and the Rust engine's of one created as
|
|
5
|
+
* `tursodb`. Imports no driver.
|
|
6
6
|
*/
|
|
7
7
|
export declare class TursoDialect extends LibsqlDialect {
|
|
8
|
-
/** The Rust engine
|
|
8
|
+
/** The Rust engine cannot read the table a write changes from inside a subquery. */
|
|
9
9
|
readonly features: SqlDialectFeatures;
|
|
10
10
|
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { LibsqlDialect } from '../libsql/libsqlDialect.js';
|
|
2
|
-
import { SQLITE_FEATURES } from '../sqlite/sqliteDialect.js';
|
|
1
|
+
import { LIBSQL_FEATURES, LibsqlDialect } from '../libsql/libsqlDialect.js';
|
|
3
2
|
/**
|
|
4
|
-
* Turso Cloud, as every database there accepts: libSQL's
|
|
5
|
-
* `
|
|
3
|
+
* Turso Cloud, as every database there accepts: libSQL's, and the Rust engine's of one created as
|
|
4
|
+
* `tursodb`. Imports no driver.
|
|
6
5
|
*/
|
|
7
6
|
export class TursoDialect extends LibsqlDialect {
|
|
8
|
-
/** The Rust engine
|
|
9
|
-
features = {
|
|
10
|
-
...SQLITE_FEATURES,
|
|
11
|
-
orderedJsonAggregates: false,
|
|
12
|
-
correlatedWrites: false,
|
|
13
|
-
};
|
|
7
|
+
/** The Rust engine cannot read the table a write changes from inside a subquery. */
|
|
8
|
+
features = { ...LIBSQL_FEATURES, correlatedWrites: false };
|
|
14
9
|
}
|
package/dist/type/dialect.d.ts
CHANGED
|
@@ -392,12 +392,16 @@ export type RelationAggregateProjection = {
|
|
|
392
392
|
};
|
|
393
393
|
/**
|
|
394
394
|
* A relation aggregate as a `computed` field holds it: an {@link AggregateCall} over the rows of the
|
|
395
|
-
* relation it names, capped where it declared a page.
|
|
395
|
+
* relation it names, capped where it declared a page. A distance is a `$sort`'s, which pages nothing.
|
|
396
396
|
*/
|
|
397
397
|
export type RelationAggregateSpec = RelationAggregateProjection & Pick<AggregateCall, 'where'> & {
|
|
398
398
|
readonly relation: string;
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
} & ({
|
|
400
|
+
readonly page?: never;
|
|
401
|
+
} | {
|
|
402
|
+
readonly page: RelationAggregatePage;
|
|
403
|
+
readonly search?: never;
|
|
404
|
+
});
|
|
401
405
|
/** The page of a relation's rows an aggregate reads, and the order picking them. */
|
|
402
406
|
export type RelationAggregatePage = Pick<RelationQuery, '$sort' | '$limit' | '$skip'>;
|
|
403
407
|
/**
|
package/dist/type/migration.d.ts
CHANGED
|
@@ -44,10 +44,6 @@ export interface MigrationStorage {
|
|
|
44
44
|
* Remove a migration from the executed list, on the querier that reverted it
|
|
45
45
|
*/
|
|
46
46
|
unlogWithQuerier(querier: Querier, migrationName: string): Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* Ensure the storage is initialized (e.g., create migrations table)
|
|
49
|
-
*/
|
|
50
|
-
ensureStorage(): Promise<void>;
|
|
51
47
|
}
|
|
52
48
|
/**
|
|
53
49
|
* Configuration options for the Migrator
|
|
@@ -257,15 +253,12 @@ export interface CreateSchemaOptions {
|
|
|
257
253
|
* already exists. Constraints still resolve against the full entity graph.
|
|
258
254
|
*/
|
|
259
255
|
readonly only?: readonly string[];
|
|
260
|
-
/**
|
|
261
|
-
* Emit the tables without their foreign keys. Only the integration fixtures want this, and only until
|
|
262
|
-
* their data stops relying on dangling references; a migration always wants the constraints.
|
|
263
|
-
*/
|
|
264
|
-
readonly foreignKeys?: boolean;
|
|
265
256
|
}
|
|
266
257
|
export interface DropSchemaOptions {
|
|
267
258
|
readonly ifExists?: boolean;
|
|
268
259
|
readonly cascade?: boolean;
|
|
260
|
+
/** The schema as it stands, whose foreign keys are dropped before any table, since a cycle of them has no drop order. */
|
|
261
|
+
readonly existing?: SchemaAST;
|
|
269
262
|
}
|
|
270
263
|
/** The triggers uql installed on one table, by name, each with the statements that recreate it as it stands. */
|
|
271
264
|
export type InstalledTriggers = ReadonlyMap<string, readonly string[]>;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"homepage": "https://uql-orm.dev",
|
|
4
4
|
"description": "JSON-native TypeScript ORM for Bun, Browsers, Edge, Deno, Node, Workers. Supports PostgreSQL, PGlite, MySQL, MariaDB, SQLite, CockroachDB, SQL Server, Turso, Neon, Cloudflare D1 and MongoDB. Queries are plain JSON, typed to the leaf.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.96.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=24"
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@neondatabase/serverless": ">=0.9.0",
|
|
70
70
|
"@nestjs/common": ">=10.0.0",
|
|
71
71
|
"@nestjs/core": ">=10.0.0",
|
|
72
|
-
"@tursodatabase/database": ">=0.
|
|
73
|
-
"@tursodatabase/serverless": ">=1.
|
|
72
|
+
"@tursodatabase/database": ">=0.8.2",
|
|
73
|
+
"@tursodatabase/serverless": ">=1.4.1",
|
|
74
74
|
"better-sqlite3": ">=9.0.0",
|
|
75
75
|
"express": ">=5.0.0",
|
|
76
76
|
"mariadb": ">=3.0.0",
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
"@nestjs/common": "^12.1.2",
|
|
140
140
|
"@nestjs/core": "^12.1.2",
|
|
141
141
|
"@nestjs/testing": "^12.1.2",
|
|
142
|
-
"@tursodatabase/database": "^0.8.
|
|
143
|
-
"@tursodatabase/serverless": "^1.4.
|
|
142
|
+
"@tursodatabase/database": "^0.8.2",
|
|
143
|
+
"@tursodatabase/serverless": "^1.4.1",
|
|
144
144
|
"@types/better-sqlite3": "^9.6.0",
|
|
145
145
|
"@types/express": "^5.0.6",
|
|
146
146
|
"@types/mssql": "^12.3.0",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"express": "^5.2.1",
|
|
151
151
|
"mariadb": "^3.5.4",
|
|
152
152
|
"mongodb": "^7.7.0",
|
|
153
|
-
"mssql": "^12",
|
|
153
|
+
"mssql": "^12.7.4",
|
|
154
154
|
"mysql2": "^3.24.5",
|
|
155
155
|
"pg": "^8.23.1",
|
|
156
156
|
"pg-query-stream": "^4.17.1",
|
package/skills/uql-orm/SKILL.md
CHANGED
|
@@ -87,8 +87,8 @@ export class Post {
|
|
|
87
87
|
## Queries
|
|
88
88
|
|
|
89
89
|
```ts
|
|
90
|
-
import { pool } from './uql.config.js';
|
|
91
90
|
import { User } from './entities.js';
|
|
91
|
+
import { pool } from './uql.config.js';
|
|
92
92
|
|
|
93
93
|
const users = await pool.findMany(User, {
|
|
94
94
|
$select: { id: true, email: true },
|