diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-25 01:35:35 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-25 01:35:35 -0400 |
commit | 07647e800275c8ce85ec3b3f78869f19dffed7e9 (patch) | |
tree | ffc57fadf8f4613eea57ab546545753531377014 /internal | |
parent | 746eec50ca6efc995487ba50c20fa0b0450ff42f (diff) | |
parent | 33b338938419fc71c577d5d3609eda402b01b500 (diff) | |
download | donetick-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 '')
-rw-r--r-- | internal/database/database.go | 4 |
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" ) |