MCPcopy
hub / github.com/rqlite/rqlite / QueryStringStmt

Method QueryStringStmt

db/db.go:1291–1300  ·  view source on GitHub ↗

QueryStringStmt executes a single query that return rows, but don't modify database.

(query string)

Source from the content-addressed store, hash-verified

1289
1290// QueryStringStmt executes a single query that return rows, but don't modify database.
1291func (db *DB) QueryStringStmt(query string) ([]*command.QueryRows, error) {
1292 r := &command.Request{
1293 Statements: []*command.Statement{
1294 {
1295 Sql: query,
1296 },
1297 },
1298 }
1299 return db.Query(r, false)
1300}
1301
1302// QueryStringStmtWithTimeout executes a single query that return rows, but don't modify database.
1303// It also sets a timeout for the query.

Callers 15

SizeMethod · 0.95
IntegrityCheckMethod · 0.95
CompileOptionsMethod · 0.95
Test_SwapSuccessFunction · 0.45
Test_SwapSuccess_DriverFunction · 0.45
Test_CommitHook_RollbackFunction · 0.45
Test_DBVacuumFunction · 0.45
Test_DBVacuumIntoFunction · 0.45
Test_TableCreationFunction · 0.45
Test_QueryReadOnlyFunction · 0.45
Test_DBOptimizeFunction · 0.45

Calls 1

QueryMethod · 0.95

Tested by 15

Test_SwapSuccessFunction · 0.36
Test_SwapSuccess_DriverFunction · 0.36
Test_CommitHook_RollbackFunction · 0.36
Test_DBVacuumFunction · 0.36
Test_DBVacuumIntoFunction · 0.36
Test_TableCreationFunction · 0.36
Test_QueryReadOnlyFunction · 0.36
Test_DBOptimizeFunction · 0.36
Test_ConcurrentQueriesFunction · 0.36
Test_SQLForceQueryFunction · 0.36
Test_SimpleTransactionFunction · 0.36