Teo.JS Waterline DB Adapter.
const WaterlineAdapter = ;let adapterInstance =waterlineAdapters:// adapters should be installed as packages via npm"default":disk:mysql:connections:myLocalDisk:adapter: "disk"myLocalMySql:adapter: "mysql"host: "localhost"database: "foobar";;adapterInstance;adapterInstance; // connects ORMadapterInstance; // disconnects ORM
Adds model to the registry. The
identity argument is not necessary.
You can pass
identity inside model object. Otherwise, identity will be the first key of the passed model object.
Connects ORM. All models should be loaded before the connection to DB. #### disconnect() [generator function] Disconnects ORM.
boolean to detect if connection is set.