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")
}Вывод
ok
pub(api) fn execute(sql: str) -> () | DbError dbС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
sql | str |
Возвращает
()
Ошибки
DbError@error
Эффекты
db
Определено в: std/orm/orm.oxl:580