Something went wrong. Try again.
Being a Ticketbot engine for discord writen in Go
Something went wrong. Try again.
12345678910111213141516171819202122package postgres
import ( "context" _ "embed" "fmt"
"github.com/jackc/pgx/v5/pgxpool")
//go:embed schema.sqlvar schema string
func Schema() string { return schema }
func Migrate(ctx context.Context, pool *pgxpool.Pool) error { if _, err := pool.Exec(ctx, schema); err != nil { return fmt.Errorf("ticketbot schema: %w", err) } return nil}