MCPcopy Create free account
hub / github.com/devfullcycle/goexpert / NewCourseDB

Function NewCourseDB

17-SQLC/cmd/runSQLCTX/main.go:18–23  ·  view source on GitHub ↗
(dbConn *sql.DB)

Source from the content-addressed store, hash-verified

16}
17
18func NewCourseDB(dbConn *sql.DB) *CourseDB {
19 return &CourseDB{
20 dbConn: dbConn,
21 Queries: db.New(dbConn),
22 }
23}
24
25type CourseParams struct {
26 ID string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected