Skip to content

About

Angular module upon Google's Lovefield relational database designated for web apps

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-lovefield

Angular module upon Google's Lovefield relational database designated for web apps

In order to set up the ngLovefield module, you need to follow these steps:

  • Inject ngLovefield module into your angular application module:
angular.module('ngLovefieldDemo', ['ngLovefield'])
  • Inject $lovefieldProvider into your config function
.config(['$lovefieldProvider', function($lovefieldProvider) {}])
  • Set up the database name, version and tables
$lovefieldProvider.setDbName('myDb');
$lovefieldProvider.setDbVersion(1);

$lovefieldProvider.setDbTables([
  {
    name: 'myTable',
    columns: [
      { name: 'id', type: 'INTEGER' },
      { name: 'text', type: 'STRING' }
    ],
    primaryKey: 'id'
  }
]);

For more examples of using ngLovefield module, look at the demo directory.

About

Angular module upon Google's Lovefield relational database designated for web apps

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages