github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

aeden / activewarehouse

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 103
    • 12
  • Source
  • Commits
  • Network (12)
  • Issues (0)
  • Downloads (0)
  • Wiki (3)
  • Graphs
  • Tree: 7f5dc44

click here to add a description

click here to add a homepage

  • Branches (2)
    • master
    • refactor_tests
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

ActiveWarehouse for Rails - Implement data warehouses with Rails — Read more

  cancel

http://activewarehouse.rubyforge.org/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

first pass at removing dependency on ActiveRecord in the reports 
Anthony Eden (author)
Mon Nov 24 18:28:32 -0800 2008
commit  7f5dc44194bbe4b5272043c21b62dcfe78681cff
tree    4f621548124ca6d83274df382a2d379d12169767
parent  b549afd9b646a93a32af235ef61ba4e3c94eb1eb
activewarehouse / README README
100644 99 lines (65 sloc) 3.026 kb
edit raw blame history
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
== ActiveWarehouse
 
The ActiveWarehouse library provides classes and functions which help with
building Data Warehouses using Rails. It can be installed either as a plugin
or as a Gem.
 
To install as a plugin just use:
 
  script/plugin install --force svn://rubyforge.org/var/svn/activewarehouse/activewarehouse/trunk
  
To get the latest edge version.
 
To install as a Gem, use:
 
  gem install activewarehouse
 
On *nix you will need to run this command as root or better yet, using sudo.
 
Next, you will need to freeze or link the Gem to your Rails app. I prefer using
the gemsonrails project:
 
  gem install gemsonrails
 
And then in your Rails app:
 
  rake gems:link GEM=activewarehouse
  
It is possible that freezing the Gem to the Rails app may not work at all times. It is most often best to install as a plugin.
 
== Generators
 
ActiveWarehouse comes with several generators
 
  script/generate fact Sales
  script/generate fact sales
 
    Creates a SalesFact class and a sales_facts table.
 
  script/generate dimension Region
  script/generate dimension region
   
    Creates a RegionDimension class and a region_dimension table.
 
  script/generate cube RegionalSales
  script/generate cube regional_sales
 
    Creates a RegionalSalesCube class.
   
  script/generate bridge CustomerHierarchy
  script/generate bridge customer_hierarchy
   
    Creates a CustomerHierarchyBridge class.
   
  script/generate dimension_view OrderDate Date
  script/generate dimension_view order_date date
  
    Creates an OrderDateDimension class which is represented by a view on top
    of the DateDimension.
   
The rules for naming are as follows:
 
Facts:
  Fact classes and tables follow the typical Rails rules: classes are singular
  and tables are pluralized.
  Both the class and table name are suffixed by "_fact".
Dimensions:
  Dimension classes and tables are both singular.
  Both the class name and the table name are suffixed by "_dimension".
Cube:
  Cube class is singular. If a cube table is created it will also be singular.
Bridge:
  Bridge classes and tables are both singular.
  Both the class name and the table name are suffixed by "_bridge".
Dimension View:
  Dimension View classes are singular. The underlying data structure is a view
  on top of an existing dimension.
  Both the class name and the view name are suffixed by "_dimension"
  
== ETL
 
The ActiveWarehouse plugin does not directly handle Extract-Transform-Load
processes, however the ActiveWarehouse ETL gem (installed separately) can help.
To install it use:
 
  gem install activewarehouse-etl
 
Once again you should run this command as root or using sudo.
  
More information on the ETL process can be found at
http://activewarehouse.rubyforge.org/etl
 
== Tutorial
 
A tutorial for ActiveWarehouse is available online at
http://anthonyeden.com/2006/12/20/activewarehouse-example-with-rails-svn-logs
(Note that is is out of date.)
 
You can also get a demo from the ActiveWarehouse subversion repository. Look in
the SVN_ROOT/demo directory.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server