Inheritance diagram for OpenSim::Data::SQLite::SQLiteUtil:

Static Public Member Functions | |
| static void | createCol (DataTable dt, string name, Type type) |
| static SqliteCommand | createInsertCommand (string table, DataTable dt) |
| Create an insert command. | |
| static SqliteCommand | createUpdateCommand (string table, string pk, DataTable dt) |
| create an update command | |
| static string | defineTable (DataTable dt) |
| static SqliteParameter | createSqliteParameter (string name, Type type) |
| This is a convenience function that collapses 5 repetitive lines for defining SqliteParameters to 2 parameters: column name and database type. | |
| static DbType | dbtypeFromType (Type type) |
| Type conversion function. | |
| static string | sqliteType (Type type) |
| static void OpenSim::Data::SQLite::SQLiteUtil::createCol | ( | DataTable | dt, | |
| string | name, | |||
| Type | type | |||
| ) | [inline, static] |
| dt | ||
| name | ||
| type |
| static SqliteCommand OpenSim::Data::SQLite::SQLiteUtil::createInsertCommand | ( | string | table, | |
| DataTable | dt | |||
| ) | [inline, static] |
Create an insert command.
| table | table name | |
| dt | data table |
This is subtle enough to deserve some commentary. Instead of doing *lots* and *lots of hardcoded strings for database definitions we'll use the fact that realistically all insert statements look like "insert into A(b, c) values(:b, :c) on the parameterized query front. If we just have a list of b, c, etc... we can generate these strings instead of typing them out.
| static SqliteCommand OpenSim::Data::SQLite::SQLiteUtil::createUpdateCommand | ( | string | table, | |
| string | pk, | |||
| DataTable | dt | |||
| ) | [inline, static] |
create an update command
| table | table name | |
| pk | ||
| dt |
| static string OpenSim::Data::SQLite::SQLiteUtil::defineTable | ( | DataTable | dt | ) | [inline, static] |
| static SqliteParameter OpenSim::Data::SQLite::SQLiteUtil::createSqliteParameter | ( | string | name, | |
| Type | type | |||
| ) | [inline, static] |
This is a convenience function that collapses 5 repetitive lines for defining SqliteParameters to 2 parameters: column name and database type.
It assumes certain conventions like :param as the param name to replace in parametrized queries, and that source version is always current version, both of which are fine for us.
/summary>
| name | ||
| type |
| static DbType OpenSim::Data::SQLite::SQLiteUtil::dbtypeFromType | ( | Type | type | ) | [inline, static] |
Type conversion function.
| type | a type |
| static string OpenSim::Data::SQLite::SQLiteUtil::sqliteType | ( | Type | type | ) | [inline, static] |
| type | a Type |
1.5.1