Skip to content

calebsevern/Flour

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Flour

Flour is a database and backend visualization tool.

Flour project data view


####Plans

[✓] Port: Frontend to AngularJS < 2

[✓] Port: DB to SQLite

[✓] Port: Backend to Node.js

[ ] Move this section to issues or JIRA

[ ] User object + permissions

[ ] Better error handling

[ ] Project (database) creation

[ ] Object (table) creation


The provided JS wrapper lets you use client-side JS to manage a Flour backend:

Queries

var query = new Query("Shirt");
query.equalTo("size", "L");
query.equalTo("color", "red");
query.find(function(shirts) {
  //You've got an array of some large red shirts.
});

Lookups by ID are simpler, if you have one handy.

var query = new Query("User");
query.get("154359187256", function(user) {
	//Single object returned.
});

Creating objects

var query = new Query("Recipe");
query.create(function(recipe) {
  //New object available - all it's got is a unique ID.
});

Deleting objects

object.destroy(function(message) {
  //All done.
});

Updating objects

Updates are simple on new or queried objects. Let's take a new object for example:

var query = new Query("Cat");
query.create(function(cat) {
	cat.set("name", "Sprinkles");
	cat.set("breed", "Domestic Shorthair");
	cat.save(function(cat) {
	  //New object ready
	});
});

About

Client-side JS library to manage SQL backends

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published