DB Connection examples

29-11-2018
```typescript import "stdlib/native"; import * as orm from "stdlib/orm" function main() { // first open a new database let db = sql.open("sqlite3", ":memory:") } ``` ```typescript sql.open("mysql", "root:@unix(/var/run/mysqld/mysqld.sock)/") db.exec("CREATE DATABASE IF NOT EXISTS tenant_test") db.database = "tenant_test" ``` ```typescript // Inside a plugin there is a default database set by the system. // This allows to call db methods directly from sql.xxxx instead of the db object. runtime.context.db = db ```

Amura