orchid-orm 1.27.10 → 1.28.1
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.ts +3 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -250,6 +250,9 @@ type OrchidORM<T extends TableClasses = TableClasses> = {
|
|
|
250
250
|
* @param args - SQL template literal, or an object { raw: string, values?: unknown[] }
|
|
251
251
|
*/
|
|
252
252
|
$queryArrays: Db['queryArrays'];
|
|
253
|
+
/**
|
|
254
|
+
* See {@link FromMethods.from}
|
|
255
|
+
*/
|
|
253
256
|
$from<Arg extends MaybeArray<FromArg<Query>>>(arg: Arg): FromResult<Query, Arg>;
|
|
254
257
|
$close(): Promise<void>;
|
|
255
258
|
};
|
package/dist/index.js
CHANGED
|
@@ -1864,8 +1864,11 @@ const orchidORM = (_a, tables) => {
|
|
|
1864
1864
|
$queryBuilder: qb,
|
|
1865
1865
|
$query: (...args) => qb.query(...args),
|
|
1866
1866
|
$queryArrays: (...args) => qb.queryArrays(...args),
|
|
1867
|
-
$
|
|
1868
|
-
$
|
|
1867
|
+
$with: qb.with.bind(qb),
|
|
1868
|
+
$withRecursive: qb.withRecursive.bind(qb),
|
|
1869
|
+
$withSql: qb.withSql.bind(qb),
|
|
1870
|
+
$from: qb.from.bind(qb),
|
|
1871
|
+
$close: adapter.close.bind(adapter)
|
|
1869
1872
|
};
|
|
1870
1873
|
const tableInstances = {};
|
|
1871
1874
|
for (const key in tables) {
|