TableName | Table to do insert/update on. |
WhereDict | Dict containing column name / value pairs to search. |
SetDict | Dict containing column name / value pairs to write. Optional (see below). |
The SetDict argument may be omitted if the WhereDict covers all the relevant info. For instance, if entering into a table with just one column there is no point in having an additional dict.
Check this page for info about how to set up Gen for using database-related commands.
% RunSqlCreate my_table {id {integer primary key} desc text notes text}
% QQ [SqlInsertStatement my_table {desc 'one' notes 'uno'}]
% RunSqlEnter my_table {desc 'one'} {notes '1-2-3'}
% QQ [SqlSelectStatement my_table]
one 1-2-3