Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mrnafisia/type-query

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mrnafisia/type-query - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

dist/types/Context.d.ts

214

dist/context.d.ts

@@ -1,3 +0,3 @@

import { Table } from './types/table';
import { Context, ContextScope } from './types/context';
import { Table } from './types/Table';
import { Context, ContextScope } from './types/Context';
declare const createContext: <T extends Table>(table: T, alias?: string) => Context<T["columns"]>;

@@ -12,4 +12,4 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T["columns"] extends infer T_1 extends {

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -31,4 +31,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -51,4 +51,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -72,4 +72,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -93,4 +93,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -114,4 +114,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -127,3 +127,3 @@ };

type: "json" | "jsonb";
value: import("./types/json").JSON;
value: import("./types/Json").JSON;
}) | ({

@@ -136,4 +136,4 @@ type: import("./types/postgres").PostgresType;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -157,4 +157,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -179,4 +179,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -202,4 +202,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -225,4 +225,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -246,4 +246,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -268,4 +268,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -291,4 +291,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -314,4 +314,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -337,4 +337,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -361,4 +361,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -386,4 +386,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -395,3 +395,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -409,4 +409,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -418,3 +418,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -433,4 +433,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -442,3 +442,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -458,4 +458,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -478,4 +478,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -499,4 +499,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -520,4 +520,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -542,4 +542,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -560,4 +560,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -579,4 +579,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -599,4 +599,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -619,4 +619,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -639,4 +639,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -651,3 +651,3 @@ };

type: "json" | "jsonb";
value: import("./types/json").JSON;
value: import("./types/Json").JSON;
}) | ({

@@ -660,4 +660,4 @@ type: import("./types/postgres").PostgresType;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -680,4 +680,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -701,4 +701,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -723,4 +723,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -745,4 +745,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -765,4 +765,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -786,4 +786,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -808,4 +808,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -830,4 +830,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -852,4 +852,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -875,4 +875,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -899,4 +899,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -907,3 +907,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -921,4 +921,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -929,3 +929,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -944,4 +944,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -952,3 +952,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -968,4 +968,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -987,4 +987,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -1007,4 +1007,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -1027,4 +1027,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -1042,4 +1042,4 @@ };

});
} ? { [columnKey in keyof T_1]?: [op: null extends import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> ? import("./types/context").NullOperator : never] | [op: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends boolean ? import("./types/context").BooleanOperator : never] | [op: import("./types/context").CompareOperatorCompatible<import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>, import("./types/context").CompareOperator, never>, v: import("./types/entity").Expression<import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>>] | [op: import("./types/context").ListOperatorCompatible<import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>, import("./types/context").ListOperator, never>, v: readonly import("./types/entity").Expression<import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>>[] | undefined] | [op: "like", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends string ? import("./types/entity").Expression<string & import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>> : never] | [op: "like all" | "like some", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends string ? readonly import("./types/entity").Expression<string & import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>>[] | undefined : never] | [op: "@>" | "<@", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends import("./types/json").JSON ? import("./types/entity").Expression<import("./types/json").JSON & import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>> : never] | [op: "?", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends import("./types/json").JSON ? import("./types/entity").Expression<string> : never] | [op: "?|" | "?&", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends import("./types/json").JSON ? readonly import("./types/entity").Expression<string>[] | undefined : never]; } : never, alias: string) => import("./types/entity").ValueExpression<boolean>[];
} ? { [columnKey in keyof T_1]?: [op: null extends import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> ? import("./types/Context").NullOperator : never] | [op: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends boolean ? import("./types/Context").BooleanOperator : never] | [op: import("./types/Context").CompareOperatorCompatible<import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>, import("./types/Context").CompareOperator, never>, v: import("./types/Entity").Expression<import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>>] | [op: import("./types/Context").ListOperatorCompatible<import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>, import("./types/Context").ListOperator, never>, v: readonly import("./types/Entity").Expression<import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>>[] | undefined] | [op: "like", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends string ? import("./types/Entity").Expression<string & import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>> : never] | [op: "like all" | "like some", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends string ? readonly import("./types/Entity").Expression<string & import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>>[] | undefined : never] | [op: "@>" | "<@", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends import("./types/Json").JSON ? import("./types/Entity").Expression<import("./types/Json").JSON & import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]>> : never] | [op: "?", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends import("./types/Json").JSON ? import("./types/Entity").Expression<string> : never] | [op: "?|" | "?&", v: import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"], T["columns"][columnKey]["nullable"]> extends import("./types/Json").JSON ? readonly import("./types/Entity").Expression<string>[] | undefined : never]; } : never, alias: string) => import("./types/Entity").ValueExpression<boolean>[];
export { createContext, createContextScopeHelper };
//# sourceMappingURL=context.d.ts.map

@@ -1,4 +0,4 @@

import type { JoinType } from './types/entity';
import type { JoinType } from './types/Entity';
import { ReservedExpressionKeys } from './entity';
import type { ReferenceActions } from './types/table';
import type { ReferenceActions } from './types/Table';
import type { TransactionIsolationLevel } from './types/pool';

@@ -5,0 +5,0 @@ import type { OrderDirection, PostgresType } from './types/postgres';

@@ -6,10 +6,10 @@ export { U } from './U';

export { createModelUtils } from './model';
export type { Context } from './types/context';
export type { Context } from './types/Context';
export type { ClientBase, PoolClient } from 'pg';
export type { TestTableData } from './types/testUtil';
export type { Table, TableCheck } from './types/table';
export type { SimpleModel, Model } from './types/model';
export type { Table, TableCheck } from './types/Table';
export type { SimpleModel, Model } from './types/Model';
export { createPool, addHook, removeHook } from './pool';
export { testTransaction, createTestTableData } from './testUtil';
export type { JSON, JsonObject, JsonArray, BaseJsonValue } from './types/json';
export type { JSON, JsonObject, JsonArray, BaseJsonValue } from './types/Json';
export { createEntity, resolveResult, resolveReturning, resolveExpression } from './entity';

@@ -19,3 +19,3 @@ export type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable } from './types/postgres';

