Is there a way to handle migrations with .sql files?
Postgres: Transaction not honouring previous queries
error: duplicate key value violates unique constraint "xxxxx_key"
I only want the deletion to happen if the insertion is successful, and that's why I tried using transaction. However, the transaction seems to work in a different way than I thought.
...How do I specify a MySQL index hint?
USE INDEX ...
):
```sql
SELECT
sc.synopsis_fk,
'characters',...question about transaction isolation level
``
try {
await sql
BEGIN;
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;`...case when column = another column
.when("shahz_response", "=", "rank")
is where I'm attempting this, but this isn't working....when("shahz_response", "=", e.ref("rank"))
...Webstorm warning with multiple joins
How do I use `WHERE NOT EXISTS`?
transforming database values to JS values (dates in sqlite)
How to enable pragmas with SqliteDialect
Foreign key constraints are disabled by default (for backwards compatibility), so must be enabled separately for each database connection....
Dynamic return type based on provided select array
How to work with json columns?
Does the TypeScript performance scale with larger projects?
SQLite__namespace is not a constructor
import SQLite from 'better-sqlite3'
import SQLite from 'better-sqlite3'
Raw SQL in where clause
0.27.0
.
```....where('disabled_at', '>', sql<Date>`now()`)
.where('disabled_at', '>', sql<Date>`now()`)
smallint support (Postgres)
addColumn<CN extends string>(columnName: CN, dataType: DataTypeExpression, build?: ColumnBuilderCallback): CreateTableBuilder<TB, C | CN>;
addColumn<CN extends string>(columnName: CN, dataType: DataTypeExpression, build?: ColumnBuilderCallback): CreateTableBuilder<TB, C | CN>;
addColumn("foo", sql`smallint`)
addColumn("foo", sql`smallint`)
Examples inner join using OR?
ON a.id = b.id OR a.sub_id = b.sub_id
full join "using" list of columns
using
, what is the correct way ?
example:
```...Is kysely sanitizing sql injection when using raw sql ?
${myString}
where myString contains sql injection, will kysely sanitize it or is it something that I need to take care of ?...Support for D1 batching
Omit/filter out columns from query
select(['1','2','3','4','5','6','7','8','10']
select(['1','2','3','4','5','6','7','8','10']