Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jackc/pgx
/ NewQuery
Function
NewQuery
internal/sanitize/sanitize.go:109–114 ·
view source on GitHub ↗
(sql string)
Source
from the content-addressed store, hash-verified
107
}
108
109
func
NewQuery(sql string) (*Query, error) {
110
query := &Query{}
111
query.init(sql)
112
113
return
query, nil
114
}
115
116
var
sqlLexerPool = &pool[*sqlLexer]{
117
new:
func
() *sqlLexer {
Callers
3
TestNewQuery
Function · 0.92
FuzzNewQuery
Function · 0.92
BenchmarkSanitize
Function · 0.92
Calls
1
init
Method · 0.95
Tested by
3
TestNewQuery
Function · 0.74
FuzzNewQuery
Function · 0.74
BenchmarkSanitize
Function · 0.74