Mysql Query execution never ends
createPool
from mysql2
and not mysql2/promise
....How to do join with raw sql snippets?
left join videos on videos.id = CAST(highlights_content.item AS INT) AND highlights_content.collection = 'videos'
I tried using the provided sql
helper but can't really figure out which parts I need to replace with raw SQL for this to be possible....More elegant way to handle nested relations?
withSomething
but it becomes quite verbose and not easy to read. Here's one of my relation helper functions:
```ts
export function withLinks<T>(
eb: ExpressionBuilder<DB, 'banners'>,
fn: (...Join DATE_TRUNC
Why does kysely-codegen generate the schema in node_modules?
Any plan to complete the Postgres dialect?
Convert date to timestamptz
Shorthand way to pass the entire update object inside of doUpdateSet when updating multiple values.
Raw query for RLS not working
``
const query =
...Problems typing a generic withPerson helper
Rollback transaction
trx.rollback
on the callback parameter, but I couldn't find anything like that on Kysely, am I missing something or is this not yet implemented?await sql<void>`rollback`.execute(trx)
await sql<void>`rollback`.execute(trx)
Trouble running migrations
ts-node --esm "path/to/script"
I receive failed to migrate
CustomError: ERR_INVALID_MODULE_SPECIFIER src\lib\server\db\migrations\540540540_create_db.ts is not a valid package name E:\Code\Web\portfolio-projects\spotify-cp\node_modules\.pnpm\[email protected]\node_modules\kysely\dist\esm\migration\file-migration-provider.js
CustomError: ERR_INVALID_MODULE_SPECIFIER src\lib\server\db\migrations\540540540_create_db.ts is not a valid package name E:\Code\Web\portfolio-projects\spotify-cp\node_modules\.pnpm\[email protected]\node_modules\kysely\dist\esm\migration\file-migration-provider.js
Suggestions on implementing SQLite as DocumentDB or GraphDN
open source examples
Types for use with leftJoin
mysql InsertResult always empty
RawBuilder is not "Compilable"
```
since they're not "Compilable" things? I know you can pass from
```
since they're not "Compilable" things? I know you can pass from
customsql
.execute({ getExecutor: () => executor })...Query with ANDs and ORs - struggling with syntax
Subquery type error when using generics
f
:
``typescript
const f = () => queryBuilder
.deleteFrom(
table as t1)
.whereExists(qb => qb.selectFrom(
table as t2`)...Extacting where clause generation into dedicated function