| Module MySQLSerializable |
|
| Methods |
| Included modules |
| Public Instance methods |
| sql_quote_name(name) |
Quote sql table and column names.
| sql_set_typecast_value(coltype, key, val) |
Set the attributes with the values given, and use the coltype to "typecast" it correctly.
| sql_create(dbi) |
Generate and execute sql to create tables for this class.
| Note that MySQL imposes sevaral limitations on us: | If a primary key is a string then it cannot exeed 255 bytes in size.
Instance variable names cannot exeed 255 characters. |
| sql_initdb(dbi) |
Generate and execute sql to make basic tables in database that are needed to maintain state and serialize "basic" data types.
| Private Instance methods |
| sql_quote_str(str) |
Quote and escape sql strings.
| sql_true() |
How is true represented in the database?
| sql_quote_date(date) |
| sql_quote_time(time) |