Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/ent/ent
/ appendArg
Method
appendArg
dialect/sql/sqljson/dialect.go:66–73 ·
view source on GitHub ↗
(b *sql.Builder, v any)
Source
from the content-addressed store, hash-verified
64
}
65
66
func
(d *sqlite) appendArg(b *sql.Builder, v any) {
67
switch
{
68
case
!isPrimitive(v):
69
b.Argf(
"JSON(?)"
, marshalArg(v))
70
default:
71
b.Arg(v)
72
}
73
}
74
75
type
mysql
struct
{}
76
Callers
1
Append
Method · 0.95
Calls
4
isPrimitive
Function · 0.85
marshalArg
Function · 0.85
Argf
Method · 0.80
Arg
Method · 0.80
Tested by
no test coverage detected