Holds the session SQLite3 COM
parameters.
Accessible as
object.Parameters.<prop_ormethod>
where object is SQLite3 COM object.
The parameters object is a typical collection plus a few members
that manage some specific features. All the elements added to this
collection are accessible in any query executed on the SQLite3 COM
object to which this Parameters object belongs. This includes views
and triggers as well. The parameters are accessed from the SQL
statements using the Parameter
function.
You can add any kind of element to the collection - string, numeric
value or object. If given element is an object it can be accessed from
the SQL statements also by using the CallObject
function. This function enables you to call arbitrary property or a
method of the element and even pass arguments to it if the method
requires such.
The main purpose of the Parameters object is to enable the
developers to set general database parameters for the current session.
Unlike the query parameters in VExecute,
CExecute and AExecute the session parameters are available
anywhere within the database. If used in a view for example they
remain transparent for that part of the application that executes
queries that use those views.
Methods and properties reference
Wherever object or db is used in the sample lines of
code below it is assumed to be a previously created SQLite3 COM
object.
Remarks:
The Parameters enable the developer to create reusable view and
triggers that depend on parameters which can be different each time
the database is used. Without them the views for instance would
always return the same result (unless the data they query has
changed) and if you want their function to depend on an application
parameter the only choice will be to abandon the view and include
the SQL as a sub-query in each statement that needs it. Obviously
this leads to huge and cumbersome SQL statements passed directly to
the Execute functions. With parameters you can design permanent
views (and triggers) which use certain session parameter(s) and
refer to them as tables in the queries executed with the Execute
methods, thus making the use of session wide parameters transparent
for the major part of the application code.
Applies to: SQLite3 COM
object
See also: SQL
functions
Supported on:
Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later
|