QueryInterface Class
Returns an object that treats SQLite's inabilities to do certain queries.
Item Index
Methods
Methods
changeColumn
-
tableName
-
attributes
-
emitter
-
queryAndEmit
A wrapper that fixes SQLite's inability to change columns from existing tables. It will create a backup of the table, drop the table afterwards and create a new table with the same name but with a modified version of the respective column.
Parameters:
-
tableName
StringThe name of the table.
-
attributes
ObjectAn object with the attribute's name as key and it's options as value object.
-
emitter
CustomEventEmitterThe EventEmitter from outside.
-
queryAndEmit
FunctionThe function from outside that triggers some events to get triggered.
removeColumn
-
tableName
-
attributeName
-
emitter
-
queryAndEmit
A wrapper that fixes SQLite's inability to remove columns from existing tables. It will create a backup of the table, drop the table afterwards and create a new table with the same name but without the obsolete column.
Parameters:
-
tableName
StringThe name of the table.
-
attributeName
StringThe name of the attribute that we want to remove.
-
emitter
CustomEventEmitterThe EventEmitter from outside.
-
queryAndEmit
FunctionThe function from outside that triggers some events to get triggered.
renameColumn
-
tableName
-
attrNameBefore
-
attrNameAfter
-
emitter
-
queryAndEmit
A wrapper that fixes SQLite's inability to rename columns from existing tables. It will create a backup of the table, drop the table afterwards and create a new table with the same name but with a renamed version of the respective column.
Parameters:
-
tableName
StringThe name of the table.
-
attrNameBefore
StringThe name of the attribute before it was renamed.
-
attrNameAfter
StringThe name of the attribute after it was renamed.
-
emitter
CustomEventEmitterThe EventEmitter from outside.
-
queryAndEmit
FunctionThe function from outside that triggers some events to get triggered.