This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 4e580418f32cf0f659e28a3f397b1af273abc77e
tree f859ec5a6a43aada58af4236e46fc0da23b6c05b
parent ee80ced5d1ff4ce3d28dcc8fac48872258c55962
tree f859ec5a6a43aada58af4236e46fc0da23b6c05b
parent ee80ced5d1ff4ce3d28dcc8fac48872258c55962
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue May 06 22:43:15 -0700 2008 | [drnic] |
| |
History.txt | Tue May 06 22:43:15 -0700 2008 | [drnic] |
| |
License.txt | Tue May 06 22:33:35 -0700 2008 | [drnic] |
| |
README.markdown | Tue May 06 22:57:54 -0700 2008 | [drnic] |
| |
Rakefile | Tue May 06 22:43:15 -0700 2008 | [drnic] |
| |
config/ | Tue May 06 22:33:35 -0700 2008 | [drnic] |
| |
lib/ | Tue May 06 22:33:35 -0700 2008 | [drnic] |
| |
script/ | Tue May 06 22:33:35 -0700 2008 | [drnic] |
| |
src/ | Tue May 06 22:43:15 -0700 2008 | [drnic] |
| |
tasks/ | Tue May 06 22:33:35 -0700 2008 | [drnic] |
| |
test/ | Tue May 06 22:33:35 -0700 2008 | [drnic] |
README.markdown
Google Gears Mechanizations
This JavaScript project provides an ActiveRecord-esque API for the Google Gears SQLite database.
Usage
To manage database schema migrations:
var migrations = [
{ // version 0
up: function(c) {
c.createTable('people', {id: 'INTEGER', name: 'TEXT'});
},
down: function(c) {
c.dropTable('people');
}
},
{ // version 1
up: function(c) {
c.createTable('addresses', {id: 'INTEGER', person_id: 'INTEGER', address: 'TEXT});
},
down: function(c) {
c.dropTable('addresses');
}
}
];
connector = new GearsConnector('test');
connector.migrate(migrations, 1);
To perform CRUD:
connector.insert('people', [1, 'Dr Nic']);
connector.insert('people', [2, 'Ravi Chodavarapu']);
var person = connector.select('people', {where: ['id=?', 1]});
More information
Maintainer
Dr Nic Williams, http://drnicwilliams.com, drnicwilliams@gmail.com
Original author
Ravi Chodavarapu, http://ravichodavarapu.blogspot.com