export * as Parser from './parser';
export type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery } from './types/entity';
export type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery } from './types/Entity';
//# sourceMappingURL=index.d.ts.map
import Decimal from 'decimal.js';
import { Table } from './types/table';
import { ModelUtils } from './types/model';
import { Table } from './types/Table';
import { ModelUtils } from './types/Model';
import { ColumnTypeByColumns } from './types/postgres';

@@ -26,4 +26,4 @@ declare const validateNumberGenerator: ({ min, max }: {

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -45,4 +45,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -65,4 +65,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -86,4 +86,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -107,4 +107,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -128,4 +128,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -141,3 +141,3 @@ };

type: "json" | "jsonb";
value: import("./types/json").JSON;
value: import("./types/Json").JSON;
}) | ({

@@ -150,4 +150,4 @@ type: import("./types/postgres").PostgresType;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -171,4 +171,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -193,4 +193,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -216,4 +216,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -239,4 +239,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -260,4 +260,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -282,4 +282,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -305,4 +305,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -328,4 +328,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -351,4 +351,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -375,4 +375,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -400,4 +400,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -409,3 +409,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -423,4 +423,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -432,3 +432,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -447,4 +447,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -456,3 +456,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -472,4 +472,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -492,4 +492,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -513,4 +513,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -534,4 +534,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -556,4 +556,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -574,4 +574,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -593,4 +593,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -613,4 +613,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -633,4 +633,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -653,4 +653,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -665,3 +665,3 @@ };

type: "json" | "jsonb";
value: import("./types/json").JSON;
value: import("./types/Json").JSON;
}) | ({

@@ -674,4 +674,4 @@ type: import("./types/postgres").PostgresType;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -694,4 +694,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -715,4 +715,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -737,4 +737,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -759,4 +759,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -779,4 +779,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -800,4 +800,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -822,4 +822,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -844,4 +844,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -866,4 +866,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -889,4 +889,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -913,4 +913,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -921,3 +921,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -935,4 +935,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -943,3 +943,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -958,4 +958,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -966,3 +966,3 @@ };

} & {
type: "character" | "character varying";
type: "character" | "character varying" | "uuid";
minLength?: number;

@@ -982,4 +982,4 @@ maxLength?: number;

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -1001,4 +1001,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -1021,4 +1021,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -1041,4 +1041,4 @@ };

