sqlite3 :: NativeStatement :: column_bytes
Number of bytes in the blob or string at rowi
sqlite3 :: NativeStatement :: column_int
sqlite3 :: NativeStatement :: column_type
Type of the entry at rowi
sqlite3 :: NativeStatement :: reset
Reset this statement to its original state, to be reexecutedsqlite3 $ NativeStatement :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
sqlite3 :: NativeStatement :: column_bytes
Number of bytes in the blob or string at rowi
sqlite3 :: NativeStatement :: column_int
sqlite3 :: NativeStatement :: column_type
Type of the entry at rowi
core :: Pointer :: defaultinit
core :: Object :: 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.
core :: Object :: output_class_name
Display class name on stdout (debug only).sqlite3 :: NativeStatement :: reset
Reset this statement to its original state, to be reexecuted
# A prepared statement
extern class NativeStatement `{sqlite3_stmt*`}
# Evaluate the statement
fun step: Sqlite3Code `{
return sqlite3_step(self);
`}
fun column_name(i: Int): CString `{
return (char *)sqlite3_column_name(self, i);
`}
# Number of bytes in the blob or string at row `i`
fun column_bytes(i: Int) : Int `{
return sqlite3_column_bytes(self, i);
`}
fun column_double(i: Int) : Float `{
return sqlite3_column_double(self, i);
`}
fun column_int(i: Int) : Int `{
return sqlite3_column_int(self, i);
`}
fun column_text(i: Int): CString `{
return (char *)sqlite3_column_text(self, i);
`}
# Type of the entry at row `i`
fun column_type(i: Int): DataType `{
return sqlite3_column_type(self, i);
`}
fun column_blob(i: Int): Pointer `{ return (void*)sqlite3_column_blob(self, i); `}
fun column_count: Int `{
return sqlite3_column_count(self);
`}
# Reset this statement to its original state, to be reexecuted
fun reset: Sqlite3Code `{ return sqlite3_reset(self); `}
# Delete this statement
fun finalize: Sqlite3Code `{ return sqlite3_finalize(self); `}
end
lib/sqlite3/native_sqlite3.nit:90,1--135,3