MCPcopy Index your code
hub / github.com/bytebase/bytebase / Query

Method Query

backend/generated-go/v1/sql_service_grpc.pb.go:149–149  ·  view source on GitHub ↗

Executes a read-only SQL query against a database. Permissions required: bb.databases.get

(context.Context, *QueryRequest)

Source from the content-addressed store, hash-verified

147 // Executes a read-only SQL query against a database.
148 // Permissions required: bb.databases.get
149 Query(context.Context, *QueryRequest) (*QueryResponse, error)
150 // Executes SQL with admin privileges via streaming connection.
151 // Permissions required: bb.sql.admin
152 AdminExecute(grpc.BidiStreamingServer[AdminExecuteRequest, AdminExecuteResponse]) error

Callers 15

PingMethod · 0.65
ExecuteMethod · 0.65
QueryConnMethod · 0.65
dryRunQueryMethod · 0.65
SyncDBSchemaMethod · 0.65
OpenMethod · 0.65
getForeignKeysFunction · 0.65
getSchemasMethod · 0.65
getTablesFunction · 0.65
getTableColumnsFunction · 0.65
getDatashareTablesMethod · 0.65

Implementers 1

UnimplementedSQLServiceServerbackend/generated-go/v1/sql_service_gr

Calls

no outgoing calls

Tested by 8

queryForeignTableRowsFunction · 0.52
queryColumnRowsFunction · 0.52
TestSQLQueryStopOnErrorFunction · 0.52
TestSQLReviewForMySQLFunction · 0.52
TestSensitiveDataFunction · 0.52