From a52a5c3aaa5d3aec38672f234e040a031aa1a314 Mon Sep 17 00:00:00 2001 From: Isak <16906089+kansson@users.noreply.github.com> Date: Sat, 27 Jul 2024 07:55:35 +0200 Subject: [PATCH 1/2] feat: add postgres range types (#1086) --- src/operation-node/data-type-node.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/operation-node/data-type-node.ts b/src/operation-node/data-type-node.ts index 2d88f43d4..acd04c8aa 100644 --- a/src/operation-node/data-type-node.ts +++ b/src/operation-node/data-type-node.ts @@ -33,6 +33,18 @@ const SIMPLE_COLUMN_DATA_TYPES = [ 'jsonb', 'blob', 'varbinary', + 'int4range', + 'int4multirange', + 'int8range', + 'int8multirange', + 'numrange', + 'nummultirange', + 'tsrange', + 'tsmultirange', + 'tstzrange', + 'tstzmultirange', + 'daterange', + 'datemultirange', ] as const const COLUMN_DATA_TYPE_REGEX = [ From bb0867793aa63e9969c50b48fbb5adbd603ba56a Mon Sep 17 00:00:00 2001 From: Jonathan Wu Date: Tue, 30 Jul 2024 07:17:13 -0400 Subject: [PATCH 2/2] fix: References typo (#1092) --- src/raw-builder/sql.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raw-builder/sql.ts b/src/raw-builder/sql.ts index 5ed887fd5..d40ae9b88 100644 --- a/src/raw-builder/sql.ts +++ b/src/raw-builder/sql.ts @@ -147,7 +147,7 @@ export interface Sql { * select "first_name" from person * ``` * - * The refefences can also include a table name: + * The references can also include a table name: * * ```ts * const columnRef = 'person.first_name' @@ -161,7 +161,7 @@ export interface Sql { * select "person"."first_name" from person * ``` * - * The refefences can also include a schema on supported databases: + * The references can also include a schema on supported databases: * * ```ts * const columnRef = 'public.person.first_name'