Class | Og::MysqlBackend |
In: |
lib/og/backends/mysql.rb
|
Parent: | Og::Backend |
Implements a MySQL powered backend.
TYPEMAP | = | { Integer => 'integer', Fixnum => 'integer', Float => 'float', String => 'text', Time => 'timestamp', Date => 'date', TrueClass => 'tinyint', Object => 'text', Array => 'text', Hash => 'text' | A mapping between Ruby and SQL types. |
Returns the props that will be included in the insert query. The oid property is rejected because it is mapped to an AUTO_INCREMENT column.
Return an evaluator for reading the property. No need to optimize this, used only to precalculate code.
Return an sql string evaluator for the property. No need to optimize this, used only to precalculate code. YAML is used to store general Ruby objects to be more portable.
FIXME: add extra handling for float.