+
Point of view
All features
deferred class PREPARED_COMMAND
Summary
copyright
(C) 2006 Paolo Redaelli
license
LGPL v2 or later
date
$Date:$
revision
$Revision:$
Direct parents
Inherit list: PREPARED_STATEMENT
Known children
Inherit list: SQLITE_PREPARED_COMMAND
Overview
Features
{ANY}
Creation
{}
{ANY}
State Status reporting for the prepared statement. The actual implementation of those features are backend depending
{ANY}
last_affected_rows: INTEGER_32
deferred function
{ANY}
require success: last_exec_success
make (a_database: DATABASE, some_sql: ABSTRACT_STRING)
deferred procedure
{}
Makes a prepared command from some_sql
require
  • database_not_void: a_database /= Void
  • connected_database: a_database.is_connected
  • sql_not_void: some_sql /= Void
parameter_count: INTEGER_32
deferred function
{ANY}
The number of paramenters to be provided to execute the statement.
This number depends on some_sql passed to make feature.
are_valid_parameters (some_parameters: TRAVERSABLE[VARIANT]): BOOLEAN
effective function
{ANY}
Are some_parameters valid for the current statement?
require
is_valid_parameter (a_parameter: VARIANT, an_index: INTEGER_32): BOOLEAN
deferred function
{ANY}
Is a_parameter placeble in statement's an_index-th parameter?
require
execute (some_parameters: TRAVERSABLE[VARIANT])
deferred procedure
{ANY}
Execute the current SQL statment with some_parameters and set last_exec_success
require
is_prepared: BOOLEAN
deferred function
{ANY}
is_stepped: BOOLEAN
deferred function
{ANY}
is_failed: BOOLEAN
deferred function
{ANY}
last_exec_success: BOOLEAN
deferred function
{ANY}
state: INTEGER_32
writable attribute
{ANY}