tursodatabase / libsql-client-go

Go client API for libSQL
MIT License
180 stars 24 forks source link

Make it possible to signal to the driver that we're connecting to schema db and use nontransactional batches in such case #125

Closed haaawk closed 1 month ago

haaawk commented 1 month ago

Schema migrations fail if they consist a transaction so we need to make sure that a batch sent to a schema db is not transactional. Otherwise the operation fails with:

Schema migration error: migration is invalid: it contains transaction items (BEGIN, COMMIT, SAVEPOINT...) which are not allowed. The migration is already run within a transaction