MCPcopy Create free account
hub / github.com/kataras/iris / mustCreateExtensions

Function mustCreateExtensions

_examples/database/sqlx/main.go:70–76  ·  view source on GitHub ↗
(ctx context.Context, db *sql.DB)

Source from the content-addressed store, hash-verified

68}
69
70func 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
78func mustCreateTables(ctx context.Context, db *sql.DB) {
79 query := `CREATE TABLE IF NOT EXISTS "events" (

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…