-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
52 lines (40 loc) · 1.59 KB
/
README
File metadata and controls
52 lines (40 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
NOTE: This code is now bundled in HyperRecord (as of version 0.2.0), so you
don't need to install it separately anymore.
hypertable_adapter
==================
Hypertable Adapter allows ActiveRecord to communicate with Hypertable.
In ActiveRecord, each supported data store has an adapter that implements
functionality specific to that store as well as providing metadata for
data held within the store. Features implemented by adapters typically
include:
* connection handling
* list of tables
* list of columns per data
* low-level support for qualified columns
* statement execution (selects, writes, etc.)
* latency measurement
* fixture handling
The adapter provides low-level integration between Hypertable and
ActiveRecord. A separate library called HyperRecord is required to fully
integrate the two.
Basic Hypertable Adapter Configuration
======================================
Before using the adapter, you must declare a hypertable connection in
config/database.yml. The adapter communicates with Hypertable using a
Thrift Broker (see http://hypertable.org/documentation.html for details)
which is part of the main Hypertable installation. The connection record
in config/database.yml must identify the host name and the port used by
the Thrift Broker:
hypertable:
adapter: hypertable
host: localhost
port: 38080
Or, if you need to do it in code outside of database.yml:
ActiveRecord::Base.configurations['hypertable'] = {
'adapter' => 'hypertable',
'host' => 'localhost',
'port' => '38080'
}
COPYRIGHT
=========
Copyright (c) 2008 tylerkovacs. See LICENSE for details.