What's the best way to use Pick with Selectable/Insertable/Updatable?
Issue with select
Issue with migrating from knex
how to decode a point to `{x: number, y: number}` when selected inside `jsonBuildObject`?
{x: number, y: number}
, but when i wrap it in jsonBuildObject
i get it as the raw string.
example:
```ts...need advice how to configure driver to return prefixed or drizzle style selections
problem with nested jsonArrayFrom and jsonObjectFrom
eb
for all depths. The one you've used doesn't have line
nor subline
in its query context.
This works:...Is there way to select every field from table using `select` instead of `selectAll`?
selectAll
does the job, but I also need to populate some relations and build json_agg
s. Is there way to either select every column from table (and then build jsonObject) or extend selectAll
with some extra fields?
```
db
.selectFrom('document')
.select((eb)=> [....selectAll('document')
.select(eb => ...)
.selectAll('document')
.select(eb => ...)
select / groupBy combined helper
How to delete and insert in one query
.filterWhere inference
.$narrowType
for this.json object relation null problem
undefined
or ?
in your type interfaces.How to narrow type from jsonArrayFrom
Single Table Inheritance
table. I believe this is possible, but after some fighting with api and syntax I am not sure how to make it.
Here is my query:
(sorry for polish, Ubiquitous Language with domain masters)
```....$narrowType<PrzyjecieZewnetrznePozycjaRozbicieSelect>()
has to be straight after jsonArrayFrom
not at the top levelHow to narrow type in select
company, person
to just person
in select query?
```
const results = await db
.selectFrom('receiver')
.where('type', '=', 'person')...$narrowType
Subquery from a function
boolean
. It's { is_friend: boolean }
. Yes, you can use that as a scalar in SQL and Kysely does handle that correctly. But don't explicitly set the wrong type.
You always need to provide a name for selections using the as
method. The name is dialect-specific if you leave it out. Since kysely types don't know which dialect you're using, providing a name for that column automatically is impossible....why is WhereNode.where any operation node?
are nested joins supported?
knex .select('*') .from('users') .join('accounts', function () { this.on(function () { this.on('accounts.id', '=', 'users.account_id'); this.orOn('accounts.owner_id', '=', 'users.id'); }); });
knex .select('*') .from('users') .join('accounts', function () { this.on(function () { this.on('accounts.id', '=', 'users.account_id'); this.orOn('accounts.owner_id', '=', 'users.id'); }); });
New dialect for snowflake - quotes and case sensitivity
Help with implementation of new dialect for snowflake
DefaultQueryCompiler
There are several things that snowflake does not support, such as indices....is there any helper to put all columns in json_build_object?
Advice for debugging timeout/connection issues with Kysely