Skip to main content
Module

x/nessie/mod.ts>NessieConfig

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
Go to Latest
interface NessieConfig
import { type NessieConfig } from "https://deno.land/x/nessie@2.0.7/mod.ts";

Nessie config options.

Properties

client: AbstractClient<any>

Can be any class which extends AbstractClient.

optional
migrationFolders: string[]

The folders where migration files are located. Can be a relative path or an absolute path. Defaults to ['./db/migrations/'] if additionalMigrationFiles is not populated

optional
seedFolders: string[]

The folders where seed files are located. Can be a relative path or an absolute path. Defaults to ['./db/seeds/'] if additionalSeedFiles is not populated

optional
additionalMigrationFiles: string[]

Additional migration files which will be added to the list to parse when running the migrate or rollback command. Can be any format supported by import() e.g. url or path

optional
additionalSeedFiles: string[]

Additional seed files which will be added to the list to match against when running the seed command. Can be any format supported by import() e.g. url or path

optional
migrationTemplate: string

Custom migration template, can be path or url. When also using the CLI flag --migrationTemplate, it will have precidence.

optional
seedTemplate: string

Custom seed template, can be path or url. When also using the CLI flag --seedTemplate, it will have precidence.

optional
debug: boolean

Enables verbose output for debugging