Skip to content

Commit

Permalink
fix rename in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
muir committed Jul 31, 2024
1 parent df69f4c commit e680efc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ schema. Libschema hopes to start solving this problem.
Migrations are registered:

```go
schema := libschema.NewSchema(ctx, libschema.Options{})
schema := libschema.New(ctx, libschema.Options{})

sqlDB, err := sql.Open("postgres", "....")

database, err := lspostgres.New(logger, "main-db", schema, sqlDB)
database, err := lspostgres.New(logger, "main-db", schema, sqlDB)
// or
database, singlestoreHelper, err := lssinglestore.New(logger, "main-db", schema, sqlDB)
// or
database, mysqlHelper, err := lssinglestore.New(logger, "main-db", schema, sqlDB)

database.Migrations("MyLibrary",
lspostgres.Script("createUserTable", `
Expand Down

0 comments on commit e680efc

Please sign in to comment.