diff options
author | Grail Finder <wohilas@gmail.com> | 2025-10-19 13:14:56 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-10-19 13:14:56 +0300 |
commit | 60ccaed2009c535c9c92c163995577fcde7aadb6 (patch) | |
tree | 4621fdbcd4b86cc32c7c05ff13b907136424f765 /storage/migrate.go | |
parent | dfa164e871a62f814aeeb9ced6350e74a52f65b3 (diff) |
Chore: remove old rag
Diffstat (limited to 'storage/migrate.go')
-rw-r--r-- | storage/migrate.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/storage/migrate.go b/storage/migrate.go index b05dddc..decfe9c 100644 --- a/storage/migrate.go +++ b/storage/migrate.go @@ -5,8 +5,6 @@ import ( "fmt" "io/fs" "strings" - - _ "github.com/asg017/sqlite-vec-go-bindings/ncruces" ) //go:embed migrations/* @@ -53,8 +51,8 @@ func (p *ProviderSQL) executeMigration(migrationsDir fs.FS, fileName string) err } func (p *ProviderSQL) executeSQL(sqlContent []byte) error { - // Connect to the database (example using a simple connection) - err := p.s3Conn.Exec(string(sqlContent)) + // Execute the migration content using standard database connection + _, err := p.db.Exec(string(sqlContent)) if err != nil { return fmt.Errorf("failed to execute SQL: %w", err) } |