Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
447
func
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
QueryConn
Method · 0.70
Calls
1
TrimStatement
Function · 0.92
Tested by
no test coverage detected