MCPcopy
hub / github.com/jackc/pgx / convertNamedArguments

Function convertNamedArguments

stdlib/sql.go:892–900  ·  view source on GitHub ↗
(args []any, argsV []driver.NamedValue)

Source from the content-addressed store, hash-verified

890}
891
892func convertNamedArguments(args []any, argsV []driver.NamedValue) {
893 for i, v := range argsV {
894 if v.Value != nil {
895 args[i] = v.Value.(any)
896 } else {
897 args[i] = nil
898 }
899 }
900}
901
902type wrapTx struct {
903 ctx context.Context

Callers 2

ExecContextMethod · 0.85
QueryContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected