remove Migrations from being exported

v0.2.1
Mason Payne 2024-10-17 20:02:08 -06:00
parent 97fb4e290e
commit 15a59a376f
3 changed files with 4 additions and 4 deletions

4
db.go
View File

@ -9,7 +9,7 @@ import (
"time" "time"
) )
type Migrations struct { type migrations struct {
name string name string
query string query string
} }
@ -34,7 +34,7 @@ func (t *LibSqlDB) setupMigrations() error {
return err return err
} }
migration := Migrations{ migration := migrations{
name: filepath.Base(path), name: filepath.Base(path),
query: string(content), query: string(content),
} }

View File

@ -24,7 +24,7 @@ type LibSqlDB struct {
readYourWrites *bool // only used for embedded replica readYourWrites *bool // only used for embedded replica
useMigrations bool useMigrations bool
migrationFiles embed.FS migrationFiles embed.FS
migrations []Migrations migrations []migrations
} }
func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) { func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) {

View File

@ -23,7 +23,7 @@ type LibSqlDB struct {
readYourWrites *bool // only used for embedded replica readYourWrites *bool // only used for embedded replica
useMigrations bool useMigrations bool
migrationFiles embed.FS migrationFiles embed.FS
migrations []Migrations migrations []migrations
} }
func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) { func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) {