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

Function getStatementWithResultLimit

backend/plugin/db/redshift/redshift.go:447–449  ·  view source on GitHub ↗
(stmt string, limit int)

Source from the content-addressed store, hash-verified

445}
446
447func getStatementWithResultLimit(stmt string, limit int) string {
448 return fmt.Sprintf("WITH result AS (%s) SELECT * FROM result LIMIT %d;", util.TrimStatement(stmt), limit)
449}

Callers 1

QueryConnMethod · 0.70

Calls 1

TrimStatementFunction · 0.92

Tested by

no test coverage detected