class

Rayo::SQLite::Statement

Inherits Reference < Object

Constructors

new(database : Database, sql : String)
Source

Instance methods

bind(index : Int32, value : Int) : self
Source
bind(index : Int32, value : Nil) : self
Source
bind(index : Int32, value : String | Bytes) : self

SQLITE_STATIC: caller keeps bytes alive and unchanged until reset/rebind.

Source
close
Source
i64(index : Int32) : Int64
Source
null?(index : Int32) : Bool
Source
reset
Source
run

Steps a statement that returns no rows (BEGIN, COMMIT, an UPDATE) and resets it.

Source
step

true = row available, false = done. Views expire on step/reset/close.

Source
str(index : Int32) : Bytes
Source