batman
This commit is contained in:
commit
682f25edcd
19 changed files with 1907 additions and 0 deletions
15
db/util.go
Normal file
15
db/util.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package db
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
// InitSchema initializes the database schema
|
||||
func InitSchema(db *sql.DB) error {
|
||||
// Create a new Queries instance
|
||||
q := New(db)
|
||||
|
||||
// Execute the initialization query
|
||||
return q.InitSchema(context.Background())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue