remove Migrations from being exported
parent
97fb4e290e
commit
15a59a376f
4
db.go
4
db.go
|
@ -9,7 +9,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
type Migrations struct {
|
||||
type migrations struct {
|
||||
name string
|
||||
query string
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ func (t *LibSqlDB) setupMigrations() error {
|
|||
return err
|
||||
}
|
||||
|
||||
migration := Migrations{
|
||||
migration := migrations{
|
||||
name: filepath.Base(path),
|
||||
query: string(content),
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ type LibSqlDB struct {
|
|||
readYourWrites *bool // only used for embedded replica
|
||||
useMigrations bool
|
||||
migrationFiles embed.FS
|
||||
migrations []Migrations
|
||||
migrations []migrations
|
||||
}
|
||||
|
||||
func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) {
|
||||
|
|
|
@ -23,7 +23,7 @@ type LibSqlDB struct {
|
|||
readYourWrites *bool // only used for embedded replica
|
||||
useMigrations bool
|
||||
migrationFiles embed.FS
|
||||
migrations []Migrations
|
||||
migrations []migrations
|
||||
}
|
||||
|
||||
func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) {
|
||||
|
|
Loading…
Reference in New Issue