aboutsummaryrefslogtreecommitdiffstats
path: root/internal/database
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-25 01:35:35 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-25 01:35:35 -0400
commit07647e800275c8ce85ec3b3f78869f19dffed7e9 (patch)
treeffc57fadf8f4613eea57ab546545753531377014 /internal/database
parent746eec50ca6efc995487ba50c20fa0b0450ff42f (diff)
parent33b338938419fc71c577d5d3609eda402b01b500 (diff)
downloaddonetick-07647e800275c8ce85ec3b3f78869f19dffed7e9.tar.gz
donetick-07647e800275c8ce85ec3b3f78869f19dffed7e9.tar.bz2
donetick-07647e800275c8ce85ec3b3f78869f19dffed7e9.zip
Change SQlite driver to github.com/glebarez/sqlite which doesn't require CGO
Diffstat (limited to 'internal/database')
-rw-r--r--internal/database/database.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/database/database.go b/internal/database/database.go
index 67818db..7d4681d 100644
--- a/internal/database/database.go
+++ b/internal/database/database.go
@@ -6,12 +6,12 @@ import (
"time"
"gorm.io/driver/postgres"
- "gorm.io/driver/sqlite" // Sqlite driver based on CGO
+ // "gorm.io/driver/sqlite" // Sqlite driver based on CGO
"gorm.io/gorm/logger"
- // "github.com/glebarez/sqlite" // Pure go SQLite driver, checkout https://github.com/glebarez/sqlite for details
"donetick.com/core/config"
"donetick.com/core/logging"
+ "github.com/glebarez/sqlite" // Pure go SQLite driver, checkout https://github.com/glebarez/sqlite for details
"gorm.io/gorm"
)