Table
Extends:
Some useful table extensions for Thinky
Static Member Summary
Static Public Members | ||
public static get |
table: Thinky:Table: * returns a reference to the raw Table object |
|
public static get |
tableName: * returns what the table name is, useful for raw |
Static Method Summary
Static Public Methods | ||
public static |
createModel(config: Array): * creates a Thinky model |
|
public static |
drop(): * drops this table on the database, primarily used to clean up after tests |
|
public static |
empty(): * empties all rows from the table |
|
public static |
creates a new row on this Table |
Constructor Summary
Public Constructor | ||
public |
emits when the table is online, for any interested Listeners |
Member Summary
Public Members | ||
public |
table: * |
Inherited Summary
From class Expressive | ||
public static |
create(): * creates a new inherited instance |
|
public |
debug: * |
|
public |
expressive emit |
|
public |
when(): * expressive once |
Static Public Members
public static get table: Thinky:Table: * source
returns a reference to the raw Table object
Return:
Thinky:Table | The table |
Static Public Methods
public static createModel(config: Array): * source
creates a Thinky model
Params:
Name | Type | Attribute | Description |
config | Array | The accepts the same arguments as thinky.createModel |
Return:
* |
public static drop(): * source
drops this table on the database, primarily used to clean up after tests
Return:
* |
Public Constructors
public constructor source
emits when the table is online, for any interested Listeners