Class | Og::PsqlBackend |
In: |
lib/og/backends/psql.rb
|
Parent: | Backend |
Implements a PostgreSQL powered backend. This backend is compatible with Michael Neumann‘s postgres-pr pure ruby driver.
TYPEMAP | = | { Integer => 'integer', Fixnum => 'integer', Float => 'float', String => 'text', Time => 'timestamp', Date => 'date', TrueClass => 'boolean', Object => 'text', Array => 'text', Hash => 'text' | A mapping between Ruby and SQL types. |
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.