Class: Og

Inherits:
Object show all
Defined in:
lib/og.rb,
lib/og/meta.rb,
lib/og/mock.rb,
lib/og/adapter.rb,
lib/og/backend.rb,
lib/og/enchant.rb,
lib/og/database.rb,
lib/og/connection.rb,
lib/og/adapters/psql.rb,
lib/og/adapters/mysql.rb,
lib/og/adapters/sqlite.rb

Overview

© 2004-2005 Navel, all rights reserved. $Id: connection.rb 254 2005-02-10 12:44:05Z gmosx $

Defined Under Namespace

Modules: Enchant, MetaLanguage, MetaUtils, Unmanageable Classes: Adapter, Backend, Connection, Database, MockDatabase, MysqlAdapter, MysqlConnection, PsqlAdapter, PsqlConnection, SqliteAdapter, SqliteConnection

Constant Summary collapse

Name =

The name.

'ObjectGraph'
Version =

The version.

'0.10.0'
LibPath =

Library path.

File.dirname(__FILE__)

Class Method Summary collapse

Class Method Details

.adapterObject

The adapter of the active database.



150
151
152
# File 'lib/og.rb', line 150

def self.adapter
	@@db.adapter
end

.use(db) ⇒ Object

Set the active database.



143
144
145
146
# File 'lib/og.rb', line 143

def self.use(db)
	@@db = db
	@@db.get_connection
end