Releases: kysely-org/kysely
Releases · kysely-org/kysely
0.12.1
0.12.0
- Added support for temporary tables
- Added support for insert into select from queries
Breaking changes
- Renamed the
subQuerymethod to selectFrom. - Created separate query builders for select, insert, update and delete queries. This is only a breaking change if you have used the
QueryBuildertype explicitly.
0.11.4
Support callback subqueries and raw expressions in insert queries:
db.with('jennifer', (db) => db
.selectFrom('person')
.where('first_name', '=', 'Jennifer')
.select(['id', 'first_name'])
.limit(1)
).insertInto('pet').values({
id: db.generated,
owner_id: (eb) => eb.subQuery('jennifer').select('id'),
name: (eb) => eb.subQuery('jennifer').select('first_name'),
species: 'cat',
})0.11.3
0.11.2
0.11.1
0.11.0
Added support for SQLite using the better-sqlite3 library.
Breaking changes
- insert queries now return an InsertResult instead of
number | undefined - update queries now return an UpdateResult instead of
number - delete queries now return a DeleteResult instead of
number - Number fields in QueryResult are now of type
bigintto support large integers. Also theQueryResult. insertedPrimaryKeyfield has been renamed toinsertId.QueryResultis only returned by completely raw queries likeawait db.raw('select * from person').
0.10.1
0.10.0
- Add support for materialized views
Breaking changes
incrementsmethod in the schema module is now called autoIncrement. You need to go through your migrations and use the new method.- Harmonised operation node flag names. Booleans like
isPrimaryKeyare now renamed toprimaryKey. This only affects you if you've implemented your own plugins that transform the operation node tree.