Statement
sqlite3 :: StatementRow :: defaultinit
sqlite3 :: StatementRow :: map
Maps the column name to its valuesqlite3 :: StatementRow :: statement=
Statement linked toself
sqlite3 $ StatementRow :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
sqlite3 :: StatementRow :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
sqlite3 :: StatementRow :: map
Maps the column name to its valuecore :: Object :: output_class_name
Display class name on stdout (debug only).sqlite3 :: StatementRow :: statement=
Statement linked toself
# A row from a `Statement`
class StatementRow
# Statement linked to `self`
var statement: Statement
# Maps the column name to its value
fun map: Map[String, nullable Sqlite3Data]
do
var ret = new ArrayMap[String, nullable Sqlite3Data]
for i in [0 .. length[ do
var st = self[i]
ret[st.name] = st.value
end
return ret
end
# Number of entries in this row
#
# require: `self.statement.is_open`
fun length: Int
do
assert statement_closed: statement.is_open
return statement.native_statement.column_count
end
# Returns the `i`th entry on this row
fun [](i: Int): StatementEntry do return new StatementEntry(statement, i)
end
lib/sqlite3/sqlite3.nit:153,1--181,3