@typesql/pg 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/type-map.ts CHANGED
@@ -48,30 +48,31 @@ export type PgInterval = PgTypeMap["interval"];
48
48
  * The two that `PgCatalog` columns use are declared here as the text pg returns: `aclitem[]`
49
49
  * (`relacl`, `datacl`, ...) and `"char"[]` (`proargmodes`).
50
50
  */
51
- export interface PgTypeMap extends Omit<DefaultTypeMap, "bytea" | "interval" | "record" | "void"> {
52
- /** What parameters accept on top of the row types. */
53
- $params: PgParamTypeMap;
54
- bytea: Buffer;
55
- interval: {
56
- years?: number;
57
- months?: number;
58
- days?: number;
59
- hours?: number;
60
- minutes?: number;
61
- seconds?: number;
62
- milliseconds?: number;
63
- toPostgres(): string;
64
- toISO(): string;
65
- toISOString(): string;
66
- };
67
- /** Anonymous `ROW(...)` results have no parser: raw text such as `"(1,foo)"`. */
68
- record: string;
69
- /** `void`-returning functions (`pg_sleep`) yield an empty string. */
70
- void: string;
71
- /** No array parser: the raw `{...}` text, e.g. `"{postgres=arwdDxtm/postgres}"`. */
72
- "aclitem[]": string;
73
- /** No array parser for `"char"[]`: the raw `{...}` text, e.g. `"{i,o}"`. */
74
- "char[]": string;
51
+ export interface PgTypeMap
52
+ extends Omit<DefaultTypeMap, "bytea" | "interval" | "record" | "void"> {
53
+ /** What parameters accept on top of the row types. */
54
+ $params: PgParamTypeMap;
55
+ bytea: Buffer;
56
+ interval: {
57
+ years?: number;
58
+ months?: number;
59
+ days?: number;
60
+ hours?: number;
61
+ minutes?: number;
62
+ seconds?: number;
63
+ milliseconds?: number;
64
+ toPostgres(): string;
65
+ toISO(): string;
66
+ toISOString(): string;
67
+ };
68
+ /** Anonymous `ROW(...)` results have no parser: raw text such as `"(1,foo)"`. */
69
+ record: string;
70
+ /** `void`-returning functions (`pg_sleep`) yield an empty string. */
71
+ void: string;
72
+ /** No array parser: the raw `{...}` text, e.g. `"{postgres=arwdDxtm/postgres}"`. */
73
+ "aclitem[]": string;
74
+ /** No array parser for `"char"[]`: the raw `{...}` text, e.g. `"{i,o}"`. */
75
+ "char[]": string;
75
76
  }
76
77
 
77
78
  /**