New Features
π WITH UPDATE, WITH DELETE, WITH INSERT
You can now use WITH
statements with INSERT, UPDATE and DELETE statements
Usage examples
For more examples for all statements, check docs:
π Possibility to specify custom schema and custom name for migrations table
- Custom table for migrations
By default, all information about executed migrations will be stored in the database inside the __drizzle_migrations
table,
and for PostgreSQL, inside the drizzle
schema. However, you can configure where to store those records.
To add a custom table name for migrations stored inside your database, you should use the migrationsTable
option
Usage example
- Custom schema for migrations
Works only with PostgreSQL databases
To add a custom schema name for migrations stored inside your database, you should use the migrationsSchema
option
Usage example
π SQLite Proxy bacth and Relational Queries support
You can find more information about SQLite proxy in docs.
-
You can now use
.query.findFirst
and.query.findMany
syntax with sqlite proxy driver -
SQLite Proxy supports batch requests, the same as itβs done for all other drivers. Check full docs
You will need to specify a specific callback for batch queries and handle requests to proxy server:
And then you can use db.batch([])
method, that will proxy all queries
Response from the batch should be an array of raw values (an array within an array), in the same order as they were sent to the proxy server