MCPcopy Create free account
hub / github.com/pingcap/tidb / NewSQLBuilder

Function NewSQLBuilder

pkg/ttl/sqlbuilder/sql.go:88–92  ·  view source on GitHub ↗

NewSQLBuilder creates a new TTLSQLBuilder

(tbl *cache.PhysicalTable)

Source from the content-addressed store, hash-verified

86
87// NewSQLBuilder creates a new TTLSQLBuilder
88func NewSQLBuilder(tbl *cache.PhysicalTable) *SQLBuilder {
89 b := &SQLBuilder{tbl: tbl, state: writeBegin}
90 b.restoreCtx = format.NewRestoreCtx(format.DefaultRestoreFlags, &b.sb)
91 return b
92}
93
94// Build builds the final sql
95func (b *SQLBuilder) Build() (string, error) {

Callers 4

TestEscapeFunction · 0.92
TestSQLBuilderFunction · 0.92
buildSQLMethod · 0.85
BuildDeleteSQLFunction · 0.85

Calls 1

NewRestoreCtxFunction · 0.92

Tested by 2

TestEscapeFunction · 0.74
TestSQLBuilderFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…