|
|
A help class to parse SQL for input/output bindings and if available also pop up a dialog and ask for values. Also maintains an internal cache of old values.
toQList getParam (toConnection &conn,QWidget *parent,QString &str)
| getParam |
[static]
Get parameters for specified SQL string.
Parameters:
conn | Connection to get binds for. |
parent | Parent widget if dialog is needed. |
str | SQL to parse for bindings. Observe that this string can be changed to further declare the binds. |
Returns: Returns a list of values to feed into the query.
void setDefault (toConnection &conn,const QString &name,const QString &val)
| setDefault |
[static]
Specify a default value for the cache. This can not overwrite a manually specified value by the user.
Parameters:
conn | Connection to get binds for. |
name | Name of the bind variable. |
val | Value of the bind variable. |