| Class | Og::Database |
| In: |
lib/og.rb
|
| Parent: | Object |
| save | -> | << |
| save | -> | put |
| load | -> | get |
| create_db! | -> | create! |
| drop_db! | -> | drop! |
| config | [RW] | hash of configuration options. |
| connection_pool | [RW] | Pool of connections to the backend. |
| managed_classes | [RW] | Managed classes. |
Utility method, automatically restores a connection to the pool.
Get a connection from the pool to access the database. Stores the connection in a thread-local variable.