remove Migrations from being exported
parent
97fb4e290e
commit
15a59a376f
4
db.go
4
db.go
|
@ -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),
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue