ExecuteStringStmt executes a single query that modifies the database. This is primarily a convenience function.
(query string)
| 1097 | // ExecuteStringStmt executes a single query that modifies the database. This is |
| 1098 | // primarily a convenience function. |
| 1099 | func (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. |
| 1111 | func (db *DB) Execute(req *command.Request, xTime bool) ([]*command.ExecuteQueryResponse, error) { |