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

x/denodb/lib/model.ts>Model.addEventListener

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
method Model.addEventListener
import { Model } from "https://deno.land/x/denodb@v1.1.0/lib/model.ts";

Alias for Model.on, add an event listener for a specific operation/hook.

Flight.addEventListener('created', (model) => console.log('New model:', model));