MCPcopy Create free account
hub / github.com/actiontech/dtle / buildQueryOldWay

Method buildQueryOldWay

driver/mysql/dumper.go:95–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (d *dumper) buildQueryOldWay() string {
96 return fmt.Sprintf(`SELECT %s FROM %s.%s where (%s) LIMIT %d OFFSET %d`,
97 d.Columns,
98 d.EscapedTableSchema,
99 d.EscapedTableName,
100 d.Table.GetWhere(),
101 d.ChunkSize,
102 d.Iteration*d.ChunkSize,
103 )
104}
105
106func (d *dumper) buildQueryOnUniqueKey() string {
107 nCol := len(d.Table.UseUniqueKey.Columns.Columns)

Callers 1

getChunkDataMethod · 0.95

Calls 1

GetWhereMethod · 0.80

Tested by

no test coverage detected