orchid-orm 1.34.6 → 1.34.8
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 +18 -16
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeColumnTypes,
|
|
1
|
+
import { makeColumnTypes, QueryHooks, defaultSchemaConfig, raw, getColumnTypes, parseTableData, _queryHookAfterCreate, _queryHookAfterUpdate, getQueryAs, setQueryObjectValue, pushQueryOnForOuter, VirtualColumn, pushQueryValue, _queryCreateMany, isQueryReturnsAll, _queryHookBeforeUpdate, _queryFindBy, _queryCreate, _queryRows, _queryUpdate, _queryDelete, _queryDefaults, _queryUpdateOrThrow, _queryWhere, toSQLCacheKey, _queryJoinOn, OrchidOrmInternalError, _queryCreateFrom, NotFoundError, _queryFindByOptional, _querySelect, _queryWhereExists, _queryTake, _queryTakeOptional, _queryAll, Adapter, _initQueryBuilder, Db, getClonedQueryData } from 'pqb';
|
|
2
2
|
export * from 'pqb';
|
|
3
3
|
import { getStackTrace, applyMixins, getCallerFilePath, snakeCaseKey, toSnakeCase, emptyObject, emptyArray, objectHasValues, toArray } from 'orchid-core';
|
|
4
4
|
export * from 'orchid-core';
|
|
@@ -29,6 +29,11 @@ function createBaseTable({
|
|
|
29
29
|
this.q = {};
|
|
30
30
|
this.language = language;
|
|
31
31
|
}
|
|
32
|
+
static sql(...args) {
|
|
33
|
+
const sql = raw(...args);
|
|
34
|
+
sql.columnTypes = columnTypes;
|
|
35
|
+
return sql;
|
|
36
|
+
}
|
|
32
37
|
static inputSchema() {
|
|
33
38
|
this.instance();
|
|
34
39
|
return this._inputSchema === void 0 ? this._inputSchema = schemaConfig.inputSchema.call(this) : this._inputSchema;
|
|
@@ -139,7 +144,7 @@ function createBaseTable({
|
|
|
139
144
|
options
|
|
140
145
|
};
|
|
141
146
|
}
|
|
142
|
-
}, _a.nowSQL = nowSQL, _a.exportAs = exportAs, _a.columnTypes = columnTypes, _a
|
|
147
|
+
}, _a.nowSQL = nowSQL, _a.exportAs = exportAs, _a.columnTypes = columnTypes, _a);
|
|
143
148
|
applyMixins(base, [QueryHooks]);
|
|
144
149
|
base.prototype.types = columnTypes;
|
|
145
150
|
base.prototype.snakeCase = snakeCase;
|