From 15a59a376f7d2df91762592ed99a96fb97b3ea47 Mon Sep 17 00:00:00 2001 From: Mason Payne Date: Thu, 17 Oct 2024 20:02:08 -0600 Subject: [PATCH] remove Migrations from being exported --- db.go | 4 ++-- embedded.go | 2 +- remote-only.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db.go b/db.go index f221148..a710b39 100644 --- a/db.go +++ b/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), } diff --git a/embedded.go b/embedded.go index 6bb336c..99e7b91 100644 --- a/embedded.go +++ b/embedded.go @@ -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) { diff --git a/remote-only.go b/remote-only.go index 350d453..5609191 100644 --- a/remote-only.go +++ b/remote-only.go @@ -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) {