method Db.execute
Runs SQL that returns no rows (DDL, maintenance).
Example:
use std.orm { Db }
fn main() io, db {
let db = Db.open("sqlite::memory:")!
db.execute("create table t (x integer)")!
db.execute("insert into t values (1)")!
print("ok")
}Output
ok
pub(api) fn execute(sql: str) -> () | DbError dbSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
sql | str |
Returns
()
Errors
DbError@error
Effects
db
Defined in: std/orm/orm.oxl:580