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

Method Len

backend/common/qb/qb.go:143–148  ·  view source on GitHub ↗

Len returns the number of parts in the query.

()

Source from the content-addressed store, hash-verified

141
142// Len returns the number of parts in the query.
143func (q *Query) Len() int {
144 if q == nil {
145 return 0
146 }
147 return len(q.parts)
148}
149
150// ToSQL generates PostgreSQL-compatible SQL with $1, $2, ... placeholders.
151// Returns the SQL string, parameters slice, and any error.

Calls

no outgoing calls