MCPcopy
hub / github.com/dosco/graphjin / prepareQueryArgsForDB

Function prepareQueryArgsForDB

core/snowflake_bind.go:12–22  ·  view source on GitHub ↗
(dbType, query string, args []interface{})

Source from the content-addressed store, hash-verified

10)
11
12func prepareQueryArgsForDB(dbType, query string, args []interface{}) (string, []interface{}, error) {
13 if dbType != "snowflake" || len(args) == 0 {
14 return query, args, nil
15 }
16
17 q, err := inlinePositionalArgs(query, args)
18 if err != nil {
19 return "", nil, err
20 }
21 return q, nil, nil
22}
23
24func inlinePositionalArgs(query string, args []interface{}) (string, error) {
25 var b strings.Builder

Callers 7

executeMethod · 0.85
executeRoleQueryMethod · 0.85
subCheckUpdatesMethod · 0.85
subFirstQueryMethod · 0.85

Calls 1

inlinePositionalArgsFunction · 0.85

Tested by

no test coverage detected