MCPcopy Create free account
hub / github.com/bytebase/bytebase / Where

Method Where

backend/common/qb/qb.go:138–140  ·  view source on GitHub ↗

Where adds a WHERE clause.

(text string, params ...any)

Source from the content-addressed store, hash-verified

136
137// Where adds a WHERE clause.
138func (q *Query) Where(text string, params ...any) *Query {
139 return q.Join(" WHERE ", text, params...)
140}
141
142// Len returns the number of parts in the query.
143func (q *Query) Len() int {

Callers 15

TestQuery_WithParametersFunction · 0.80
TestQuery_AndOrFunction · 0.80
TestQuery_NoParametersFunction · 0.80
TestQuery_ArrayParameterFunction · 0.80
TestQuery_MultilineSQLFunction · 0.80
TestQuery_ChainedCallsFunction · 0.80

Calls 1

JoinMethod · 0.95

Tested by 15

TestQuery_WithParametersFunction · 0.64
TestQuery_AndOrFunction · 0.64
TestQuery_NoParametersFunction · 0.64
TestQuery_ArrayParameterFunction · 0.64
TestQuery_MultilineSQLFunction · 0.64
TestQuery_ChainedCallsFunction · 0.64