Skip to content

Commit

Permalink
feat(zero-cache): support for custom backends (experimental) (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkgnotic authored Jan 29, 2025
1 parent e8a605d commit 1b64d6d
Show file tree
Hide file tree
Showing 13 changed files with 1,144 additions and 273 deletions.
11 changes: 11 additions & 0 deletions packages/zero-cache/src/config/zero-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,17 @@ export const zeroOptions = {
],
},

type: {
type: v.union(v.literal('pg'), v.literal('custom')).default('pg'),
desc: [
`The meaning of the {bold upstream-db} depends on the upstream type:`,
`* {bold pg}: The connection database string, e.g. "postgres://..."`,
`* {bold custom}: The base URI of the change source "endpoint, e.g.`,
` "https://my-change-source.dev/changes/v0/stream?apiKey=..."`,
],
hidden: true, // TODO: Unhide when ready to officially support.
},

maxConns: {
type: v.number().default(20),
desc: [
Expand Down
Loading

0 comments on commit 1b64d6d

Please sign in to comment.