MCPcopy
hub / github.com/jmoiron/sqlx / NamedStmt

Struct NamedStmt

named.go:29–33  ·  view source on GitHub ↗

NamedStmt is a prepared statement that executes named queries. Prepare it how you would execute a NamedQuery, but pass in a struct or map when executing.

Source from the content-addressed store, hash-verified

27// NamedStmt is a prepared statement that executes named queries. Prepare it
28// how you would execute a NamedQuery, but pass in a struct or map when executing.
29type NamedStmt struct {
30 Params []string
31 QueryString string
32 Stmt *Stmt
33}
34
35// Close closes the named statement.
36func (n *NamedStmt) Close() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected