Change to Sqlite driver that doesn't need CGO github.com/glebarez/sqlite

This commit is contained in:
Mo Tarbin 2024-07-25 01:35:25 -04:00
parent a5d07a545a
commit 33b3389384
4 changed files with 28 additions and 6 deletions

View file

@ -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"
)