MCPcopy
hub / github.com/rqlite/rqlite / ExecuteStringStmt

Method ExecuteStringStmt

db/db.go:1099–1108  ·  view source on GitHub ↗

ExecuteStringStmt executes a single query that modifies the database. This is primarily a convenience function.

(query string)

Source from the content-addressed store, hash-verified

1097// ExecuteStringStmt executes a single query that modifies the database. This is
1098// primarily a convenience function.
1099func (db *DB) ExecuteStringStmt(query string) ([]*command.ExecuteQueryResponse, error) {
1100 r := &command.Request{
1101 Statements: []*command.Statement{
1102 {
1103 Sql: query,
1104 },
1105 },
1106 }
1107 return db.Execute(r, false)
1108}
1109
1110// Execute executes queries that modify the database.
1111func (db *DB) Execute(req *command.Request, xTime bool) ([]*command.ExecuteQueryResponse, error) {

Callers 15

Test_CommitHook_RollbackFunction · 0.80
Test_DBVacuumFunction · 0.80
Test_DBVacuumIntoFunction · 0.80
BackupMethod · 0.80
CopyMethod · 0.80
Test_TableCreationFunction · 0.80
Test_DBSumsFunction · 0.80

Calls 1

ExecuteMethod · 0.95

Tested by 15

Test_CommitHook_RollbackFunction · 0.64
Test_DBVacuumFunction · 0.64
Test_DBVacuumIntoFunction · 0.64
Test_TableCreationFunction · 0.64
Test_DBSumsFunction · 0.64
Test_DBLastModifiedFunction · 0.64
Test_DBOptimizeFunction · 0.64