pqb 0.31.8 → 0.31.9
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 +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2446,8 +2446,8 @@ declare class DynamicRawSQL<T extends QueryColumn, ColumnTypes = DefaultColumnTy
|
|
|
2446
2446
|
constructor(fn: DynamicSQLArg);
|
|
2447
2447
|
makeSQL(ctx: ToSQLCtx, quotedAs?: string): string;
|
|
2448
2448
|
}
|
|
2449
|
-
declare function raw<T =
|
|
2450
|
-
declare function raw<T =
|
|
2449
|
+
declare function raw<T = never>(...args: StaticSQLArgs): RawSQL<QueryColumn<T>>;
|
|
2450
|
+
declare function raw<T = never>(...args: [DynamicSQLArg]): DynamicRawSQL<QueryColumn<T>>;
|
|
2451
2451
|
declare const countSelect: RawSQL<QueryColumn<unknown, orchid_core.CoreBaseOperators>, DefaultColumnTypes<ColumnSchemaConfig<orchid_core.ColumnTypeBase<orchid_core.ColumnTypeSchemaArg, unknown, any, orchid_core.CoreBaseOperators, unknown, unknown, any, unknown, any, orchid_core.ColumnDataBase>>>>[];
|
|
2452
2452
|
declare function sqlQueryArgsToExpression(args: SQLQueryArgs): RawSQL<QueryColumn>;
|
|
2453
2453
|
type SqlFn = <T, Args extends [sql: TemplateStringsArray, ...values: unknown[]] | [sql: string] | [values: RecordUnknown, sql?: string]>(this: T, ...args: Args) => Args extends [RecordUnknown] ? (...sql: TemplateLiteralArgs) => RawSQLBase<QueryColumn, T> : RawSQLBase<QueryColumn, T>;
|
package/dist/index.js
CHANGED
|
@@ -6411,7 +6411,7 @@ const createCtx = () => ({
|
|
|
6411
6411
|
});
|
|
6412
6412
|
const mapColumnValues = (columns, encoders, data) => {
|
|
6413
6413
|
return columns.map(
|
|
6414
|
-
(key) => encoders[key] ? encoders[key](data[key]) : data[key]
|
|
6414
|
+
(key) => encoders[key] && !orchidCore.isExpression(data[key]) ? encoders[key](data[key]) : data[key]
|
|
6415
6415
|
);
|
|
6416
6416
|
};
|
|
6417
6417
|
const handleOneData = (q, data, ctx) => {
|