table: Table;
onUpdate?: import("./types/table").ReferenceActions;
onDelete?: import("./types/table").ReferenceActions;
onUpdate?: import("./types/Table").ReferenceActions;
onDelete?: import("./types/Table").ReferenceActions;
column: string;

@@ -1045,0 +1045,0 @@ };

import Decimal from 'decimal.js';
import { JSON as Json } from './types/json';
import { JSON as Json } from './types/Json';
declare const boolean: (v: unknown) => boolean | undefined;

@@ -4,0 +4,0 @@ declare const number: (v: unknown) => number | undefined;

import type { ClientBase } from 'pg';
import type { Table } from './types/table';
import type { Table } from './types/Table';
import { type Result } from 'never-catch';

@@ -4,0 +4,0 @@ declare const createTables: (client: ClientBase, tables: Table[], resolve?: boolean) => Promise<Result<undefined, string | {

@@ -1,2 +0,2 @@

import { Param } from './entity';
import { Param } from './Entity';
import { Result } from 'never-catch';

@@ -3,0 +3,0 @@ import type { Pool as PgPool, PoolClient } from 'pg';

import Decimal from 'decimal.js';
import type { Table } from './table';
import type { JSON } from './json';
import type { Table } from './Table';
import type { JSON } from './Json';
type OrderDirection = 'asc' | 'desc';

@@ -5,0 +5,0 @@ type PostgresType = 'boolean' | 'smallint' | 'integer' | 'bigint' | 'real' | 'double precision' | 'numeric' | 'character' | 'character varying' | 'text' | 'uuid' | 'date' | 'timestamp without time zone' | 'timestamp with time zone' | 'json' | 'jsonb';

@@ -1,7 +0,7 @@

import { Table } from './table';
import { Table } from './Table';
import { PoolClient } from 'pg';
import { Result } from 'never-catch';
import { SimpleModel } from './model';
import { SimpleModel } from './Model';
import { ColumnTypeByColumns } from './postgres';
import { NullableAndDefaultColumns } from './entity';
import { NullableAndDefaultColumns } from './Entity';
import { Pool, TransactionIsolationLevel } from './pool';

@@ -8,0 +8,0 @@ type TestTableData<T extends Table> = {

import Decimal from 'decimal.js';
import { JSON as Json } from './types/json';
import type { Table } from './types/table';
import { JSON as Json } from './types/Json';
import type { Table } from './types/Table';
import type { ColumnTypeByTable, PostgresType } from './types/postgres';
import type { ExpressionTypes, ValueExpression, Expression, QueryExpression, Query } from './types/entity';
import type { ArithmeticOperator, NullOperator, BooleanOperator, CompareOperator, ListOperator, LikeOperator, JsonOperator } from './types/context';
import type { ExpressionTypes, ValueExpression, Expression, QueryExpression, Query } from './types/Entity';
import type { ArithmeticOperator, NullOperator, BooleanOperator, CompareOperator, ListOperator, LikeOperator, JsonOperator } from './types/Context';
declare function val(v: null | undefined): ValueExpression<null>;

@@ -8,0 +8,0 @@ declare function val(v: boolean | undefined): ValueExpression<boolean>;

{
"name": "@mrnafisia/type-query",
"version": "1.2.0",
"version": "1.2.1",
"description": "mini-orm with full type support for postgres.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc