aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-30 06:54:34 -0300
committerEuAndreh <eu@euandre.org>2024-10-30 06:54:34 -0300
commitb2e1a5ccae8e0f1f1c9ce00c0f5434924251e5ff (patch)
tree97f40468aab2750e78f4f2c50ed225b06e96a820 /src
parent.gitignore: Normalize according to other go projects (diff)
downloadgolite-b2e1a5ccae8e0f1f1c9ce00c0f5434924251e5ff.tar.gz
golite-b2e1a5ccae8e0f1f1c9ce00c0f5434924251e5ff.tar.xz
src/golite.go: Use IMMEDIATE transaction for db.Begin()
Diffstat (limited to 'src')
-rw-r--r--src/golite.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/golite.go b/src/golite.go
index da95c18..7153766 100644
--- a/src/golite.go
+++ b/src/golite.go
@@ -1623,7 +1623,7 @@ func (c *SQLiteConn) Begin() (driver.Tx, error) {
}
func (c *SQLiteConn) begin(ctx context.Context) (driver.Tx, error) {
- if _, err := c.exec(ctx, "BEGIN", nil); err != nil {
+ if _, err := c.exec(ctx, "BEGIN IMMEDIATE", nil); err != nil {
return nil, err
}
return &SQLiteTx{c}, nil