![]() |
Qore Sqlite3SqlUtil Module Reference 1.1
|
represents a Sqlite3-specific index More...
Public Member Functions | |
| constructor (string name, bool unique, hash< auto > cols, *hash< string, string > collations) | |
| creates the object from the arguments | |
| list< string > | getColumnCollationList () |
| Returns a list of column name with COLLATE argument per column, if appropriate. | |
| string | getCreateSql (string table_name, *hash< auto > opt) |
| returns a string that can be used to create the index in the database | |
| string | getDropSql (string table_name) |
| returns a string that can be used to drop the index from the table | |
| string | getRenameSql (string table_name, string new_name) |
| returns a string that can be used to rename the index in the database | |
Protected Member Functions | |
| bool | equalImpl (AbstractIndex ix) |
| returns True if the argument is equal to the current index, False if not | |
represents a Sqlite3-specific index
| string Sqlite3SqlUtil::Sqlite3Index::getRenameSql | ( | string | table_name, |
| string | new_name ) |
returns a string that can be used to rename the index in the database
however sqlite3 does not support renaming indexes, so the index is dropped and recreated