(ctx context.Context, db *sql.DB)
| 68 | } |
| 69 | |
| 70 | func mustCreateExtensions(ctx context.Context, db *sql.DB) { |
| 71 | query := `CREATE EXTENSION IF NOT EXISTS pgcrypto;` |
| 72 | _, err := db.ExecContext(ctx, query) |
| 73 | if err != nil { |
| 74 | panic(err) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func mustCreateTables(ctx context.Context, db *sql.DB) { |
| 79 | query := `CREATE TABLE IF NOT EXISTS "events" ( |
no outgoing calls
no test coverage detected
searching dependent graphs…