github.com/jackc/pgx/v5/pgconn.StatementDescription.SQL (field)
22 uses
github.com/jackc/pgx/v5/pgconn (current package)
pgconn.go#L1004: SQL string
pgconn.go#L1043: psd := &StatementDescription{Name: name, SQL: sql}
github.com/jackc/pgx/v5
conn.go#L335: if sd, ok = c.preparedStatements[name]; ok && sd.SQL == sql {
conn.go#L611: result := c.pgConn.ExecParams(ctx, sd.SQL, c.eqb.ParamValues, sd.ParamOIDs, c.eqb.ParamFormats, c.eqb.ResultFormats).Read()
conn.go#L835: rows.sql = sd.SQL
conn.go#L1115: SQL: bi.SQL,
conn.go#L1117: distinctNewQueriesIdxMap[sd.SQL] = len(distinctNewQueries)
conn.go#L1146: SQL: bi.SQL,
conn.go#L1148: distinctNewQueriesIdxMap[sd.SQL] = len(distinctNewQueries)
conn.go#L1169: SQL: bi.SQL,
conn.go#L1171: distinctNewQueriesIdxMap[sd.SQL] = len(distinctNewQueries)
conn.go#L1193: pipeline.SendPrepare(sd.Name, sd.SQL, nil)
conn.go#L1208: sdCache.Invalidate(sd.SQL)
conn.go#L1221: return newErrPreprocessingBatch("prepare", sd.SQL, err)
conn.go#L1260: pipeline.SendQueryParams(bi.sd.SQL, c.eqb.ParamValues, bi.sd.ParamOIDs, c.eqb.ParamFormats, c.eqb.ResultFormats)
github.com/jackc/pgx/v5/internal/stmtcache
lru_cache.go#L57: if sd.SQL == "" {
lru_cache.go#L61: if _, present := c.m[sd.SQL]; present {
lru_cache.go#L66: if _, invalidated := c.invalidSet[sd.SQL]; invalidated {
lru_cache.go#L77: c.m[sd.SQL] = node
lru_cache.go#L100: c.invalidSet[node.sd.SQL] = struct{}{}
lru_cache.go#L140: c.invalidSet[node.sd.SQL] = struct{}{}
lru_cache.go#L141: delete(c.m, node.sd.SQL)