# README
molecule/rdb
In molecule, a table and its associated actions build up an atom. Atoms and relationships between them build up a molecule. While traditional REST acts on individual table, molecule acts on whole RDB across all tables.
Molecule Creation
This package generates automatically a simple molecule from relational database, using meta data such as primary keys, foreign keys, and auto increment fields etc.
Currently only the following three database types are supported: godbi.Postgres, godbi.MySQL and godbi.SQLite.
func NewMolecule(db *sql.DB, driver godbi.DBType, dbName string) (*godbi.Molecule, error)
where db is the standard database handler, driver the DBType defined in Molecule and dbName the name of database.
After molecule is created, we can run RESTful actions on multiple tables at once.
# Functions
NewMolecule returns a molecule of database using primary keys, foreign keys and auto increment numbers etc.