-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Amaury edited this page Oct 10, 2021
·
3 revisions
Welcome to the decodb wiki!
// use any Connector
const connector = new DenoDB.MySQLConnector({
...
});
const db = new DenoDB.Database(connector);
// This is where the magic happens
await setupDatabase(db, {
models: [Article, Comment, User],
});
// sync the DB (optional)
await db.sync({ drop: true });