Class: Table
Defined in: | src/table.coffee |
Overview
A representation of a single database table. It includes information on the fields that this table stores, as well as the relationships between it and other tables, either as N->1 (references) or N->many (collections).
Instance Method Summary
- - (void) constructor() Constructor Constructor.
- - (void) toString() Stringification.
- - (Array<String>) parents() Get the names of all the classes this class directly inherits from.
Constructor Details
- (void) constructor()
Constructor. @param opts The configuration options
Instance Method Details
- (void) toString()
Stringification.
Stringifies to a readable representation with table name and the names of all fields.
- (Array<String>) parents()
Get the names of all the classes this class directly inherits from.