Alec Larson
Alec Larson
This tokenizes into `DEFAULT`, which is a keyword used for inserting/updating a column with the default value for that column. Adding `pg.default` is useful for expressions that may or may...
We can't just let `db.get` take an array of keys, because we want to support array-based keys. ```ts // Order is guaranteed to match the `userIds` array. const rows =...
**Goal:** Extra type safety. Prevent primary keys for one table from being used in a query of another table. ```ts // The generated type of a primary/foreign key id: t.int4...
https://github.com/evanw/esbuild/issues/1420 We recommend using Rollup when bundling a package that uses Tusken to interact with your Postgres database.
https://github.com/supabase/stripe-sync-engine/tree/main/db/migrations
If an aggregate function is used within a `db.select` call, you need `GROUP BY` to include non-aggregate selections. ### Current progress - [x] Generated `defineFunction` calls use the `Aggregate` type...
If only one database is configured by `tusken.config.ts`, the current behavior is kept. ```ts db.select(t.user) ``` If multiple databases are configured like… ```ts export default defineConfig({ database: ['foo', 'bar'], })...