diff --git a/site/src/pages/_HomePage.tsx b/site/src/pages/_HomePage.tsx index b62e558d..eb70623c 100644 --- a/site/src/pages/_HomePage.tsx +++ b/site/src/pages/_HomePage.tsx @@ -83,7 +83,7 @@ await todo.update({ completed: true }).execute(db);`, { title: "3. Expose your API over RPC, Safely", description: - "Give clients a composable query builder with your unescapable data boundaries. Compose queries in the client with rich Postgres features and function as primitives.", + "Give clients a composable query builder with your inescapable data boundaries. Compose queries in the client with rich Postgres features and functions as primitives.", leftCode: `class User extends db.Table("users") { // ... } diff --git a/src/types/emission/common.ts b/src/types/emission/common.ts index 202b0b4a..7707482b 100644 --- a/src/types/emission/common.ts +++ b/src/types/emission/common.ts @@ -19,6 +19,14 @@ export const OPERATOR_ALIASES: { [op: string]: string } = { "<=": "lte", ">": "gt", ">=": "gte", + // Pattern matching. `like` is also a real function on both hosts + // (sqlite's like(X,Y), pg's catalog like), so the emitter's collision + // rule keeps the host function under that name and its signature stays + // authoritative; the `['~~']` bracket form covers the operator. + "~~": "like", + "~~*": "ilike", + "!~~": "notLike", + "!~~*": "notIlike", "+": "plus", "-": "minus", "*": "times", diff --git a/src/types/postgres/generated/anyarray.ts b/src/types/postgres/generated/anyarray.ts index 4d7da939..bf5faac4 100644 --- a/src/types/postgres/generated/anyarray.ts +++ b/src/types/postgres/generated/anyarray.ts @@ -36,10 +36,10 @@ export class Anyarray, in out N extends number> extends max(): types.Anyarray { const [__rt, ...__rest] = runtime.match([], [[[], runtime.pgType(this)]]); return runtime.funcCall("max", [this, ...__rest], __rt) as any; } @expose.unchecked() min(): types.Anyarray { const [__rt, ...__rest] = runtime.match([], [[[], runtime.pgType(this)]]); return runtime.funcCall("min", [this, ...__rest], __rt) as any; } - generateSubscripts | number, M1 extends types.Bool | boolean>(arg0: M0, arg1: M1): runtime.Srf<{ generate_subscripts: types.Int4 | runtime.NullOf>> }, "generate_subscripts">; generateSubscripts | number>(arg0: M0): runtime.Srf<{ generate_subscripts: types.Int4>> }, "generate_subscripts">; + generateSubscripts | number, M1 extends types.Bool | boolean>(arg0: M0, arg1: M1): runtime.Srf<{ generate_subscripts: types.Int4 | runtime.NullOf>> }, "generate_subscripts">; @expose.unchecked() - generateSubscripts(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }, { type: types.Bool, allowPrimitive: true }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return new runtime.Srf("generate_subscripts", [this, ...__rest], [["generate_subscripts", __rt]]) as any; } + generateSubscripts(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Bool, allowPrimitive: true }], types.Int4]]); return new runtime.Srf("generate_subscripts", [this, ...__rest], [["generate_subscripts", __rt]]) as any; } @expose.unchecked() unnest(): runtime.Srf<{ unnest: T }, "unnest"> { const [__rt, ...__rest] = runtime.match([], [[[], runtime.pgElement(this)]]); return new runtime.Srf("unnest", [this, ...__rest], [["unnest", __rt]]) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/anycompatiblearray.ts b/src/types/postgres/generated/anycompatiblearray.ts index 76412e9c..eb92dedb 100644 --- a/src/types/postgres/generated/anycompatiblearray.ts +++ b/src/types/postgres/generated/anycompatiblearray.ts @@ -10,16 +10,16 @@ export class Anycompatiblearray, in out N extends numbe arrayAppend>(arg0: M0): types.Anycompatiblearray { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anycompatible, allowPrimitive: true }], runtime.pgType(this)]]); return runtime.funcCall("array_append", [this, ...__rest], __rt) as any; } @expose.unchecked() arrayCat | runtime.TsTypeOf[]>(arg0: M0): types.Anycompatiblearray { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anycompatiblearray, allowPrimitive: true }], runtime.pgType(this)]]); return runtime.funcCall("array_cat", [this, ...__rest], __rt) as any; } - arrayPosition, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Int4<1>; arrayPosition>(arg0: M0): types.Int4<1>; + arrayPosition, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Int4<1>; @expose.unchecked() - arrayPosition(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Anycompatible, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Anycompatible, allowPrimitive: true }], types.Int4]]); return runtime.funcCall("array_position", [this, ...__rest], __rt) as any; } + arrayPosition(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Anycompatible, allowPrimitive: true }], types.Int4], [[{ type: types.Anycompatible, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.funcCall("array_position", [this, ...__rest], __rt) as any; } @expose.unchecked() arrayRemove>(arg0: M0): types.Anycompatiblearray { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anycompatible, allowPrimitive: true }], runtime.pgType(this)]]); return runtime.funcCall("array_remove", [this, ...__rest], __rt) as any; } @expose.unchecked() arrayReplace, M1 extends T | runtime.TsTypeOf>(arg0: M0, arg1: M1): types.Anycompatiblearray { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Anycompatible, allowPrimitive: true }, { type: types.Anycompatible, allowPrimitive: true }], runtime.pgType(this)]]); return runtime.funcCall("array_replace", [this, ...__rest], __rt) as any; } - ['||'] | runtime.TsTypeOf[]>(arg0: M0): types.Anycompatiblearray>>; ['||'](arg0: M0): types.Anycompatiblearray>>; + ['||'] | runtime.TsTypeOf[]>(arg0: M0): types.Anycompatiblearray>>; @expose.unchecked() - ['||'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anycompatiblearray, allowPrimitive: true }], runtime.pgType(this)], [[{ type: types.Anycompatible }], runtime.pgType(this)]]); return runtime.opCall(runtime.sql`||`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['||'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anycompatible }], runtime.pgType(this)], [[{ type: types.Anycompatiblearray, allowPrimitive: true }], runtime.pgType(this)]]); return runtime.opCall(runtime.sql`||`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/generated/anymultirange.ts b/src/types/postgres/generated/anymultirange.ts index d61b08a2..c86ebffd 100644 --- a/src/types/postgres/generated/anymultirange.ts +++ b/src/types/postgres/generated/anymultirange.ts @@ -68,10 +68,10 @@ export class Anymultirange, in out N extends number> ex ['&&'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; @expose.unchecked() ['&&'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange }], types.Bool], [[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`&&`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['&<'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; ['&<']>(arg0: M0): types.Bool>>; + ['&<'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; @expose.unchecked() - ['&<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool], [[{ type: types.Anyrange }], types.Bool]]); return runtime.opCall(runtime.sql`&<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['&<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange }], types.Bool], [[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`&<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['&>']>(arg0: M0): types.Bool>>; ['&>'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; @expose.unchecked() @@ -96,10 +96,10 @@ export class Anymultirange, in out N extends number> ex ['<'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() lt | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<<'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; ['<<']>(arg0: M0): types.Bool>>; + ['<<'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool], [[{ type: types.Anyrange }], types.Bool]]); return runtime.opCall(runtime.sql`<<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange }], types.Bool], [[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<='] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() @@ -124,13 +124,13 @@ export class Anymultirange, in out N extends number> ex ['>='] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() gte | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>>'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; ['>>']>(arg0: M0): types.Bool>>; + ['>>'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool], [[{ type: types.Anyrange }], types.Bool]]); return runtime.opCall(runtime.sql`>>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['@>'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; - ['@>']>(arg0: M0): types.Bool>>; + ['>>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange }], types.Bool], [[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['@>'](arg0: M0): types.Bool>>; + ['@>']>(arg0: M0): types.Bool>>; + ['@>'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; @expose.unchecked() - ['@>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool], [[{ type: types.Anyrange }], types.Bool], [[{ type: types.Anyelement }], types.Bool]]); return runtime.opCall(runtime.sql`@>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['@>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyelement }], types.Bool], [[{ type: types.Anyrange }], types.Bool], [[{ type: types.Anymultirange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`@>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/generated/anyrange.ts b/src/types/postgres/generated/anyrange.ts index 696b0352..80e36715 100644 --- a/src/types/postgres/generated/anyrange.ts +++ b/src/types/postgres/generated/anyrange.ts @@ -58,14 +58,14 @@ export class Anyrange, in out N extends number> extends rangeAgg(): types.Anymultirange { const [__rt, ...__rest] = runtime.match([], [[[], types.Anymultirange]]); return runtime.funcCall("range_agg", [this, ...__rest], __rt) as any; } @expose.unchecked() rangeIntersectAgg(): types.Anyrange { const [__rt, ...__rest] = runtime.match([], [[[], runtime.pgType(this)]]); return runtime.funcCall("range_intersect_agg", [this, ...__rest], __rt) as any; } - ['&&']>(arg0: M0): types.Bool>>; ['&&'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; + ['&&']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['&&'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange }], types.Bool], [[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`&&`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['&<']>(arg0: M0): types.Bool>>; + ['&&'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool], [[{ type: types.Anymultirange }], types.Bool]]); return runtime.opCall(runtime.sql`&&`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['&<'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; + ['&<']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['&<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange }], types.Bool], [[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`&<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['&<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool], [[{ type: types.Anymultirange }], types.Bool]]); return runtime.opCall(runtime.sql`&<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['&>'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; ['&>']>(arg0: M0): types.Bool>>; @expose.unchecked() @@ -82,18 +82,18 @@ export class Anyrange, in out N extends number> extends ['-'] | runtime.TsTypeOf[]>(arg0: M0): types.Anyrange>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], runtime.pgType(this)]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() minus | runtime.TsTypeOf[]>(arg0: M0): types.Anyrange>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], runtime.pgType(this)]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['-|-']>(arg0: M0): types.Bool>>; ['-|-'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; + ['-|-']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['-|-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange }], types.Bool], [[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`-|-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['-|-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool], [[{ type: types.Anymultirange }], types.Bool]]); return runtime.opCall(runtime.sql`-|-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() lt | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<<']>(arg0: M0): types.Bool>>; ['<<'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; + ['<<']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange }], types.Bool], [[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool], [[{ type: types.Anymultirange }], types.Bool]]); return runtime.opCall(runtime.sql`<<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<='] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() @@ -118,13 +118,13 @@ export class Anyrange, in out N extends number> extends ['>='] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() gte | runtime.TsTypeOf[]>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>>']>(arg0: M0): types.Bool>>; ['>>'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; + ['>>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anymultirange }], types.Bool], [[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['>>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyrange, allowPrimitive: true }], types.Bool], [[{ type: types.Anymultirange }], types.Bool]]); return runtime.opCall(runtime.sql`>>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['@>'](arg0: M0): types.Bool>>; - ['@>']>(arg0: M0): types.Bool>>; ['@>'] | runtime.TsTypeOf[]>(arg0: M0): types.Bool>>; + ['@>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['@>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyelement }], types.Bool], [[{ type: types.Anymultirange }], types.Bool], [[{ type: types.Anyrange, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`@>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['@>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anyelement }], types.Bool], [[{ type: types.Anyrange, allowPrimitive: true }], types.Bool], [[{ type: types.Anymultirange }], types.Bool]]); return runtime.opCall(runtime.sql`@>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/generated/bit.ts b/src/types/postgres/generated/bit.ts index d835fc15..35fc4f17 100644 --- a/src/types/postgres/generated/bit.ts +++ b/src/types/postgres/generated/bit.ts @@ -48,10 +48,10 @@ export class Bit extends Anynonarray { length(): types.Int4 { const [__rt, ...__rest] = runtime.match([], [[[], types.Int4]]); return runtime.funcCall("length", [this, ...__rest], __rt) as any; } @expose.unchecked() octetLength(): types.Int4 { const [__rt, ...__rest] = runtime.match([], [[[], types.Int4]]); return runtime.funcCall("octet_length", [this, ...__rest], __rt) as any; } - overlay | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Bit | runtime.NullOf | runtime.NullOf>>; overlay | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Bit | runtime.NullOf>>; + overlay | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Bit | runtime.NullOf | runtime.NullOf>>; @expose.unchecked() - overlay(arg0: unknown, arg1: unknown, arg2?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Bit, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bit], [[{ type: types.Bit, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bit]]); return runtime.funcCall("overlay", [this, ...__rest], __rt) as any; } + overlay(arg0: unknown, arg1: unknown, arg2?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Bit, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bit], [[{ type: types.Bit, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bit]]); return runtime.funcCall("overlay", [this, ...__rest], __rt) as any; } @expose.unchecked() position | string>(arg0: M0): types.Int4>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bit, allowPrimitive: true }], types.Int4]]); return runtime.funcCall("position", [this, ...__rest], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/bpchar.ts b/src/types/postgres/generated/bpchar.ts index aa34acbe..1fb9b754 100644 --- a/src/types/postgres/generated/bpchar.ts +++ b/src/types/postgres/generated/bpchar.ts @@ -33,18 +33,10 @@ export class Bpchar extends Anynonarray { @expose.unchecked() bpcharSmaller | string>(arg0: M0): types.Bpchar>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bpchar, allowPrimitive: true }], types.Bpchar]]); return runtime.funcCall("bpchar_smaller", [this, ...__rest], __rt) as any; } @expose.unchecked() - bpchariclike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bpchariclike", [this, ...__rest], __rt) as any; } - @expose.unchecked() - bpcharicnlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bpcharicnlike", [this, ...__rest], __rt) as any; } - @expose.unchecked() bpcharicregexeq | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bpcharicregexeq", [this, ...__rest], __rt) as any; } @expose.unchecked() bpcharicregexne | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bpcharicregexne", [this, ...__rest], __rt) as any; } @expose.unchecked() - bpcharlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bpcharlike", [this, ...__rest], __rt) as any; } - @expose.unchecked() - bpcharnlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bpcharnlike", [this, ...__rest], __rt) as any; } - @expose.unchecked() bpcharregexeq | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bpcharregexeq", [this, ...__rest], __rt) as any; } @expose.unchecked() bpcharregexne | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bpcharregexne", [this, ...__rest], __rt) as any; } @@ -69,8 +61,12 @@ export class Bpchar extends Anynonarray { @expose.unchecked() ['!~~'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() + notLike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + @expose.unchecked() ['!~~*'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() + notIlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + @expose.unchecked() ['<'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bpchar, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() lt | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bpchar, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @@ -109,5 +105,9 @@ export class Bpchar extends Anynonarray { @expose.unchecked() ['~~'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() + like | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + @expose.unchecked() ['~~*'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`~~*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + @expose.unchecked() + ilike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`~~*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/generated/bytea.ts b/src/types/postgres/generated/bytea.ts index ef71d691..5098b165 100644 --- a/src/types/postgres/generated/bytea.ts +++ b/src/types/postgres/generated/bytea.ts @@ -27,10 +27,6 @@ export class Bytea extends Anynonarray { @expose.unchecked() byteacat | string>(arg0: M0): types.Bytea>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bytea]]); return runtime.funcCall("byteacat", [this, ...__rest], __rt) as any; } @expose.unchecked() - bytealike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("bytealike", [this, ...__rest], __rt) as any; } - @expose.unchecked() - byteanlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("byteanlike", [this, ...__rest], __rt) as any; } - @expose.unchecked() byteasend(): types.Bytea { const [__rt, ...__rest] = runtime.match([], [[[], types.Bytea]]); return runtime.funcCall("byteasend", [this, ...__rest], __rt) as any; } @expose.unchecked() encode | string>(arg0: M0): types.Text>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("encode", [this, ...__rest], __rt) as any; } @@ -52,10 +48,10 @@ export class Bytea extends Anynonarray { notlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("notlike", [this, ...__rest], __rt) as any; } @expose.unchecked() octetLength(): types.Int4 { const [__rt, ...__rest] = runtime.match([], [[[], types.Int4]]); return runtime.funcCall("octet_length", [this, ...__rest], __rt) as any; } - overlay | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Bytea | runtime.NullOf | runtime.NullOf>>; overlay | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Bytea | runtime.NullOf>>; + overlay | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Bytea | runtime.NullOf | runtime.NullOf>>; @expose.unchecked() - overlay(arg0: unknown, arg1: unknown, arg2?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Bytea, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bytea], [[{ type: types.Bytea, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bytea]]); return runtime.funcCall("overlay", [this, ...__rest], __rt) as any; } + overlay(arg0: unknown, arg1: unknown, arg2?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Bytea, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bytea], [[{ type: types.Bytea, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bytea]]); return runtime.funcCall("overlay", [this, ...__rest], __rt) as any; } @expose.unchecked() position | string>(arg0: M0): types.Int4>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Int4]]); return runtime.funcCall("position", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -76,15 +72,17 @@ export class Bytea extends Anynonarray { substr | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Bytea | runtime.NullOf>>; @expose.unchecked() substr(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }], types.Bytea], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bytea]]); return runtime.funcCall("substr", [this, ...__rest], __rt) as any; } - substring | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Bytea | runtime.NullOf>>; substring | number>(arg0: M0): types.Bytea>>; + substring | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Bytea | runtime.NullOf>>; @expose.unchecked() - substring(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bytea], [[{ type: types.Int4, allowPrimitive: true }], types.Bytea]]); return runtime.funcCall("substring", [this, ...__rest], __rt) as any; } + substring(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }], types.Bytea], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Bytea]]); return runtime.funcCall("substring", [this, ...__rest], __rt) as any; } @expose.unchecked() stringAgg | string>(arg0: M0): types.Bytea<0 | 1> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bytea]]); return runtime.funcCall("string_agg", [this, ...__rest], __rt) as any; } @expose.unchecked() ['!~~'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() + notLike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + @expose.unchecked() ['<'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() lt | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Bytea, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } diff --git a/src/types/postgres/generated/date.ts b/src/types/postgres/generated/date.ts index 63951b6a..3594b08d 100644 --- a/src/types/postgres/generated/date.ts +++ b/src/types/postgres/generated/date.ts @@ -39,47 +39,47 @@ export class Date extends Anynonarray { @expose.unchecked() min(): types.Date<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Date]]); return runtime.funcCall("min", [this, ...__rest], __rt) as any; } ['+'] | number>(arg0: M0): types.Date>>; - ['+']>(arg0: M0): types.Timestamptz>>; ['+']>(arg0: M0): types.Timestamp>>; ['+']>(arg0: M0): types.Timestamp>>; + ['+']>(arg0: M0): types.Timestamptz>>; @expose.unchecked() - ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Date], [[{ type: types.Timetz }], types.Timestamptz], [[{ type: types.Time }], types.Timestamp], [[{ type: types.Interval }], types.Timestamp]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Date], [[{ type: types.Time }], types.Timestamp], [[{ type: types.Interval }], types.Timestamp], [[{ type: types.Timetz }], types.Timestamptz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } plus | number>(arg0: M0): types.Date>>; - plus>(arg0: M0): types.Timestamptz>>; plus>(arg0: M0): types.Timestamp>>; plus>(arg0: M0): types.Timestamp>>; + plus>(arg0: M0): types.Timestamptz>>; @expose.unchecked() - plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Date], [[{ type: types.Timetz }], types.Timestamptz], [[{ type: types.Time }], types.Timestamp], [[{ type: types.Interval }], types.Timestamp]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['-']>(arg0: M0): types.Timestamp>>; - ['-'] | string>(arg0: M0): types.Int4>>; + plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Date], [[{ type: types.Time }], types.Timestamp], [[{ type: types.Interval }], types.Timestamp], [[{ type: types.Timetz }], types.Timestamptz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['-'] | number>(arg0: M0): types.Date>>; + ['-'] | string>(arg0: M0): types.Int4>>; + ['-']>(arg0: M0): types.Timestamp>>; @expose.unchecked() - ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Timestamp], [[{ type: types.Date, allowPrimitive: true }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Date]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - minus>(arg0: M0): types.Timestamp>>; - minus | string>(arg0: M0): types.Int4>>; + ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Date], [[{ type: types.Date, allowPrimitive: true }], types.Int4], [[{ type: types.Interval }], types.Timestamp]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } minus | number>(arg0: M0): types.Date>>; + minus | string>(arg0: M0): types.Int4>>; + minus>(arg0: M0): types.Timestamp>>; @expose.unchecked() - minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Timestamp], [[{ type: types.Date, allowPrimitive: true }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Date]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Date], [[{ type: types.Date, allowPrimitive: true }], types.Int4], [[{ type: types.Interval }], types.Timestamp]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<'] | string>(arg0: M0): types.Bool>>; - ['<']>(arg0: M0): types.Bool>>; ['<']>(arg0: M0): types.Bool>>; + ['<']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Timestamp }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } lt | string>(arg0: M0): types.Bool>>; - lt>(arg0: M0): types.Bool>>; lt>(arg0: M0): types.Bool>>; + lt>(arg0: M0): types.Bool>>; @expose.unchecked() - lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Timestamp }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<='] | string>(arg0: M0): types.Bool>>; ['<=']>(arg0: M0): types.Bool>>; ['<=']>(arg0: M0): types.Bool>>; - ['<='] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Date, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lte | string>(arg0: M0): types.Bool>>; lte>(arg0: M0): types.Bool>>; lte>(arg0: M0): types.Bool>>; - lte | string>(arg0: M0): types.Bool>>; @expose.unchecked() - lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Date, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<>'] | string>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; @@ -100,16 +100,16 @@ export class Date extends Anynonarray { eq>(arg0: M0): types.Bool>>; @expose.unchecked() eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>']>(arg0: M0): types.Bool>>; ['>'] | string>(arg0: M0): types.Bool>>; ['>']>(arg0: M0): types.Bool>>; + ['>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gt>(arg0: M0): types.Bool>>; + ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gt | string>(arg0: M0): types.Bool>>; gt>(arg0: M0): types.Bool>>; + gt>(arg0: M0): types.Bool>>; @expose.unchecked() - gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>='] | string>(arg0: M0): types.Bool>>; ['>=']>(arg0: M0): types.Bool>>; ['>=']>(arg0: M0): types.Bool>>; diff --git a/src/types/postgres/generated/float4.ts b/src/types/postgres/generated/float4.ts index cf6ecae5..3dcb4e19 100644 --- a/src/types/postgres/generated/float4.ts +++ b/src/types/postgres/generated/float4.ts @@ -57,48 +57,48 @@ export class Float4 extends Anynonarray { varSamp(): types.Float8<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Float8]]); return runtime.funcCall("var_samp", [this, ...__rest], __rt) as any; } @expose.unchecked() variance(): types.Float8<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Float8]]); return runtime.funcCall("variance", [this, ...__rest], __rt) as any; } - ['*'] | string>(arg0: M0): types.Money>>; - ['*']>(arg0: M0): types.Float8>>; ['*'] | number>(arg0: M0): types.Float4>>; + ['*']>(arg0: M0): types.Float8>>; + ['*'] | string>(arg0: M0): types.Money>>; @expose.unchecked() - ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money, allowPrimitive: true }], types.Money], [[{ type: types.Float8 }], types.Float8], [[{ type: types.Float4, allowPrimitive: true }], types.Float4]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - times | string>(arg0: M0): types.Money>>; - times>(arg0: M0): types.Float8>>; + ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Float4], [[{ type: types.Float8 }], types.Float8], [[{ type: types.Money, allowPrimitive: true }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } times | number>(arg0: M0): types.Float4>>; + times>(arg0: M0): types.Float8>>; + times | string>(arg0: M0): types.Money>>; @expose.unchecked() - times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money, allowPrimitive: true }], types.Money], [[{ type: types.Float8 }], types.Float8], [[{ type: types.Float4, allowPrimitive: true }], types.Float4]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['+']>(arg0: M0): types.Float8>>; + times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Float4], [[{ type: types.Float8 }], types.Float8], [[{ type: types.Money, allowPrimitive: true }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['+'] | number>(arg0: M0): types.Float4>>; + ['+']>(arg0: M0): types.Float8>>; @expose.unchecked() - ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Float8], [[{ type: types.Float4, allowPrimitive: true }], types.Float4]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - plus>(arg0: M0): types.Float8>>; + ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Float4], [[{ type: types.Float8 }], types.Float8]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } plus | number>(arg0: M0): types.Float4>>; + plus>(arg0: M0): types.Float8>>; @expose.unchecked() - plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Float8], [[{ type: types.Float4, allowPrimitive: true }], types.Float4]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['-']>(arg0: M0): types.Float8>>; + plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Float4], [[{ type: types.Float8 }], types.Float8]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['-'] | number>(arg0: M0): types.Float4>>; + ['-']>(arg0: M0): types.Float8>>; @expose.unchecked() - ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Float8], [[{ type: types.Float4, allowPrimitive: true }], types.Float4]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - minus>(arg0: M0): types.Float8>>; + ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Float4], [[{ type: types.Float8 }], types.Float8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } minus | number>(arg0: M0): types.Float4>>; + minus>(arg0: M0): types.Float8>>; @expose.unchecked() - minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Float8], [[{ type: types.Float4, allowPrimitive: true }], types.Float4]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['/']>(arg0: M0): types.Float8>>; + minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Float4], [[{ type: types.Float8 }], types.Float8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['/'] | number>(arg0: M0): types.Float4>>; + ['/']>(arg0: M0): types.Float8>>; @expose.unchecked() - ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Float8], [[{ type: types.Float4, allowPrimitive: true }], types.Float4]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - divide>(arg0: M0): types.Float8>>; + ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Float4], [[{ type: types.Float8 }], types.Float8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } divide | number>(arg0: M0): types.Float4>>; + divide>(arg0: M0): types.Float8>>; @expose.unchecked() - divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Float8], [[{ type: types.Float4, allowPrimitive: true }], types.Float4]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<']>(arg0: M0): types.Bool>>; + divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Float4], [[{ type: types.Float8 }], types.Float8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<'] | number>(arg0: M0): types.Bool>>; + ['<']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Bool], [[{ type: types.Float4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - lt>(arg0: M0): types.Bool>>; + ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Bool], [[{ type: types.Float8 }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } lt | number>(arg0: M0): types.Bool>>; + lt>(arg0: M0): types.Bool>>; @expose.unchecked() - lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Bool], [[{ type: types.Float4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Bool], [[{ type: types.Float8 }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<='] | number>(arg0: M0): types.Bool>>; ['<=']>(arg0: M0): types.Bool>>; @expose.unchecked() @@ -123,20 +123,20 @@ export class Float4 extends Anynonarray { eq>(arg0: M0): types.Bool>>; @expose.unchecked() eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Bool], [[{ type: types.Float8 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>']>(arg0: M0): types.Bool>>; ['>'] | number>(arg0: M0): types.Bool>>; + ['>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Bool], [[{ type: types.Float4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gt>(arg0: M0): types.Bool>>; + ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Bool], [[{ type: types.Float8 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gt | number>(arg0: M0): types.Bool>>; + gt>(arg0: M0): types.Bool>>; @expose.unchecked() - gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Bool], [[{ type: types.Float4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>=']>(arg0: M0): types.Bool>>; + gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Bool], [[{ type: types.Float8 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>='] | number>(arg0: M0): types.Bool>>; + ['>=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Bool], [[{ type: types.Float4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gte>(arg0: M0): types.Bool>>; + ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Bool], [[{ type: types.Float8 }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gte | number>(arg0: M0): types.Bool>>; + gte>(arg0: M0): types.Bool>>; @expose.unchecked() - gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8 }], types.Bool], [[{ type: types.Float4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4, allowPrimitive: true }], types.Bool], [[{ type: types.Float8 }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/generated/float8.ts b/src/types/postgres/generated/float8.ts index fc1decd1..c2806c57 100644 --- a/src/types/postgres/generated/float8.ts +++ b/src/types/postgres/generated/float8.ts @@ -185,18 +185,18 @@ export class Float8 extends Anynonarray { varSamp(): types.Float8<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Float8]]); return runtime.funcCall("var_samp", [this, ...__rest], __rt) as any; } @expose.unchecked() variance(): types.Float8<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Float8]]); return runtime.funcCall("variance", [this, ...__rest], __rt) as any; } - ['*']>(arg0: M0): types.Money>>; + ['*']>(arg0: M0): types.Float8>>; ['*'] | number>(arg0: M0): types.Float8>>; + ['*']>(arg0: M0): types.Money>>; ['*']>(arg0: M0): types.Interval>>; - ['*']>(arg0: M0): types.Float8>>; @expose.unchecked() - ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money }], types.Money], [[{ type: types.Float8, allowPrimitive: true }], types.Float8], [[{ type: types.Interval }], types.Interval], [[{ type: types.Float4 }], types.Float8]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - times>(arg0: M0): types.Money>>; + ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Float8], [[{ type: types.Float8, allowPrimitive: true }], types.Float8], [[{ type: types.Money }], types.Money], [[{ type: types.Interval }], types.Interval]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + times>(arg0: M0): types.Float8>>; times | number>(arg0: M0): types.Float8>>; + times>(arg0: M0): types.Money>>; times>(arg0: M0): types.Interval>>; - times>(arg0: M0): types.Float8>>; @expose.unchecked() - times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money }], types.Money], [[{ type: types.Float8, allowPrimitive: true }], types.Float8], [[{ type: types.Interval }], types.Interval], [[{ type: types.Float4 }], types.Float8]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Float8], [[{ type: types.Float8, allowPrimitive: true }], types.Float8], [[{ type: types.Money }], types.Money], [[{ type: types.Interval }], types.Interval]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['+']>(arg0: M0): types.Float8>>; ['+'] | number>(arg0: M0): types.Float8>>; @expose.unchecked() @@ -205,14 +205,14 @@ export class Float8 extends Anynonarray { plus | number>(arg0: M0): types.Float8>>; @expose.unchecked() plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Float8], [[{ type: types.Float8, allowPrimitive: true }], types.Float8]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['-'] | number>(arg0: M0): types.Float8>>; ['-']>(arg0: M0): types.Float8>>; + ['-'] | number>(arg0: M0): types.Float8>>; @expose.unchecked() - ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8, allowPrimitive: true }], types.Float8], [[{ type: types.Float4 }], types.Float8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - minus | number>(arg0: M0): types.Float8>>; + ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Float8], [[{ type: types.Float8, allowPrimitive: true }], types.Float8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } minus>(arg0: M0): types.Float8>>; + minus | number>(arg0: M0): types.Float8>>; @expose.unchecked() - minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8, allowPrimitive: true }], types.Float8], [[{ type: types.Float4 }], types.Float8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Float8], [[{ type: types.Float8, allowPrimitive: true }], types.Float8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['/']>(arg0: M0): types.Float8>>; ['/'] | number>(arg0: M0): types.Float8>>; @expose.unchecked() @@ -237,22 +237,22 @@ export class Float8 extends Anynonarray { lte | number>(arg0: M0): types.Bool>>; @expose.unchecked() lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Bool], [[{ type: types.Float8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<>'] | number>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; + ['<>'] | number>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8, allowPrimitive: true }], types.Bool], [[{ type: types.Float4 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ne | number>(arg0: M0): types.Bool>>; + ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Bool], [[{ type: types.Float8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ne>(arg0: M0): types.Bool>>; + ne | number>(arg0: M0): types.Bool>>; @expose.unchecked() - ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8, allowPrimitive: true }], types.Bool], [[{ type: types.Float4 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['='] | number>(arg0: M0): types.Bool>>; + ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Bool], [[{ type: types.Float8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['=']>(arg0: M0): types.Bool>>; + ['='] | number>(arg0: M0): types.Bool>>; @expose.unchecked() - ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8, allowPrimitive: true }], types.Bool], [[{ type: types.Float4 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - eq | number>(arg0: M0): types.Bool>>; + ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Bool], [[{ type: types.Float8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } eq>(arg0: M0): types.Bool>>; + eq | number>(arg0: M0): types.Bool>>; @expose.unchecked() - eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8, allowPrimitive: true }], types.Bool], [[{ type: types.Float4 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Bool], [[{ type: types.Float8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>']>(arg0: M0): types.Bool>>; ['>'] | number>(arg0: M0): types.Bool>>; @expose.unchecked() diff --git a/src/types/postgres/generated/int2.ts b/src/types/postgres/generated/int2.ts index 57d38f1f..baea42fc 100644 --- a/src/types/postgres/generated/int2.ts +++ b/src/types/postgres/generated/int2.ts @@ -83,18 +83,18 @@ export class Int2 extends Anynonarray { ['%'] | number>(arg0: M0): types.Int2>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Int2]]); return runtime.opCall(runtime.sql`%`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['&'] | number>(arg0: M0): types.Int2>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Int2]]); return runtime.opCall(runtime.sql`&`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['*']>(arg0: M0): types.Int8>>; ['*'] | number>(arg0: M0): types.Int2>>; - ['*']>(arg0: M0): types.Money>>; ['*']>(arg0: M0): types.Int4>>; - ['*']>(arg0: M0): types.Int8>>; + ['*']>(arg0: M0): types.Money>>; @expose.unchecked() - ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Money }], types.Money], [[{ type: types.Int4 }], types.Int4], [[{ type: types.Int8 }], types.Int8]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4], [[{ type: types.Money }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + times>(arg0: M0): types.Int8>>; times | number>(arg0: M0): types.Int2>>; - times>(arg0: M0): types.Money>>; times>(arg0: M0): types.Int4>>; - times>(arg0: M0): types.Int8>>; + times>(arg0: M0): types.Money>>; @expose.unchecked() - times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Money }], types.Money], [[{ type: types.Int4 }], types.Int4], [[{ type: types.Int8 }], types.Int8]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4], [[{ type: types.Money }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['+'] | string>(arg0: M0): types.Int8>>; ['+'] | number>(arg0: M0): types.Int2>>; ['+']>(arg0: M0): types.Int4>>; @@ -105,26 +105,26 @@ export class Int2 extends Anynonarray { plus>(arg0: M0): types.Int4>>; @expose.unchecked() plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['-'] | string>(arg0: M0): types.Int8>>; ['-'] | number>(arg0: M0): types.Int2>>; ['-']>(arg0: M0): types.Int4>>; - ['-'] | string>(arg0: M0): types.Int8>>; @expose.unchecked() - ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + minus | string>(arg0: M0): types.Int8>>; minus | number>(arg0: M0): types.Int2>>; minus>(arg0: M0): types.Int4>>; - minus | string>(arg0: M0): types.Int8>>; @expose.unchecked() - minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['/']>(arg0: M0): types.Int4>>; + minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['/'] | string>(arg0: M0): types.Int8>>; ['/'] | number>(arg0: M0): types.Int2>>; + ['/']>(arg0: M0): types.Int4>>; @expose.unchecked() - ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4 }], types.Int4], [[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - divide>(arg0: M0): types.Int4>>; + ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } divide | string>(arg0: M0): types.Int8>>; divide | number>(arg0: M0): types.Int2>>; + divide>(arg0: M0): types.Int4>>; @expose.unchecked() - divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4 }], types.Int4], [[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2, allowPrimitive: true }], types.Int2], [[{ type: types.Int4 }], types.Int4]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<'] | string>(arg0: M0): types.Bool>>; ['<'] | number>(arg0: M0): types.Bool>>; ['<']>(arg0: M0): types.Bool>>; @@ -137,56 +137,56 @@ export class Int2 extends Anynonarray { lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<<'] | number>(arg0: M0): types.Int2>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int2]]); return runtime.opCall(runtime.sql`<<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<=']>(arg0: M0): types.Bool>>; - ['<='] | number>(arg0: M0): types.Bool>>; ['<='] | string>(arg0: M0): types.Bool>>; + ['<='] | number>(arg0: M0): types.Bool>>; + ['<=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4 }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - lte>(arg0: M0): types.Bool>>; - lte | number>(arg0: M0): types.Bool>>; + ['<='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } lte | string>(arg0: M0): types.Bool>>; + lte | number>(arg0: M0): types.Bool>>; + lte>(arg0: M0): types.Bool>>; @expose.unchecked() - lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4 }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<>'] | string>(arg0: M0): types.Bool>>; ['<>'] | number>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; - ['<>'] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ne | string>(arg0: M0): types.Bool>>; ne | number>(arg0: M0): types.Bool>>; ne>(arg0: M0): types.Bool>>; - ne | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['='] | string>(arg0: M0): types.Bool>>; - ['=']>(arg0: M0): types.Bool>>; ['='] | number>(arg0: M0): types.Bool>>; + ['=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } eq | string>(arg0: M0): types.Bool>>; - eq>(arg0: M0): types.Bool>>; eq | number>(arg0: M0): types.Bool>>; + eq>(arg0: M0): types.Bool>>; @expose.unchecked() - eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>'] | number>(arg0: M0): types.Bool>>; + eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>'] | string>(arg0: M0): types.Bool>>; + ['>'] | number>(arg0: M0): types.Bool>>; ['>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gt | number>(arg0: M0): types.Bool>>; + ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gt | string>(arg0: M0): types.Bool>>; + gt | number>(arg0: M0): types.Bool>>; gt>(arg0: M0): types.Bool>>; @expose.unchecked() - gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>='] | string>(arg0: M0): types.Bool>>; - ['>=']>(arg0: M0): types.Bool>>; ['>='] | number>(arg0: M0): types.Bool>>; + ['>=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gte | string>(arg0: M0): types.Bool>>; - gte>(arg0: M0): types.Bool>>; gte | number>(arg0: M0): types.Bool>>; + gte>(arg0: M0): types.Bool>>; @expose.unchecked() - gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['>>'] | number>(arg0: M0): types.Int2>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int2]]); return runtime.opCall(runtime.sql`>>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/int4.ts b/src/types/postgres/generated/int4.ts index 397e718f..450410c2 100644 --- a/src/types/postgres/generated/int4.ts +++ b/src/types/postgres/generated/int4.ts @@ -111,10 +111,10 @@ export class Int4 extends Anynonarray { varSamp(): types.Numeric<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Numeric]]); return runtime.funcCall("var_samp", [this, ...__rest], __rt) as any; } @expose.unchecked() variance(): types.Numeric<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Numeric]]); return runtime.funcCall("variance", [this, ...__rest], __rt) as any; } - generateSeries | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): runtime.Srf<{ generate_series: types.Int4 | runtime.NullOf>> }, "generate_series">; generateSeries | number>(arg0: M0): runtime.Srf<{ generate_series: types.Int4>> }, "generate_series">; + generateSeries | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): runtime.Srf<{ generate_series: types.Int4 | runtime.NullOf>> }, "generate_series">; @expose.unchecked() - generateSeries(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return new runtime.Srf("generate_series", [this, ...__rest], [["generate_series", __rt]]) as any; } + generateSeries(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4]]); return new runtime.Srf("generate_series", [this, ...__rest], [["generate_series", __rt]]) as any; } @expose.unchecked() ['#'] | number>(arg0: M0): types.Int4>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`#`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() @@ -123,58 +123,58 @@ export class Int4 extends Anynonarray { ['&'] | number>(arg0: M0): types.Int4>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`&`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['*']>(arg0: M0): types.Int8>>; ['*']>(arg0: M0): types.Int4>>; - ['*']>(arg0: M0): types.Money>>; ['*'] | number>(arg0: M0): types.Int4>>; + ['*']>(arg0: M0): types.Money>>; @expose.unchecked() - ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Money }], types.Money], [[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Money }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } times>(arg0: M0): types.Int8>>; times>(arg0: M0): types.Int4>>; - times>(arg0: M0): types.Money>>; times | number>(arg0: M0): types.Int4>>; + times>(arg0: M0): types.Money>>; @expose.unchecked() - times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Money }], types.Money], [[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['+']>(arg0: M0): types.Date>>; - ['+'] | number>(arg0: M0): types.Int4>>; - ['+']>(arg0: M0): types.Int4>>; + times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Money }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['+']>(arg0: M0): types.Int8>>; + ['+']>(arg0: M0): types.Int4>>; + ['+'] | number>(arg0: M0): types.Int4>>; + ['+']>(arg0: M0): types.Date>>; @expose.unchecked() - ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Date], [[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int8 }], types.Int8]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - plus>(arg0: M0): types.Date>>; - plus | number>(arg0: M0): types.Int4>>; - plus>(arg0: M0): types.Int4>>; + ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Date }], types.Date]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } plus>(arg0: M0): types.Int8>>; + plus>(arg0: M0): types.Int4>>; + plus | number>(arg0: M0): types.Int4>>; + plus>(arg0: M0): types.Date>>; @expose.unchecked() - plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Date], [[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int8 }], types.Int8]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['-'] | number>(arg0: M0): types.Int4>>; - ['-']>(arg0: M0): types.Int4>>; + plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Date }], types.Date]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['-'] | string>(arg0: M0): types.Int8>>; + ['-']>(arg0: M0): types.Int4>>; + ['-'] | number>(arg0: M0): types.Int4>>; @expose.unchecked() - ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - minus | number>(arg0: M0): types.Int4>>; - minus>(arg0: M0): types.Int4>>; + ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } minus | string>(arg0: M0): types.Int8>>; + minus>(arg0: M0): types.Int4>>; + minus | number>(arg0: M0): types.Int4>>; @expose.unchecked() - minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['/'] | string>(arg0: M0): types.Int8>>; ['/']>(arg0: M0): types.Int4>>; ['/'] | number>(arg0: M0): types.Int4>>; - ['/'] | string>(arg0: M0): types.Int8>>; @expose.unchecked() - ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + divide | string>(arg0: M0): types.Int8>>; divide>(arg0: M0): types.Int4>>; divide | number>(arg0: M0): types.Int4>>; - divide | string>(arg0: M0): types.Int8>>; @expose.unchecked() - divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int4], [[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<'] | string>(arg0: M0): types.Bool>>; - ['<'] | number>(arg0: M0): types.Bool>>; ['<']>(arg0: M0): types.Bool>>; + ['<'] | number>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } lt | string>(arg0: M0): types.Bool>>; - lt | number>(arg0: M0): types.Bool>>; lt>(arg0: M0): types.Bool>>; + lt | number>(arg0: M0): types.Bool>>; @expose.unchecked() - lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<<'] | number>(arg0: M0): types.Int4>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`<<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<='] | string>(arg0: M0): types.Bool>>; @@ -188,45 +188,45 @@ export class Int4 extends Anynonarray { @expose.unchecked() lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<>'] | string>(arg0: M0): types.Bool>>; - ['<>'] | number>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; + ['<>'] | number>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ne | string>(arg0: M0): types.Bool>>; - ne | number>(arg0: M0): types.Bool>>; ne>(arg0: M0): types.Bool>>; + ne | number>(arg0: M0): types.Bool>>; @expose.unchecked() - ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['='] | string>(arg0: M0): types.Bool>>; ['=']>(arg0: M0): types.Bool>>; ['='] | number>(arg0: M0): types.Bool>>; - ['='] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + eq | string>(arg0: M0): types.Bool>>; eq>(arg0: M0): types.Bool>>; eq | number>(arg0: M0): types.Bool>>; - eq | string>(arg0: M0): types.Bool>>; @expose.unchecked() - eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['>'] | string>(arg0: M0): types.Bool>>; ['>']>(arg0: M0): types.Bool>>; ['>'] | number>(arg0: M0): types.Bool>>; - ['>'] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gt | string>(arg0: M0): types.Bool>>; gt>(arg0: M0): types.Bool>>; gt | number>(arg0: M0): types.Bool>>; - gt | string>(arg0: M0): types.Bool>>; @expose.unchecked() - gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>=']>(arg0: M0): types.Bool>>; + gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>='] | string>(arg0: M0): types.Bool>>; + ['>=']>(arg0: M0): types.Bool>>; ['>='] | number>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gte>(arg0: M0): types.Bool>>; + ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gte | string>(arg0: M0): types.Bool>>; + gte>(arg0: M0): types.Bool>>; gte | number>(arg0: M0): types.Bool>>; @expose.unchecked() - gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['>>'] | number>(arg0: M0): types.Int4>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.opCall(runtime.sql`>>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/int8.ts b/src/types/postgres/generated/int8.ts index 69262e1b..fdfd8494 100644 --- a/src/types/postgres/generated/int8.ts +++ b/src/types/postgres/generated/int8.ts @@ -114,122 +114,122 @@ export class Int8 extends Anynonarray { varSamp(): types.Numeric<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Numeric]]); return runtime.funcCall("var_samp", [this, ...__rest], __rt) as any; } @expose.unchecked() variance(): types.Numeric<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Numeric]]); return runtime.funcCall("variance", [this, ...__rest], __rt) as any; } - generateSeries | string, M1 extends types.Int8 | string>(arg0: M0, arg1: M1): runtime.Srf<{ generate_series: types.Int8 | runtime.NullOf>> }, "generate_series">; generateSeries | string>(arg0: M0): runtime.Srf<{ generate_series: types.Int8>> }, "generate_series">; + generateSeries | string, M1 extends types.Int8 | string>(arg0: M0, arg1: M1): runtime.Srf<{ generate_series: types.Int8 | runtime.NullOf>> }, "generate_series">; @expose.unchecked() - generateSeries(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int8, allowPrimitive: true }, { type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return new runtime.Srf("generate_series", [this, ...__rest], [["generate_series", __rt]]) as any; } + generateSeries(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int8, allowPrimitive: true }, { type: types.Int8, allowPrimitive: true }], types.Int8]]); return new runtime.Srf("generate_series", [this, ...__rest], [["generate_series", __rt]]) as any; } @expose.unchecked() ['#'] | string>(arg0: M0): types.Int8>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`#`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['%'] | string>(arg0: M0): types.Int8>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`%`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['&'] | string>(arg0: M0): types.Int8>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`&`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['*']>(arg0: M0): types.Money>>; - ['*']>(arg0: M0): types.Int8>>; ['*'] | string>(arg0: M0): types.Int8>>; ['*']>(arg0: M0): types.Int8>>; + ['*']>(arg0: M0): types.Int8>>; + ['*']>(arg0: M0): types.Money>>; @expose.unchecked() - ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money }], types.Money], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - times>(arg0: M0): types.Money>>; - times>(arg0: M0): types.Int8>>; + ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Money }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } times | string>(arg0: M0): types.Int8>>; times>(arg0: M0): types.Int8>>; + times>(arg0: M0): types.Int8>>; + times>(arg0: M0): types.Money>>; @expose.unchecked() - times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money }], types.Money], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['+']>(arg0: M0): types.Inet>>; + times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Money }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['+'] | string>(arg0: M0): types.Int8>>; ['+']>(arg0: M0): types.Int8>>; ['+']>(arg0: M0): types.Int8>>; - ['+'] | string>(arg0: M0): types.Int8>>; + ['+']>(arg0: M0): types.Inet>>; @expose.unchecked() - ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Inet }], types.Inet], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - plus>(arg0: M0): types.Inet>>; + ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Inet }], types.Inet]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + plus | string>(arg0: M0): types.Int8>>; plus>(arg0: M0): types.Int8>>; plus>(arg0: M0): types.Int8>>; - plus | string>(arg0: M0): types.Int8>>; + plus>(arg0: M0): types.Inet>>; @expose.unchecked() - plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Inet }], types.Inet], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Inet }], types.Inet]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['-'] | string>(arg0: M0): types.Int8>>; - ['-']>(arg0: M0): types.Int8>>; ['-']>(arg0: M0): types.Int8>>; + ['-']>(arg0: M0): types.Int8>>; @expose.unchecked() - ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Int2 }], types.Int8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } minus | string>(arg0: M0): types.Int8>>; - minus>(arg0: M0): types.Int8>>; minus>(arg0: M0): types.Int8>>; + minus>(arg0: M0): types.Int8>>; @expose.unchecked() - minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Int2 }], types.Int8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['/'] | string>(arg0: M0): types.Int8>>; ['/']>(arg0: M0): types.Int8>>; ['/']>(arg0: M0): types.Int8>>; - ['/'] | string>(arg0: M0): types.Int8>>; @expose.unchecked() - ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + divide | string>(arg0: M0): types.Int8>>; divide>(arg0: M0): types.Int8>>; divide>(arg0: M0): types.Int8>>; - divide | string>(arg0: M0): types.Int8>>; @expose.unchecked() - divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8], [[{ type: types.Int8, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Int8], [[{ type: types.Int2 }], types.Int8], [[{ type: types.Int4 }], types.Int8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<'] | string>(arg0: M0): types.Bool>>; ['<']>(arg0: M0): types.Bool>>; ['<']>(arg0: M0): types.Bool>>; - ['<'] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lt | string>(arg0: M0): types.Bool>>; lt>(arg0: M0): types.Bool>>; lt>(arg0: M0): types.Bool>>; - lt | string>(arg0: M0): types.Bool>>; @expose.unchecked() - lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<<'] | number>(arg0: M0): types.Int8>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`<<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<=']>(arg0: M0): types.Bool>>; ['<='] | string>(arg0: M0): types.Bool>>; ['<=']>(arg0: M0): types.Bool>>; + ['<=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - lte>(arg0: M0): types.Bool>>; + ['<='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } lte | string>(arg0: M0): types.Bool>>; lte>(arg0: M0): types.Bool>>; + lte>(arg0: M0): types.Bool>>; @expose.unchecked() - lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<>'] | string>(arg0: M0): types.Bool>>; - ['<>']>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; + ['<>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int2 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ne | string>(arg0: M0): types.Bool>>; - ne>(arg0: M0): types.Bool>>; ne>(arg0: M0): types.Bool>>; + ne>(arg0: M0): types.Bool>>; @expose.unchecked() - ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int2 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['=']>(arg0: M0): types.Bool>>; + ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['='] | string>(arg0: M0): types.Bool>>; + ['=']>(arg0: M0): types.Bool>>; ['=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - eq>(arg0: M0): types.Bool>>; + ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } eq | string>(arg0: M0): types.Bool>>; + eq>(arg0: M0): types.Bool>>; eq>(arg0: M0): types.Bool>>; @expose.unchecked() - eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>']>(arg0: M0): types.Bool>>; + eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>'] | string>(arg0: M0): types.Bool>>; + ['>']>(arg0: M0): types.Bool>>; ['>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gt>(arg0: M0): types.Bool>>; + ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gt | string>(arg0: M0): types.Bool>>; + gt>(arg0: M0): types.Bool>>; gt>(arg0: M0): types.Bool>>; @expose.unchecked() - gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['>='] | string>(arg0: M0): types.Bool>>; ['>=']>(arg0: M0): types.Bool>>; ['>=']>(arg0: M0): types.Bool>>; - ['>='] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gte | string>(arg0: M0): types.Bool>>; gte>(arg0: M0): types.Bool>>; gte>(arg0: M0): types.Bool>>; - gte | string>(arg0: M0): types.Bool>>; @expose.unchecked() - gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool], [[{ type: types.Int8, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Bool], [[{ type: types.Int2 }], types.Bool], [[{ type: types.Int4 }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['>>'] | number>(arg0: M0): types.Int8>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Int8]]); return runtime.opCall(runtime.sql`>>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/interval.ts b/src/types/postgres/generated/interval.ts index a18264bb..cedad693 100644 --- a/src/types/postgres/generated/interval.ts +++ b/src/types/postgres/generated/interval.ts @@ -40,11 +40,11 @@ export class Interval extends Anynonarray { justifyInterval(): types.Interval { const [__rt, ...__rest] = runtime.match([], [[[], types.Interval]]); return runtime.funcCall("justify_interval", [this, ...__rest], __rt) as any; } @expose.unchecked() time(): types.Time { const [__rt, ...__rest] = runtime.match([], [[[], types.Time]]); return runtime.funcCall("time", [this, ...__rest], __rt) as any; } - timezone>(arg0: M0): types.Timestamp>>; timezone>(arg0: M0): types.Timestamptz>>; + timezone>(arg0: M0): types.Timestamp>>; timezone>(arg0: M0): types.Timetz>>; @expose.unchecked() - timezone(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz }], types.Timestamp], [[{ type: types.Timestamp }], types.Timestamptz], [[{ type: types.Timetz }], types.Timetz]]); return runtime.funcCall("timezone", [this, ...__rest], __rt) as any; } + timezone(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp }], types.Timestamptz], [[{ type: types.Timestamptz }], types.Timestamp], [[{ type: types.Timetz }], types.Timetz]]); return runtime.funcCall("timezone", [this, ...__rest], __rt) as any; } @expose.unchecked() avg(): types.Interval<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Interval]]); return runtime.funcCall("avg", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -58,21 +58,21 @@ export class Interval extends Anynonarray { @expose.unchecked() times | number>(arg0: M0): types.Interval>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float8, allowPrimitive: true }], types.Interval]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['+']>(arg0: M0): types.Timestamp>>; - ['+']>(arg0: M0): types.Timetz>>; + ['+']>(arg0: M0): types.Time>>; ['+']>(arg0: M0): types.Timestamp>>; ['+']>(arg0: M0): types.Timestamptz>>; - ['+']>(arg0: M0): types.Time>>; ['+'] | string>(arg0: M0): types.Interval>>; + ['+']>(arg0: M0): types.Timetz>>; @expose.unchecked() - ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Timestamp], [[{ type: types.Timetz }], types.Timetz], [[{ type: types.Timestamp }], types.Timestamp], [[{ type: types.Timestamptz }], types.Timestamptz], [[{ type: types.Time }], types.Time], [[{ type: types.Interval, allowPrimitive: true }], types.Interval]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Timestamp], [[{ type: types.Time }], types.Time], [[{ type: types.Timestamp }], types.Timestamp], [[{ type: types.Timestamptz }], types.Timestamptz], [[{ type: types.Interval, allowPrimitive: true }], types.Interval], [[{ type: types.Timetz }], types.Timetz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } plus>(arg0: M0): types.Timestamp>>; - plus>(arg0: M0): types.Timetz>>; + plus>(arg0: M0): types.Time>>; plus>(arg0: M0): types.Timestamp>>; plus>(arg0: M0): types.Timestamptz>>; - plus>(arg0: M0): types.Time>>; plus | string>(arg0: M0): types.Interval>>; + plus>(arg0: M0): types.Timetz>>; @expose.unchecked() - plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Timestamp], [[{ type: types.Timetz }], types.Timetz], [[{ type: types.Timestamp }], types.Timestamp], [[{ type: types.Timestamptz }], types.Timestamptz], [[{ type: types.Time }], types.Time], [[{ type: types.Interval, allowPrimitive: true }], types.Interval]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Timestamp], [[{ type: types.Time }], types.Time], [[{ type: types.Timestamp }], types.Timestamp], [[{ type: types.Timestamptz }], types.Timestamptz], [[{ type: types.Interval, allowPrimitive: true }], types.Interval], [[{ type: types.Timetz }], types.Timetz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['-'] | string>(arg0: M0): types.Interval>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval, allowPrimitive: true }], types.Interval]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/json.ts b/src/types/postgres/generated/json.ts index e3aba92a..00e8945c 100644 --- a/src/types/postgres/generated/json.ts +++ b/src/types/postgres/generated/json.ts @@ -44,10 +44,10 @@ export class Json extends Anynonarray { jsonEachText(): runtime.Srf<{ key: types.Text<1>; value: types.Text<1> }, "json_each_text"> { return new runtime.Srf("json_each_text", [this], [["key", types.Text], ["value", types.Text]]) as any; } @expose.unchecked() jsonObjectKeys(): runtime.Srf<{ json_object_keys: types.Text }, "json_object_keys"> { const [__rt, ...__rest] = runtime.match([], [[[], types.Text]]); return new runtime.Srf("json_object_keys", [this, ...__rest], [["json_object_keys", __rt]]) as any; } - ['->'] | string>(arg0: M0): types.Json>>; ['->'] | number>(arg0: M0): types.Json>>; + ['->'] | string>(arg0: M0): types.Json>>; @expose.unchecked() - ['->'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Json], [[{ type: types.Int4, allowPrimitive: true }], types.Json]]); return runtime.opCall(runtime.sql`->`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['->'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Json], [[{ type: types.Text, allowPrimitive: true }], types.Json]]); return runtime.opCall(runtime.sql`->`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['->>'] | number>(arg0: M0): types.Text>>; ['->>'] | string>(arg0: M0): types.Text>>; @expose.unchecked() diff --git a/src/types/postgres/generated/jsonb.ts b/src/types/postgres/generated/jsonb.ts index 844f6bde..671edada 100644 --- a/src/types/postgres/generated/jsonb.ts +++ b/src/types/postgres/generated/jsonb.ts @@ -94,10 +94,10 @@ export class Jsonb extends Anynonarray { ['->'] | string>(arg0: M0): types.Jsonb>>; @expose.unchecked() ['->'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Jsonb], [[{ type: types.Text, allowPrimitive: true }], types.Jsonb]]); return runtime.opCall(runtime.sql`->`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['->>'] | string>(arg0: M0): types.Text>>; ['->>'] | number>(arg0: M0): types.Text>>; + ['->>'] | string>(arg0: M0): types.Text>>; @expose.unchecked() - ['->>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Int4, allowPrimitive: true }], types.Text]]); return runtime.opCall(runtime.sql`->>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['->>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.opCall(runtime.sql`->>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Jsonb, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/money.ts b/src/types/postgres/generated/money.ts index 2de3fa30..1cb58d83 100644 --- a/src/types/postgres/generated/money.ts +++ b/src/types/postgres/generated/money.ts @@ -32,20 +32,20 @@ export class Money extends Anynonarray { min(): types.Money<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Money]]); return runtime.funcCall("min", [this, ...__rest], __rt) as any; } @expose.unchecked() sum(): types.Money<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Money]]); return runtime.funcCall("sum", [this, ...__rest], __rt) as any; } - ['*']>(arg0: M0): types.Money>>; + ['*'] | string>(arg0: M0): types.Money>>; ['*']>(arg0: M0): types.Money>>; ['*']>(arg0: M0): types.Money>>; - ['*'] | string>(arg0: M0): types.Money>>; + ['*']>(arg0: M0): types.Money>>; ['*']>(arg0: M0): types.Money>>; @expose.unchecked() - ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Money], [[{ type: types.Int2 }], types.Money], [[{ type: types.Int4 }], types.Money], [[{ type: types.Int8, allowPrimitive: true }], types.Money], [[{ type: types.Float8 }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - times>(arg0: M0): types.Money>>; + ['*'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Money], [[{ type: types.Int2 }], types.Money], [[{ type: types.Int4 }], types.Money], [[{ type: types.Float4 }], types.Money], [[{ type: types.Float8 }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + times | string>(arg0: M0): types.Money>>; times>(arg0: M0): types.Money>>; times>(arg0: M0): types.Money>>; - times | string>(arg0: M0): types.Money>>; + times>(arg0: M0): types.Money>>; times>(arg0: M0): types.Money>>; @expose.unchecked() - times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Float4 }], types.Money], [[{ type: types.Int2 }], types.Money], [[{ type: types.Int4 }], types.Money], [[{ type: types.Int8, allowPrimitive: true }], types.Money], [[{ type: types.Float8 }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + times(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8, allowPrimitive: true }], types.Money], [[{ type: types.Int2 }], types.Money], [[{ type: types.Int4 }], types.Money], [[{ type: types.Float4 }], types.Money], [[{ type: types.Float8 }], types.Money]]); return runtime.opCall(runtime.sql`*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['+'] | string>(arg0: M0): types.Money>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money, allowPrimitive: true }], types.Money]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() @@ -55,21 +55,21 @@ export class Money extends Anynonarray { @expose.unchecked() minus | string>(arg0: M0): types.Money>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money, allowPrimitive: true }], types.Money]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['/']>(arg0: M0): types.Money>>; - ['/']>(arg0: M0): types.Money>>; ['/']>(arg0: M0): types.Money>>; - ['/'] | string>(arg0: M0): types.Float8>>; + ['/']>(arg0: M0): types.Money>>; ['/']>(arg0: M0): types.Money>>; ['/']>(arg0: M0): types.Money>>; + ['/'] | string>(arg0: M0): types.Float8>>; @expose.unchecked() - ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Money], [[{ type: types.Int4 }], types.Money], [[{ type: types.Int2 }], types.Money], [[{ type: types.Money, allowPrimitive: true }], types.Float8], [[{ type: types.Float4 }], types.Money], [[{ type: types.Float8 }], types.Money]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['/'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Money], [[{ type: types.Int2 }], types.Money], [[{ type: types.Int4 }], types.Money], [[{ type: types.Float4 }], types.Money], [[{ type: types.Float8 }], types.Money], [[{ type: types.Money, allowPrimitive: true }], types.Float8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } divide>(arg0: M0): types.Money>>; - divide>(arg0: M0): types.Money>>; divide>(arg0: M0): types.Money>>; - divide | string>(arg0: M0): types.Float8>>; + divide>(arg0: M0): types.Money>>; divide>(arg0: M0): types.Money>>; divide>(arg0: M0): types.Money>>; + divide | string>(arg0: M0): types.Float8>>; @expose.unchecked() - divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Money], [[{ type: types.Int4 }], types.Money], [[{ type: types.Int2 }], types.Money], [[{ type: types.Money, allowPrimitive: true }], types.Float8], [[{ type: types.Float4 }], types.Money], [[{ type: types.Float8 }], types.Money]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + divide(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int8 }], types.Money], [[{ type: types.Int2 }], types.Money], [[{ type: types.Int4 }], types.Money], [[{ type: types.Float4 }], types.Money], [[{ type: types.Float8 }], types.Money], [[{ type: types.Money, allowPrimitive: true }], types.Float8]]); return runtime.opCall(runtime.sql`/`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Money, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/numeric.ts b/src/types/postgres/generated/numeric.ts index 5fb8af90..1860dfb4 100644 --- a/src/types/postgres/generated/numeric.ts +++ b/src/types/postgres/generated/numeric.ts @@ -90,10 +90,10 @@ export class Numeric extends Anynonarray { pow | string>(arg0: M0): types.Numeric>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Numeric, allowPrimitive: true }], types.Numeric]]); return runtime.funcCall("pow", [this, ...__rest], __rt) as any; } @expose.unchecked() power | string>(arg0: M0): types.Numeric>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Numeric, allowPrimitive: true }], types.Numeric]]); return runtime.funcCall("power", [this, ...__rest], __rt) as any; } - round | number>(arg0: M0): types.Numeric>>; round(): types.Numeric; + round | number>(arg0: M0): types.Numeric>>; @expose.unchecked() - round(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Numeric], [[], types.Numeric]]); return runtime.funcCall("round", [this, ...__rest], __rt) as any; } + round(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[], types.Numeric], [[{ type: types.Int4, allowPrimitive: true }], types.Numeric]]); return runtime.funcCall("round", [this, ...__rest], __rt) as any; } @expose.unchecked() scale(): types.Int4 { const [__rt, ...__rest] = runtime.match([], [[[], types.Int4]]); return runtime.funcCall("scale", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -128,10 +128,10 @@ export class Numeric extends Anynonarray { varSamp(): types.Numeric<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Numeric]]); return runtime.funcCall("var_samp", [this, ...__rest], __rt) as any; } @expose.unchecked() variance(): types.Numeric<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Numeric]]); return runtime.funcCall("variance", [this, ...__rest], __rt) as any; } - generateSeries | string, M1 extends types.Numeric | string>(arg0: M0, arg1: M1): runtime.Srf<{ generate_series: types.Numeric | runtime.NullOf>> }, "generate_series">; generateSeries | string>(arg0: M0): runtime.Srf<{ generate_series: types.Numeric>> }, "generate_series">; + generateSeries | string, M1 extends types.Numeric | string>(arg0: M0, arg1: M1): runtime.Srf<{ generate_series: types.Numeric | runtime.NullOf>> }, "generate_series">; @expose.unchecked() - generateSeries(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Numeric, allowPrimitive: true }, { type: types.Numeric, allowPrimitive: true }], types.Numeric], [[{ type: types.Numeric, allowPrimitive: true }], types.Numeric]]); return new runtime.Srf("generate_series", [this, ...__rest], [["generate_series", __rt]]) as any; } + generateSeries(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Numeric, allowPrimitive: true }], types.Numeric], [[{ type: types.Numeric, allowPrimitive: true }, { type: types.Numeric, allowPrimitive: true }], types.Numeric]]); return new runtime.Srf("generate_series", [this, ...__rest], [["generate_series", __rt]]) as any; } @expose.unchecked() ['%'] | string>(arg0: M0): types.Numeric>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Numeric, allowPrimitive: true }], types.Numeric]]); return runtime.opCall(runtime.sql`%`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/polygon.ts b/src/types/postgres/generated/polygon.ts index 03c84c5d..bccdada8 100644 --- a/src/types/postgres/generated/polygon.ts +++ b/src/types/postgres/generated/polygon.ts @@ -64,10 +64,10 @@ export class Polygon extends Anynonarray { ['&<|'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Polygon, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`&<|`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['&>'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Polygon, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`&>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<->']>(arg0: M0): types.Float8>>; ['<->'] | string>(arg0: M0): types.Float8>>; + ['<->']>(arg0: M0): types.Float8>>; @expose.unchecked() - ['<->'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Circle }], types.Float8], [[{ type: types.Polygon, allowPrimitive: true }], types.Float8]]); return runtime.opCall(runtime.sql`<->`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<->'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Polygon, allowPrimitive: true }], types.Float8], [[{ type: types.Circle }], types.Float8]]); return runtime.opCall(runtime.sql`<->`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['<<'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Polygon, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/regconfig.ts b/src/types/postgres/generated/regconfig.ts index 145306d7..f5c75820 100644 --- a/src/types/postgres/generated/regconfig.ts +++ b/src/types/postgres/generated/regconfig.ts @@ -30,19 +30,19 @@ export class Regconfig extends Anynonarray { regconfigsend(): types.Bytea { const [__rt, ...__rest] = runtime.match([], [[[], types.Bytea]]); return runtime.funcCall("regconfigsend", [this, ...__rest], __rt) as any; } @expose.unchecked() toTsquery | string>(arg0: M0): types.Tsquery>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Tsquery]]); return runtime.funcCall("to_tsquery", [this, ...__rest], __rt) as any; } + toTsvector>(arg0: M0): types.Tsvector>>; toTsvector>(arg0: M0): types.Tsvector>>; toTsvector>(arg0: M0): types.Tsvector>>; - toTsvector>(arg0: M0): types.Tsvector>>; @expose.unchecked() - toTsvector(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text }], types.Tsvector], [[{ type: types.Jsonb }], types.Tsvector], [[{ type: types.Json }], types.Tsvector]]); return runtime.funcCall("to_tsvector", [this, ...__rest], __rt) as any; } + toTsvector(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Json }], types.Tsvector], [[{ type: types.Text }], types.Tsvector], [[{ type: types.Jsonb }], types.Tsvector]]); return runtime.funcCall("to_tsvector", [this, ...__rest], __rt) as any; } tsHeadline, M1 extends types.Tsquery>(arg0: M0, arg1: M1): types.Json | runtime.NullOf>>; - tsHeadline, M1 extends types.Tsquery, M2 extends types.Text>(arg0: M0, arg1: M1, arg2: M2): types.Text | runtime.NullOf | runtime.NullOf>>; - tsHeadline, M1 extends types.Tsquery>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; tsHeadline, M1 extends types.Tsquery, M2 extends types.Text>(arg0: M0, arg1: M1, arg2: M2): types.Json | runtime.NullOf | runtime.NullOf>>; + tsHeadline, M1 extends types.Tsquery>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; + tsHeadline, M1 extends types.Tsquery, M2 extends types.Text>(arg0: M0, arg1: M1, arg2: M2): types.Text | runtime.NullOf | runtime.NullOf>>; tsHeadline, M1 extends types.Tsquery>(arg0: M0, arg1: M1): types.Jsonb | runtime.NullOf>>; tsHeadline, M1 extends types.Tsquery, M2 extends types.Text>(arg0: M0, arg1: M1, arg2: M2): types.Jsonb | runtime.NullOf | runtime.NullOf>>; @expose.unchecked() - tsHeadline(arg0: unknown, arg1: unknown, arg2?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Json }, { type: types.Tsquery }], types.Json], [[{ type: types.Text }, { type: types.Tsquery }, { type: types.Text }], types.Text], [[{ type: types.Text }, { type: types.Tsquery }], types.Text], [[{ type: types.Json }, { type: types.Tsquery }, { type: types.Text }], types.Json], [[{ type: types.Jsonb }, { type: types.Tsquery }], types.Jsonb], [[{ type: types.Jsonb }, { type: types.Tsquery }, { type: types.Text }], types.Jsonb]]); return runtime.funcCall("ts_headline", [this, ...__rest], __rt) as any; } + tsHeadline(arg0: unknown, arg1: unknown, arg2?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Json }, { type: types.Tsquery }], types.Json], [[{ type: types.Json }, { type: types.Tsquery }, { type: types.Text }], types.Json], [[{ type: types.Text }, { type: types.Tsquery }], types.Text], [[{ type: types.Text }, { type: types.Tsquery }, { type: types.Text }], types.Text], [[{ type: types.Jsonb }, { type: types.Tsquery }], types.Jsonb], [[{ type: types.Jsonb }, { type: types.Tsquery }, { type: types.Text }], types.Jsonb]]); return runtime.funcCall("ts_headline", [this, ...__rest], __rt) as any; } @expose.unchecked() websearchToTsquery | string>(arg0: M0): types.Tsquery>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Tsquery]]); return runtime.funcCall("websearch_to_tsquery", [this, ...__rest], __rt) as any; } } diff --git a/src/types/postgres/generated/text.ts b/src/types/postgres/generated/text.ts index 3a39f3b1..cd9584f5 100644 --- a/src/types/postgres/generated/text.ts +++ b/src/types/postgres/generated/text.ts @@ -32,27 +32,27 @@ export class Text extends Anynonarray { charLength(): types.Int4 { const [__rt, ...__rest] = runtime.match([], [[[], types.Int4]]); return runtime.funcCall("char_length", [this, ...__rest], __rt) as any; } @expose.unchecked() characterLength(): types.Int4 { const [__rt, ...__rest] = runtime.match([], [[[], types.Int4]]); return runtime.funcCall("character_length", [this, ...__rest], __rt) as any; } - datePart>(arg0: M0): types.Float8>>; datePart>(arg0: M0): types.Float8>>; datePart>(arg0: M0): types.Float8>>; - datePart>(arg0: M0): types.Float8>>; + datePart>(arg0: M0): types.Float8>>; datePart>(arg0: M0): types.Float8>>; + datePart>(arg0: M0): types.Float8>>; @expose.unchecked() - datePart(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp }], types.Float8], [[{ type: types.Date }], types.Float8], [[{ type: types.Time }], types.Float8], [[{ type: types.Timetz }], types.Float8], [[{ type: types.Interval }], types.Float8]]); return runtime.funcCall("date_part", [this, ...__rest], __rt) as any; } - dateTrunc>(arg0: M0): types.Interval>>; - dateTrunc | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): types.Timestamptz | runtime.NullOf>>; + datePart(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Float8], [[{ type: types.Time }], types.Float8], [[{ type: types.Timestamp }], types.Float8], [[{ type: types.Interval }], types.Float8], [[{ type: types.Timetz }], types.Float8]]); return runtime.funcCall("date_part", [this, ...__rest], __rt) as any; } dateTrunc>(arg0: M0): types.Timestamp>>; + dateTrunc | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): types.Timestamptz | runtime.NullOf>>; + dateTrunc>(arg0: M0): types.Interval>>; @expose.unchecked() - dateTrunc(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Interval }], types.Interval], [[{ type: types.Timestamptz, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Timestamptz], [[{ type: types.Timestamp }], types.Timestamp]]); return runtime.funcCall("date_trunc", [this, ...__rest], __rt) as any; } + dateTrunc(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Timestamp }], types.Timestamp], [[{ type: types.Timestamptz, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Timestamptz], [[{ type: types.Interval }], types.Interval]]); return runtime.funcCall("date_trunc", [this, ...__rest], __rt) as any; } @expose.unchecked() decode | string>(arg0: M0): types.Bytea>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bytea]]); return runtime.funcCall("decode", [this, ...__rest], __rt) as any; } - extract>(arg0: M0): types.Numeric>>; + extract>(arg0: M0): types.Numeric>>; + extract>(arg0: M0): types.Numeric>>; extract>(arg0: M0): types.Numeric>>; + extract>(arg0: M0): types.Numeric>>; extract>(arg0: M0): types.Numeric>>; - extract>(arg0: M0): types.Numeric>>; - extract>(arg0: M0): types.Numeric>>; @expose.unchecked() - extract(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Numeric], [[{ type: types.Timestamp }], types.Numeric], [[{ type: types.Timetz }], types.Numeric], [[{ type: types.Time }], types.Numeric], [[{ type: types.Date }], types.Numeric]]); return runtime.funcCall("extract", [this, ...__rest], __rt) as any; } + extract(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Numeric], [[{ type: types.Time }], types.Numeric], [[{ type: types.Timestamp }], types.Numeric], [[{ type: types.Interval }], types.Numeric], [[{ type: types.Timetz }], types.Numeric]]); return runtime.funcCall("extract", [this, ...__rest], __rt) as any; } @expose.unchecked() initcap(): types.Text { const [__rt, ...__rest] = runtime.match([], [[[], types.Text]]); return runtime.funcCall("initcap", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -71,10 +71,10 @@ export class Text extends Anynonarray { lpad | number, M1 extends types.Text | string>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; @expose.unchecked() lpad(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("lpad", [this, ...__rest], __rt) as any; } - ltrim | string>(arg0: M0): types.Text>>; ltrim(): types.Text; + ltrim | string>(arg0: M0): types.Text>>; @expose.unchecked() - ltrim(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text], [[], types.Text]]); return runtime.funcCall("ltrim", [this, ...__rest], __rt) as any; } + ltrim(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[], types.Text], [[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("ltrim", [this, ...__rest], __rt) as any; } @expose.unchecked() md5(): types.Text { const [__rt, ...__rest] = runtime.match([], [[[], types.Text]]); return runtime.funcCall("md5", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -102,32 +102,32 @@ export class Text extends Anynonarray { regexpCount | string, M1 extends types.Int4 | number, M2 extends types.Text | string>(arg0: M0, arg1: M1, arg2: M2): types.Int4 | runtime.NullOf | runtime.NullOf>>; @expose.unchecked() regexpCount(arg0: unknown, arg1?: unknown, arg2?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Text, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Int4]]); return runtime.funcCall("regexp_count", [this, ...__rest], __rt) as any; } + regexpInstr | string>(arg0: M0): types.Int4>>; + regexpInstr | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Int4 | runtime.NullOf>>; regexpInstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Int4 | runtime.NullOf | runtime.NullOf>>; - regexpInstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number, M3 extends types.Int4 | number, M4 extends types.Text | string, M5 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2, arg3: M3, arg4: M4, arg5: M5): types.Int4 | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; - regexpInstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number, M3 extends types.Int4 | number, M4 extends types.Text | string>(arg0: M0, arg1: M1, arg2: M2, arg3: M3, arg4: M4): types.Int4 | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; regexpInstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number, M3 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2, arg3: M3): types.Int4 | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; - regexpInstr | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Int4 | runtime.NullOf>>; - regexpInstr | string>(arg0: M0): types.Int4>>; + regexpInstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number, M3 extends types.Int4 | number, M4 extends types.Text | string>(arg0: M0, arg1: M1, arg2: M2, arg3: M3, arg4: M4): types.Int4 | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; + regexpInstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number, M3 extends types.Int4 | number, M4 extends types.Text | string, M5 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2, arg3: M3, arg4: M4, arg5: M5): types.Int4 | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; @expose.unchecked() - regexpInstr(arg0: unknown, arg1?: unknown, arg2?: unknown, arg3?: unknown, arg4?: unknown, arg5?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2, arg3, arg4, arg5], [[[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }], types.Int4]]); return runtime.funcCall("regexp_instr", [this, ...__rest], __rt) as any; } + regexpInstr(arg0: unknown, arg1?: unknown, arg2?: unknown, arg3?: unknown, arg4?: unknown, arg5?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2, arg3, arg4, arg5], [[[{ type: types.Text, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Int4], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Int4]]); return runtime.funcCall("regexp_instr", [this, ...__rest], __rt) as any; } regexpLike | string>(arg0: M0): types.Bool>>; regexpLike | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): types.Bool | runtime.NullOf>>; @expose.unchecked() regexpLike(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Text, allowPrimitive: true }], types.Bool], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("regexp_like", [this, ...__rest], __rt) as any; } - regexpReplace | string, M1 extends types.Text | string, M2 extends types.Int4 | number, M3 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2, arg3: M3): types.Text | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; - regexpReplace | string, M1 extends types.Text | string, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Text | runtime.NullOf | runtime.NullOf>>; regexpReplace | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; - regexpReplace | string, M1 extends types.Text | string, M2 extends types.Text | string>(arg0: M0, arg1: M1, arg2: M2): types.Text | runtime.NullOf | runtime.NullOf>>; + regexpReplace | string, M1 extends types.Text | string, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Text | runtime.NullOf | runtime.NullOf>>; + regexpReplace | string, M1 extends types.Text | string, M2 extends types.Int4 | number, M3 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2, arg3: M3): types.Text | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; regexpReplace | string, M1 extends types.Text | string, M2 extends types.Int4 | number, M3 extends types.Int4 | number, M4 extends types.Text | string>(arg0: M0, arg1: M1, arg2: M2, arg3: M3, arg4: M4): types.Text | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; + regexpReplace | string, M1 extends types.Text | string, M2 extends types.Text | string>(arg0: M0, arg1: M1, arg2: M2): types.Text | runtime.NullOf | runtime.NullOf>>; @expose.unchecked() - regexpReplace(arg0: unknown, arg1: unknown, arg2?: unknown, arg3?: unknown, arg4?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2, arg3, arg4], [[[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("regexp_replace", [this, ...__rest], __rt) as any; } - regexpSubstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number, M3 extends types.Text | string, M4 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2, arg3: M3, arg4: M4): types.Text | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; - regexpSubstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Text | runtime.NullOf | runtime.NullOf>>; + regexpReplace(arg0: unknown, arg1: unknown, arg2?: unknown, arg3?: unknown, arg4?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2, arg3, arg4], [[[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("regexp_replace", [this, ...__rest], __rt) as any; } + regexpSubstr | string>(arg0: M0): types.Text>>; regexpSubstr | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; + regexpSubstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2): types.Text | runtime.NullOf | runtime.NullOf>>; regexpSubstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number, M3 extends types.Text | string>(arg0: M0, arg1: M1, arg2: M2, arg3: M3): types.Text | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; - regexpSubstr | string>(arg0: M0): types.Text>>; + regexpSubstr | string, M1 extends types.Int4 | number, M2 extends types.Int4 | number, M3 extends types.Text | string, M4 extends types.Int4 | number>(arg0: M0, arg1: M1, arg2: M2, arg3: M3, arg4: M4): types.Text | runtime.NullOf | runtime.NullOf | runtime.NullOf | runtime.NullOf>>; @expose.unchecked() - regexpSubstr(arg0: unknown, arg1?: unknown, arg2?: unknown, arg3?: unknown, arg4?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2, arg3, arg4], [[[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("regexp_substr", [this, ...__rest], __rt) as any; } + regexpSubstr(arg0: unknown, arg1?: unknown, arg2?: unknown, arg3?: unknown, arg4?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2, arg3, arg4], [[[{ type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text]]); return runtime.funcCall("regexp_substr", [this, ...__rest], __rt) as any; } @expose.unchecked() repeat | number>(arg0: M0): types.Text>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Text]]); return runtime.funcCall("repeat", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -140,32 +140,32 @@ export class Text extends Anynonarray { rpad | number, M1 extends types.Text | string>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; @expose.unchecked() rpad(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("rpad", [this, ...__rest], __rt) as any; } - rtrim | string>(arg0: M0): types.Text>>; rtrim(): types.Text; + rtrim | string>(arg0: M0): types.Text>>; @expose.unchecked() - rtrim(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text], [[], types.Text]]); return runtime.funcCall("rtrim", [this, ...__rest], __rt) as any; } + rtrim(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[], types.Text], [[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("rtrim", [this, ...__rest], __rt) as any; } @expose.unchecked() similarEscape | string>(arg0: M0): types.Text<1> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("similar_escape", [this, ...__rest], __rt) as any; } - similarToEscape | string>(arg0: M0): types.Text>>; similarToEscape(): types.Text; + similarToEscape | string>(arg0: M0): types.Text>>; @expose.unchecked() - similarToEscape(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text], [[], types.Text]]); return runtime.funcCall("similar_to_escape", [this, ...__rest], __rt) as any; } + similarToEscape(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[], types.Text], [[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("similar_to_escape", [this, ...__rest], __rt) as any; } @expose.unchecked() splitPart | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>> { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Text, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text]]); return runtime.funcCall("split_part", [this, ...__rest], __rt) as any; } @expose.unchecked() startsWith | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("starts_with", [this, ...__rest], __rt) as any; } @expose.unchecked() strpos | string>(arg0: M0): types.Int4>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Int4]]); return runtime.funcCall("strpos", [this, ...__rest], __rt) as any; } - substr | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; substr | number>(arg0: M0): types.Text>>; + substr | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; @expose.unchecked() - substr(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Int4, allowPrimitive: true }], types.Text]]); return runtime.funcCall("substr", [this, ...__rest], __rt) as any; } + substr(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text]]); return runtime.funcCall("substr", [this, ...__rest], __rt) as any; } + substring | number>(arg0: M0): types.Text>>; + substring | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; substring | string>(arg0: M0): types.Text>>; substring | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; - substring | number, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>>; - substring | number>(arg0: M0): types.Text>>; @expose.unchecked() - substring(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Int4, allowPrimitive: true }], types.Text]]); return runtime.funcCall("substring", [this, ...__rest], __rt) as any; } + substring(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Int4, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("substring", [this, ...__rest], __rt) as any; } @expose.unchecked() textLarger | string>(arg0: M0): types.Text>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("text_larger", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -181,20 +181,12 @@ export class Text extends Anynonarray { @expose.unchecked() textcat | string>(arg0: M0): types.Text>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("textcat", [this, ...__rest], __rt) as any; } @expose.unchecked() - texticlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("texticlike", [this, ...__rest], __rt) as any; } - @expose.unchecked() - texticnlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("texticnlike", [this, ...__rest], __rt) as any; } - @expose.unchecked() texticregexeq | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("texticregexeq", [this, ...__rest], __rt) as any; } @expose.unchecked() texticregexne | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("texticregexne", [this, ...__rest], __rt) as any; } @expose.unchecked() textlen(): types.Int4 { const [__rt, ...__rest] = runtime.match([], [[[], types.Int4]]); return runtime.funcCall("textlen", [this, ...__rest], __rt) as any; } @expose.unchecked() - textlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("textlike", [this, ...__rest], __rt) as any; } - @expose.unchecked() - textnlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("textnlike", [this, ...__rest], __rt) as any; } - @expose.unchecked() textregexeq | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("textregexeq", [this, ...__rest], __rt) as any; } @expose.unchecked() textregexne | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("textregexne", [this, ...__rest], __rt) as any; } @@ -202,10 +194,10 @@ export class Text extends Anynonarray { timezone>(arg0: M0): types.Timestamp>>; @expose.unchecked() timezone(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp }], types.Timestamptz], [[{ type: types.Timestamptz }], types.Timestamp]]); return runtime.funcCall("timezone", [this, ...__rest], __rt) as any; } - toAscii | number>(arg0: M0): types.Text>>; toAscii(): types.Text; + toAscii | number>(arg0: M0): types.Text>>; @expose.unchecked() - toAscii(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Text], [[], types.Text]]); return runtime.funcCall("to_ascii", [this, ...__rest], __rt) as any; } + toAscii(arg0?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[], types.Text], [[{ type: types.Int4, allowPrimitive: true }], types.Text]]); return runtime.funcCall("to_ascii", [this, ...__rest], __rt) as any; } @expose.unchecked() translate | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): types.Text | runtime.NullOf>> { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("translate", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -232,10 +224,10 @@ export class Text extends Anynonarray { min(): types.Text<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Text]]); return runtime.funcCall("min", [this, ...__rest], __rt) as any; } @expose.unchecked() stringAgg | string>(arg0: M0): types.Text<0 | 1> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.funcCall("string_agg", [this, ...__rest], __rt) as any; } - regexpSplitToTable | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): runtime.Srf<{ regexp_split_to_table: types.Text | runtime.NullOf>> }, "regexp_split_to_table">; regexpSplitToTable | string>(arg0: M0): runtime.Srf<{ regexp_split_to_table: types.Text>> }, "regexp_split_to_table">; + regexpSplitToTable | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): runtime.Srf<{ regexp_split_to_table: types.Text | runtime.NullOf>> }, "regexp_split_to_table">; @expose.unchecked() - regexpSplitToTable(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }], types.Text]]); return new runtime.Srf("regexp_split_to_table", [this, ...__rest], [["regexp_split_to_table", __rt]]) as any; } + regexpSplitToTable(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Text, allowPrimitive: true }, { type: types.Text, allowPrimitive: true }], types.Text]]); return new runtime.Srf("regexp_split_to_table", [this, ...__rest], [["regexp_split_to_table", __rt]]) as any; } stringToTable | string>(arg0: M0): runtime.Srf<{ string_to_table: types.Text<1> }, "string_to_table">; stringToTable | string, M1 extends types.Text | string>(arg0: M0, arg1: M1): runtime.Srf<{ string_to_table: types.Text<1> }, "string_to_table">; @expose.unchecked() @@ -247,8 +239,12 @@ export class Text extends Anynonarray { @expose.unchecked() ['!~~'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() + notLike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + @expose.unchecked() ['!~~*'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() + notIlike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`!~~*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + @expose.unchecked() ['<'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() lt | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @@ -272,16 +268,16 @@ export class Text extends Anynonarray { ['>='] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() gte | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['@@']>(arg0: M0): types.Bool>>; ['@@'] | string>(arg0: M0): types.Bool>>; + ['@@']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['@@'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Tsquery }], types.Bool], [[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`@@`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['@@'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool], [[{ type: types.Tsquery }], types.Bool]]); return runtime.opCall(runtime.sql`@@`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['^@'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`^@`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['||']>(arg0: M0): types.Text>>; ['||'] | string>(arg0: M0): types.Text>>; + ['||']>(arg0: M0): types.Text>>; @expose.unchecked() - ['||'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Anynonarray }], types.Text], [[{ type: types.Text, allowPrimitive: true }], types.Text]]); return runtime.opCall(runtime.sql`||`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['||'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Text], [[{ type: types.Anynonarray }], types.Text]]); return runtime.opCall(runtime.sql`||`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['~'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() @@ -298,4 +294,6 @@ export class Text extends Anynonarray { ['~~'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`~~`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['~~*'] | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`~~*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + @expose.unchecked() + ilike | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`~~*`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/generated/time.ts b/src/types/postgres/generated/time.ts index d612f22f..60039b9e 100644 --- a/src/types/postgres/generated/time.ts +++ b/src/types/postgres/generated/time.ts @@ -20,12 +20,12 @@ export class Time extends Anynonarray { declare deserialize: (raw: string) => string; @expose.unchecked() interval(): types.Interval { const [__rt, ...__rest] = runtime.match([], [[[], types.Interval]]); return runtime.funcCall("interval", [this, ...__rest], __rt) as any; } - overlaps, M1 extends types.Time, M2 extends types.Interval>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; overlaps | string, M1 extends types.Time | string, M2 extends types.Time | string>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; - overlaps, M1 extends types.Time, M2 extends types.Interval>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; + overlaps, M1 extends types.Time, M2 extends types.Interval>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; overlaps, M1 extends types.Time, M2 extends types.Time>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; + overlaps, M1 extends types.Time, M2 extends types.Interval>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; @expose.unchecked() - overlaps(arg0: unknown, arg1: unknown, arg2: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Time }, { type: types.Time }, { type: types.Interval }], types.Bool], [[{ type: types.Time, allowPrimitive: true }, { type: types.Time, allowPrimitive: true }, { type: types.Time, allowPrimitive: true }], types.Bool], [[{ type: types.Interval }, { type: types.Time }, { type: types.Interval }], types.Bool], [[{ type: types.Interval }, { type: types.Time }, { type: types.Time }], types.Bool]]); return runtime.funcCall("overlaps", [this, ...__rest], __rt) as any; } + overlaps(arg0: unknown, arg1: unknown, arg2: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Time, allowPrimitive: true }, { type: types.Time, allowPrimitive: true }, { type: types.Time, allowPrimitive: true }], types.Bool], [[{ type: types.Time }, { type: types.Time }, { type: types.Interval }], types.Bool], [[{ type: types.Interval }, { type: types.Time }, { type: types.Time }], types.Bool], [[{ type: types.Interval }, { type: types.Time }, { type: types.Interval }], types.Bool]]); return runtime.funcCall("overlaps", [this, ...__rest], __rt) as any; } @expose.unchecked() time | number>(arg0: M0): types.Time>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Time]]); return runtime.funcCall("time", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -38,14 +38,14 @@ export class Time extends Anynonarray { max(): types.Time<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Time]]); return runtime.funcCall("max", [this, ...__rest], __rt) as any; } @expose.unchecked() min(): types.Time<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Time]]); return runtime.funcCall("min", [this, ...__rest], __rt) as any; } - ['+']>(arg0: M0): types.Time>>; ['+']>(arg0: M0): types.Timestamp>>; + ['+']>(arg0: M0): types.Time>>; @expose.unchecked() - ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Time], [[{ type: types.Date }], types.Timestamp]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - plus>(arg0: M0): types.Time>>; + ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Timestamp], [[{ type: types.Interval }], types.Time]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } plus>(arg0: M0): types.Timestamp>>; + plus>(arg0: M0): types.Time>>; @expose.unchecked() - plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Time], [[{ type: types.Date }], types.Timestamp]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Timestamp], [[{ type: types.Interval }], types.Time]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['-'] | string>(arg0: M0): types.Interval>>; ['-']>(arg0: M0): types.Time>>; @expose.unchecked() diff --git a/src/types/postgres/generated/timestamp.ts b/src/types/postgres/generated/timestamp.ts index 21a20219..eab61fa9 100644 --- a/src/types/postgres/generated/timestamp.ts +++ b/src/types/postgres/generated/timestamp.ts @@ -24,12 +24,12 @@ export class Timestamp extends Anynonarray { date(): types.Date { const [__rt, ...__rest] = runtime.match([], [[[], types.Date]]); return runtime.funcCall("date", [this, ...__rest], __rt) as any; } @expose.unchecked() isfinite(): types.Bool { const [__rt, ...__rest] = runtime.match([], [[[], types.Bool]]); return runtime.funcCall("isfinite", [this, ...__rest], __rt) as any; } - overlaps, M1 extends types.Timestamp, M2 extends types.Interval>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; - overlaps, M1 extends types.Timestamp, M2 extends types.Timestamp>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; - overlaps, M1 extends types.Timestamp, M2 extends types.Interval>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; overlaps | string, M1 extends types.Timestamp | string, M2 extends types.Timestamp | string>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; + overlaps, M1 extends types.Timestamp, M2 extends types.Interval>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; + overlaps, M1 extends types.Timestamp, M2 extends types.Timestamp>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; + overlaps, M1 extends types.Timestamp, M2 extends types.Interval>(arg0: M0, arg1: M1, arg2: M2): types.Bool<1>; @expose.unchecked() - overlaps(arg0: unknown, arg1: unknown, arg2: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Interval }, { type: types.Timestamp }, { type: types.Interval }], types.Bool], [[{ type: types.Interval }, { type: types.Timestamp }, { type: types.Timestamp }], types.Bool], [[{ type: types.Timestamp }, { type: types.Timestamp }, { type: types.Interval }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }, { type: types.Timestamp, allowPrimitive: true }, { type: types.Timestamp, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("overlaps", [this, ...__rest], __rt) as any; } + overlaps(arg0: unknown, arg1: unknown, arg2: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1, arg2], [[[{ type: types.Timestamp, allowPrimitive: true }, { type: types.Timestamp, allowPrimitive: true }, { type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }, { type: types.Timestamp }, { type: types.Interval }], types.Bool], [[{ type: types.Interval }, { type: types.Timestamp }, { type: types.Timestamp }], types.Bool], [[{ type: types.Interval }, { type: types.Timestamp }, { type: types.Interval }], types.Bool]]); return runtime.funcCall("overlaps", [this, ...__rest], __rt) as any; } @expose.unchecked() time(): types.Time { const [__rt, ...__rest] = runtime.match([], [[[], types.Time]]); return runtime.funcCall("time", [this, ...__rest], __rt) as any; } @expose.unchecked() @@ -52,72 +52,72 @@ export class Timestamp extends Anynonarray { ['+'] | string>(arg0: M0): types.Timestamp>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval, allowPrimitive: true }], types.Timestamp]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() plus | string>(arg0: M0): types.Timestamp>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval, allowPrimitive: true }], types.Timestamp]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['-']>(arg0: M0): types.Timestamp>>; ['-'] | string>(arg0: M0): types.Interval>>; + ['-']>(arg0: M0): types.Timestamp>>; @expose.unchecked() - ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Timestamp], [[{ type: types.Timestamp, allowPrimitive: true }], types.Interval]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - minus>(arg0: M0): types.Timestamp>>; + ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Interval], [[{ type: types.Interval }], types.Timestamp]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } minus | string>(arg0: M0): types.Interval>>; + minus>(arg0: M0): types.Timestamp>>; @expose.unchecked() - minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Timestamp], [[{ type: types.Timestamp, allowPrimitive: true }], types.Interval]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Interval], [[{ type: types.Interval }], types.Timestamp]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<']>(arg0: M0): types.Bool>>; ['<'] | string>(arg0: M0): types.Bool>>; ['<']>(arg0: M0): types.Bool>>; - ['<']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Date }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lt>(arg0: M0): types.Bool>>; lt | string>(arg0: M0): types.Bool>>; lt>(arg0: M0): types.Bool>>; - lt>(arg0: M0): types.Bool>>; @expose.unchecked() - lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Date }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<='] | string>(arg0: M0): types.Bool>>; + lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<=']>(arg0: M0): types.Bool>>; + ['<='] | string>(arg0: M0): types.Bool>>; ['<=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - lte | string>(arg0: M0): types.Bool>>; + ['<='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } lte>(arg0: M0): types.Bool>>; + lte | string>(arg0: M0): types.Bool>>; lte>(arg0: M0): types.Bool>>; @expose.unchecked() - lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<>'] | string>(arg0: M0): types.Bool>>; + lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<>']>(arg0: M0): types.Bool>>; + ['<>'] | string>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ne | string>(arg0: M0): types.Bool>>; + ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ne>(arg0: M0): types.Bool>>; + ne | string>(arg0: M0): types.Bool>>; ne>(arg0: M0): types.Bool>>; @expose.unchecked() - ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['='] | string>(arg0: M0): types.Bool>>; + ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['=']>(arg0: M0): types.Bool>>; + ['='] | string>(arg0: M0): types.Bool>>; ['=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - eq | string>(arg0: M0): types.Bool>>; + ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } eq>(arg0: M0): types.Bool>>; + eq | string>(arg0: M0): types.Bool>>; eq>(arg0: M0): types.Bool>>; @expose.unchecked() - eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>']>(arg0: M0): types.Bool>>; - ['>'] | string>(arg0: M0): types.Bool>>; + eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>']>(arg0: M0): types.Bool>>; + ['>'] | string>(arg0: M0): types.Bool>>; + ['>']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gt>(arg0: M0): types.Bool>>; - gt | string>(arg0: M0): types.Bool>>; + ['>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gt>(arg0: M0): types.Bool>>; + gt | string>(arg0: M0): types.Bool>>; + gt>(arg0: M0): types.Bool>>; @expose.unchecked() - gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>='] | string>(arg0: M0): types.Bool>>; + gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>=']>(arg0: M0): types.Bool>>; + ['>='] | string>(arg0: M0): types.Bool>>; ['>=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gte | string>(arg0: M0): types.Bool>>; + ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gte>(arg0: M0): types.Bool>>; + gte | string>(arg0: M0): types.Bool>>; gte>(arg0: M0): types.Bool>>; @expose.unchecked() - gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamptz }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/generated/timestamptz.ts b/src/types/postgres/generated/timestamptz.ts index 7fda2bf5..5b5c8377 100644 --- a/src/types/postgres/generated/timestamptz.ts +++ b/src/types/postgres/generated/timestamptz.ts @@ -48,24 +48,24 @@ export class Timestamptz extends Anynonarray { ['+'] | string>(arg0: M0): types.Timestamptz>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval, allowPrimitive: true }], types.Timestamptz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() plus | string>(arg0: M0): types.Timestamptz>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval, allowPrimitive: true }], types.Timestamptz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['-']>(arg0: M0): types.Timestamptz>>; ['-'] | string>(arg0: M0): types.Interval>>; + ['-']>(arg0: M0): types.Timestamptz>>; @expose.unchecked() - ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Timestamptz], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Interval]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - minus>(arg0: M0): types.Timestamptz>>; + ['-'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz, allowPrimitive: true }], types.Interval], [[{ type: types.Interval }], types.Timestamptz]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } minus | string>(arg0: M0): types.Interval>>; + minus>(arg0: M0): types.Timestamptz>>; @expose.unchecked() - minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Timestamptz], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Interval]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<'] | string>(arg0: M0): types.Bool>>; - ['<']>(arg0: M0): types.Bool>>; + minus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz, allowPrimitive: true }], types.Interval], [[{ type: types.Interval }], types.Timestamptz]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<']>(arg0: M0): types.Bool>>; + ['<']>(arg0: M0): types.Bool>>; + ['<'] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Date }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - lt | string>(arg0: M0): types.Bool>>; - lt>(arg0: M0): types.Bool>>; + ['<'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } lt>(arg0: M0): types.Bool>>; + lt>(arg0: M0): types.Bool>>; + lt | string>(arg0: M0): types.Bool>>; @expose.unchecked() - lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Date }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + lt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['<=']>(arg0: M0): types.Bool>>; ['<=']>(arg0: M0): types.Bool>>; ['<='] | string>(arg0: M0): types.Bool>>; @@ -76,26 +76,26 @@ export class Timestamptz extends Anynonarray { lte | string>(arg0: M0): types.Bool>>; @expose.unchecked() lte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['<>'] | string>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; ['<>']>(arg0: M0): types.Bool>>; + ['<>'] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ne | string>(arg0: M0): types.Bool>>; + ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ne>(arg0: M0): types.Bool>>; ne>(arg0: M0): types.Bool>>; + ne | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['=']>(arg0: M0): types.Bool>>; ['=']>(arg0: M0): types.Bool>>; ['='] | string>(arg0: M0): types.Bool>>; - ['=']>(arg0: M0): types.Bool>>; @expose.unchecked() - ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + eq>(arg0: M0): types.Bool>>; eq>(arg0: M0): types.Bool>>; eq | string>(arg0: M0): types.Bool>>; - eq>(arg0: M0): types.Bool>>; @expose.unchecked() - eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['>']>(arg0: M0): types.Bool>>; ['>']>(arg0: M0): types.Bool>>; ['>'] | string>(arg0: M0): types.Bool>>; @@ -106,14 +106,14 @@ export class Timestamptz extends Anynonarray { gt | string>(arg0: M0): types.Bool>>; @expose.unchecked() gt(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['>='] | string>(arg0: M0): types.Bool>>; ['>=']>(arg0: M0): types.Bool>>; ['>=']>(arg0: M0): types.Bool>>; + ['>='] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - gte | string>(arg0: M0): types.Bool>>; + ['>='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } gte>(arg0: M0): types.Bool>>; gte>(arg0: M0): types.Bool>>; + gte | string>(arg0: M0): types.Bool>>; @expose.unchecked() - gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool], [[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + gte(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Bool], [[{ type: types.Timestamp }], types.Bool], [[{ type: types.Timestamptz, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`>=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/generated/timetz.ts b/src/types/postgres/generated/timetz.ts index 761befda..e6cf2d6e 100644 --- a/src/types/postgres/generated/timetz.ts +++ b/src/types/postgres/generated/timetz.ts @@ -34,14 +34,14 @@ export class Timetz extends Anynonarray { max(): types.Timetz<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Timetz]]); return runtime.funcCall("max", [this, ...__rest], __rt) as any; } @expose.unchecked() min(): types.Timetz<0 | 1> { const [__rt, ...__rest] = runtime.match([], [[[], types.Timetz]]); return runtime.funcCall("min", [this, ...__rest], __rt) as any; } - ['+']>(arg0: M0): types.Timetz>>; ['+']>(arg0: M0): types.Timestamptz>>; + ['+']>(arg0: M0): types.Timetz>>; @expose.unchecked() - ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Timetz], [[{ type: types.Date }], types.Timestamptz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - plus>(arg0: M0): types.Timetz>>; + ['+'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Timestamptz], [[{ type: types.Interval }], types.Timetz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } plus>(arg0: M0): types.Timestamptz>>; + plus>(arg0: M0): types.Timetz>>; @expose.unchecked() - plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval }], types.Timetz], [[{ type: types.Date }], types.Timestamptz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + plus(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Date }], types.Timestamptz], [[{ type: types.Interval }], types.Timetz]]); return runtime.opCall(runtime.sql`+`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() ['-'] | string>(arg0: M0): types.Timetz>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Interval, allowPrimitive: true }], types.Timetz]]); return runtime.opCall(runtime.sql`-`, [this, ...__rest] as [unknown, unknown], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/tsquery.ts b/src/types/postgres/generated/tsquery.ts index d067965c..ae25ece1 100644 --- a/src/types/postgres/generated/tsquery.ts +++ b/src/types/postgres/generated/tsquery.ts @@ -36,10 +36,10 @@ export class Tsquery extends Anynonarray { tsqueryNot(): types.Tsquery { const [__rt, ...__rest] = runtime.match([], [[[], types.Tsquery]]); return runtime.funcCall("tsquery_not", [this, ...__rest], __rt) as any; } @expose.unchecked() tsqueryOr | string>(arg0: M0): types.Tsquery>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Tsquery, allowPrimitive: true }], types.Tsquery]]); return runtime.funcCall("tsquery_or", [this, ...__rest], __rt) as any; } - tsqueryPhrase | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Tsquery | runtime.NullOf>>; tsqueryPhrase | string>(arg0: M0): types.Tsquery>>; + tsqueryPhrase | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Tsquery | runtime.NullOf>>; @expose.unchecked() - tsqueryPhrase(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Tsquery, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Tsquery], [[{ type: types.Tsquery, allowPrimitive: true }], types.Tsquery]]); return runtime.funcCall("tsquery_phrase", [this, ...__rest], __rt) as any; } + tsqueryPhrase(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Tsquery, allowPrimitive: true }], types.Tsquery], [[{ type: types.Tsquery, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Tsquery]]); return runtime.funcCall("tsquery_phrase", [this, ...__rest], __rt) as any; } @expose.unchecked() tsquerysend(): types.Bytea { const [__rt, ...__rest] = runtime.match([], [[[], types.Bytea]]); return runtime.funcCall("tsquerysend", [this, ...__rest], __rt) as any; } @expose.unchecked() diff --git a/src/types/postgres/generated/tsvector.ts b/src/types/postgres/generated/tsvector.ts index 386a6e28..e9b0e91a 100644 --- a/src/types/postgres/generated/tsvector.ts +++ b/src/types/postgres/generated/tsvector.ts @@ -28,10 +28,10 @@ export class Tsvector extends Anynonarray { tsDelete | string>(arg0: M0): types.Tsvector>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Text, allowPrimitive: true }], types.Tsvector]]); return runtime.funcCall("ts_delete", [this, ...__rest], __rt) as any; } @expose.unchecked() tsMatchVq | string>(arg0: M0): types.Bool>> { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Tsquery, allowPrimitive: true }], types.Bool]]); return runtime.funcCall("ts_match_vq", [this, ...__rest], __rt) as any; } - tsRank | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Float4 | runtime.NullOf>>; tsRank | string>(arg0: M0): types.Float4>>; + tsRank | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Float4 | runtime.NullOf>>; @expose.unchecked() - tsRank(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Tsquery, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Float4], [[{ type: types.Tsquery, allowPrimitive: true }], types.Float4]]); return runtime.funcCall("ts_rank", [this, ...__rest], __rt) as any; } + tsRank(arg0: unknown, arg1?: unknown): any { const [__rt, ...__rest] = runtime.match([arg0, arg1], [[[{ type: types.Tsquery, allowPrimitive: true }], types.Float4], [[{ type: types.Tsquery, allowPrimitive: true }, { type: types.Int4, allowPrimitive: true }], types.Float4]]); return runtime.funcCall("ts_rank", [this, ...__rest], __rt) as any; } tsRankCd | string>(arg0: M0): types.Float4>>; tsRankCd | string, M1 extends types.Int4 | number>(arg0: M0, arg1: M1): types.Float4 | runtime.NullOf>>; @expose.unchecked() diff --git a/src/types/postgres/generated/xid.ts b/src/types/postgres/generated/xid.ts index 886d36d3..c3b78365 100644 --- a/src/types/postgres/generated/xid.ts +++ b/src/types/postgres/generated/xid.ts @@ -20,20 +20,20 @@ export class Xid extends Anynonarray { declare deserialize: (raw: string) => string; @expose.unchecked() xidsend(): types.Bytea { const [__rt, ...__rest] = runtime.match([], [[[], types.Bytea]]); return runtime.funcCall("xidsend", [this, ...__rest], __rt) as any; } - ['<>'] | string>(arg0: M0): types.Bool>>; ['<>'] | number>(arg0: M0): types.Bool>>; + ['<>'] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Xid, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ne | string>(arg0: M0): types.Bool>>; + ['<>'](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Xid, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ne | number>(arg0: M0): types.Bool>>; + ne | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Xid, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - ['='] | string>(arg0: M0): types.Bool>>; + ne(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Xid, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`<>`, [this, ...__rest] as [unknown, unknown], __rt) as any; } ['='] | number>(arg0: M0): types.Bool>>; + ['='] | string>(arg0: M0): types.Bool>>; @expose.unchecked() - ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Xid, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } - eq | string>(arg0: M0): types.Bool>>; + ['='](arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Xid, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } eq | number>(arg0: M0): types.Bool>>; + eq | string>(arg0: M0): types.Bool>>; @expose.unchecked() - eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Xid, allowPrimitive: true }], types.Bool], [[{ type: types.Int4, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } + eq(arg0: unknown): any { const [__rt, ...__rest] = runtime.match([arg0], [[[{ type: types.Int4, allowPrimitive: true }], types.Bool], [[{ type: types.Xid, allowPrimitive: true }], types.Bool]]); return runtime.opCall(runtime.sql`=`, [this, ...__rest] as [unknown, unknown], __rt) as any; } } diff --git a/src/types/postgres/index.test.ts b/src/types/postgres/index.test.ts index 5923b6b9..96f89bc8 100644 --- a/src/types/postgres/index.test.ts +++ b/src/types/postgres/index.test.ts @@ -1,8 +1,8 @@ import { test, expect, expectTypeOf, beforeAll, afterAll } from "vitest"; import type { meta } from "../sql-value"; import type { StrictNull, MaybeNull, NullOf, TsTypeOf } from "../runtime"; -import type { Any, Float8, Anyrange, Anymultirange } from "./index"; -import { Int4, Text, Bool, Int8, Record, Anyarray } from "./index"; +import type { Any, Anyrange, Anymultirange } from "./index"; +import { Int4, Text, Bool, Int8, Float8, Numeric, Record, Anyarray } from "./index"; import { compile } from "../../builder/sql"; import { sql } from "../../builder/sql"; import { PgDriver } from "../../drivers/pg"; @@ -10,6 +10,7 @@ import { requireDatabaseUrl } from "../../pg"; import type { Connection } from "../../database"; import { Database } from "../../database"; import { compileOnlyDb } from "../../test-helpers"; +import { OPERATOR_ALIASES } from "../emission/common"; const pgCtx = { database: compileOnlyDb("postgres") }; @@ -656,3 +657,82 @@ test("Any.from: accepts primitives, null, plain objects, arrays", () => { expect(() => Text.from([1, 2, 3] as any)).not.toThrow(); }); +// --- Operator aliases --- +// +// OPERATOR_ALIASES gives each operator symbol a readable twin next to its +// bracket form, so `~~*` is callable as `.ilike()`. The table is the whole +// contract for that surface: an entry that never reaches the generated +// types is a hole nothing else notices, since the bracket form keeps +// working. Hence two tests — one on what the aliases compile to, one on +// the table as a whole. + +test("pattern operator aliases compile to their operator form", () => { + const t = () => Text.from("Alice"); + + expect(compile(t().ilike("%a%").toSql(), pgCtx).text).toBe( + "(CAST($1 AS text) ~~* CAST($2 AS text))", + ); + expect(compile(t().notLike("%a%").toSql(), pgCtx).text).toBe( + "(CAST($1 AS text) !~~ CAST($2 AS text))", + ); + expect(compile(t().notIlike("%a%").toSql(), pgCtx).text).toBe( + "(CAST($1 AS text) !~~* CAST($2 AS text))", + ); + + // `like` is the one that doesn't route through the operator: pg owns a + // catalog function of the same name, so the collision rule keeps the + // function and its signature stays authoritative. Same semantics, and + // `['~~']` is still there for the operator form. + expect(compile(t().like("%a%").toSql(), pgCtx).text).toBe( + '"like"(CAST($1 AS text), CAST($2 AS text))', + ); + expect(compile(t()["~~"]("%a%").toSql(), pgCtx).text).toBe( + "(CAST($1 AS text) ~~ CAST($2 AS text))", + ); +}); + +// The general guard: anything in the alias table has to actually reach the +// generated types. Catches a whole class of regression rather than `ilike` +// alone — including aliases suppressed by the host-function collision rule, +// which must still exist under that name (pg: mod, pow, like). +test("every OPERATOR_ALIASES entry is emitted somewhere", () => { + const protos: object[] = [ + Text.prototype, + Int4.prototype, + Int8.prototype, + Bool.prototype, + // `^` -> pow is exponentiation: float/numeric only, not the int types. + Float8.prototype, + Numeric.prototype, + ]; + for (const [op, alias] of Object.entries(OPERATOR_ALIASES)) { + const found = protos.some( + (p) => typeof (p as { [k: string]: unknown })[alias] === "function", + ); + expect(found, `operator ${op} -> .${alias}() missing from generated types`).toBe(true); + } +}); + +test("e2e: ilike matches case-insensitively", async () => { + const expr = Text.from("Alice Smith").ilike("%alice%"); + const result = await exec.execute( + sql`SELECT ${expr.toSql()} as ${exec.database.scopedIdent("result")}`, + ); + expect(result.rows[0]?.["result"]).toBe("t"); +}); + +test("e2e: like is case-sensitive (the contrast that makes ilike worth having)", async () => { + const expr = Text.from("Alice Smith").like("%alice%"); + const result = await exec.execute( + sql`SELECT ${expr.toSql()} as ${exec.database.scopedIdent("result")}`, + ); + expect(result.rows[0]?.["result"]).toBe("f"); +}); + +test("e2e: notIlike negates ilike", async () => { + const expr = Text.from("Alice Smith").notIlike("%bob%"); + const result = await exec.execute( + sql`SELECT ${expr.toSql()} as ${exec.database.scopedIdent("result")}`, + ); + expect(result.rows[0]?.["result"]).toBe("t"); +}); diff --git a/src/types/postgres/introspect.ts b/src/types/postgres/introspect.ts index b469cc54..2064c4fc 100644 --- a/src/types/postgres/introspect.ts +++ b/src/types/postgres/introspect.ts @@ -93,7 +93,10 @@ export const introspect = async ( AND p.proargtypes::text != '' AND p.oid NOT IN (SELECT oprcode FROM pg_operator WHERE oprcode != 0 AND oprname = ANY($1::text[])) -- exclude oprcode only for operators we give readable aliases AND p.oid NOT IN (SELECT amproc FROM pg_amproc) -- exclude index support functions (e.g. btint4cmp, hashint4) - ORDER BY p.proname + -- proname alone is not unique: overloads share it, and pg returns + -- them in whatever order the scan produces. Tiebreak on the full + -- signature so codegen output is reproducible (codegen:check diffs it). + ORDER BY p.proname, p.proargtypes::text, p.prorettype `, [aliasedOperators]); // Get operators (operators are always strict in terms of null propagation) @@ -109,7 +112,7 @@ export const introspect = async ( WHERE n.nspname = 'pg_catalog' AND o.oprleft != 0 AND o.oprright != 0 - ORDER BY o.oprname + ORDER BY o.oprname, o.oprleft, o.oprright, o.oprresult `); const pgFuncs: PgFunc[] = []; @@ -152,7 +155,10 @@ export const introspect = async ( AND p.proretset = false AND array_length(string_to_array(trim(p.proargtypes::text), ' '), 1) > 0 AND p.proargtypes::text != '' - ORDER BY p.proname + -- proname alone is not unique: overloads share it, and pg returns + -- them in whatever order the scan produces. Tiebreak on the full + -- signature so codegen output is reproducible (codegen:check diffs it). + ORDER BY p.proname, p.proargtypes::text, p.prorettype `); for (const f of aggFuncs) { @@ -189,7 +195,10 @@ export const introspect = async ( AND p.proargtypes::text != '' AND p.oid NOT IN (SELECT oprcode FROM pg_operator WHERE oprcode != 0) AND p.oid NOT IN (SELECT amproc FROM pg_amproc) - ORDER BY p.proname + -- proname alone is not unique: overloads share it, and pg returns + -- them in whatever order the scan produces. Tiebreak on the full + -- signature so codegen output is reproducible (codegen:check diffs it). + ORDER BY p.proname, p.proargtypes::text, p.prorettype `); for (const f of srfFuncs) {