Get the value of this entry according to its Sqlite type

require: self.statement.is_open

Property definitions

sqlite3 $ StatementEntry :: value
	# Get the value of this entry according to its Sqlite type
	#
	# require: `self.statement.is_open`
	fun value: nullable Sqlite3Data
	do
		assert statement_closed: statement.is_open

		var data_type = statement.native_statement.column_type(index)
		if data_type.is_integer then return to_i
		if data_type.is_float then return to_f
		if data_type.is_blob then return to_blob
		if data_type.is_null then return null
		if data_type.is_text then return to_s
		abort
	end
lib/sqlite3/sqlite3.nit:201,2--215,4