Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denodb/lib/database.ts>Database#sync

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
method Database.prototype.sync
import { Database } from "https://deno.land/x/denodb@v1.0.40/lib/database.ts";

Create the given models in the current database.

await db.sync({ drop: true });

Parameters

optional
options: SyncOptions = [UNSUPPORTED]