You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add `LdsOptions.params`
* fix `numeric-data-types-as-string` to be set only if `types` are passed
* adjust the `parse` function accordingly, to handle `number` values without a type parser
Copy file name to clipboardExpand all lines: packages/lds/src/pg-logical-decoding.ts
+25-12Lines changed: 25 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -83,45 +83,58 @@ export interface LdsOptions {
83
83
temporary?: boolean;
84
84
/** (Custom) [type parsers](https://node-postgres.com/features/queries#types) to deserialise the wal2json column string values. Pass `pg.types` to get the default type parsing. Defaults to `undefined`, that is raw values will get emitted. */
85
85
types?: pg.CustomTypesConfig;
86
+
/** Extra [parameters to be passed to wal2json](https://github.com/eulerto/wal2json?tab=readme-ov-file#parameters). Use e.g. `{'numeric-data-types-as-string', 't'}` to make the type parsers apply to numeric values. */
0 commit comments