@mrnafisia/type-query
Advanced tools
Comparing version 2.0.4 to 2.0.5
import Decimal from 'decimal.js'; | ||
import { Json, NullableType, Schema, Table } from './Table'; | ||
import { BetweenOperator, BooleanOperator, CompareOperator, ListOperator, NullOperator } from './keywords'; | ||
import { ListOperator, NullOperator, BetweenOperator, BooleanOperator, CompareOperator } from './keywords'; | ||
type Context<S extends Schema = Schema> = { | ||
@@ -5,0 +5,0 @@ column: <C extends keyof S & string>(column: C, alias?: string) => NullableType<S[C]['type'], S[C]['nullable']>; |
@@ -18,3 +18,4 @@ import { Pool, PoolClient } from 'pg'; | ||
declare const testTransaction: (tablesWithData: TestTableData[], callback: (client: PoolClient) => Promise<void>, pool: Pool, isolationLevel?: TransactionIsolationLevel, rollback?: boolean) => Promise<void>; | ||
export { type TestTableData, isEqual, testTransaction }; | ||
declare const createTestTableData: <S extends Schema>(table: TestTableData<S>['table'], startData: TestTableData<S>['startData'], finalData: TestTableData<S>['finalData']) => TestTableData<S>; | ||
export { type TestTableData, isEqual, testTransaction, createTestTableData }; | ||
//# sourceMappingURL=testTransaction.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.testTransaction = exports.isEqual = void 0; | ||
exports.createTestTableData = exports.testTransaction = exports.isEqual = void 0; | ||
const never_catch_1 = require("never-catch"); | ||
@@ -85,2 +85,4 @@ const entity_1 = require("./entity"); | ||
exports.testTransaction = testTransaction; | ||
const createTestTableData = (table, startData, finalData) => ({ table, startData, finalData }); | ||
exports.createTestTableData = createTestTableData; | ||
//# sourceMappingURL=testTransaction.js.map |
@@ -0,3 +1,3 @@ | ||
import { Result } from 'never-catch'; | ||
import { Pool, PoolClient } from 'pg'; | ||
import { Result } from 'never-catch'; | ||
type TransactionIsolationLevel = 'read-uncommitted' | 'read-committed' | 'repeatable-read' | 'serializable'; | ||
@@ -4,0 +4,0 @@ declare const transaction: <R extends Result<unknown, unknown>>(pool: Pool, callback: (client: PoolClient) => Promise<R>, isolationLevel?: TransactionIsolationLevel, readOnly?: boolean) => Promise<R>; |
import Decimal from 'decimal.js'; | ||
import { Query } from './entity'; | ||
import { Json, NullableType, Schema, Table } from './Table'; | ||
import { LikeOperator, ListOperator, NullOperator, BetweenOperator, BooleanOperator, CompareOperator, ArithmeticOperator } from './keywords'; | ||
import { Query } from './entity'; | ||
declare const value: <T>(expression: T) => T; | ||
@@ -6,0 +6,0 @@ declare function arithmetic<T extends undefined | null | number>(expressionA: T, operator: ArithmeticOperator, expressionB: T): Extract<T, undefined | null> | (T extends number ? number : never); |
{ | ||
"name": "@mrnafisia/type-query", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "mini-orm with full type support for postgres.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
273521
2418