A specialization of a Store. Typically provides the interface to an RDBMS System.

The following adapters are available for the SQL Store:

  • Mysql
  • PostgreSQL
  • SQLite3
  • Kirbybase
Methods
Public Class methods
for_name(name)

Load the store for the given name.

Examples:

  Adapter.for_name(:mysql)
  Adapter.for_name(:postgresql)
    # File lib/og/adapter.rb, line 24
24:   def self.for_name name
25:     Logger.info "Og uses the #{name.to_s.capitalize} store."
26:     name = :postgresql if name.to_s == 'psql'
27:     require("og/adapter/" + name.to_s)
28:     return Og.const_get("#{name.to_s.capitalize}Adapter")
29:   end