Skip to main content
Generates a database class and its test file in a module. It first prompts for the database type (Postgres, Redis, or SQLite), then writes the class under the module’s src/databases directory with a matching test spec. The @talosjs/database package is installed if the module doesn’t already have it.

Usage

Examples

Options

The database type (Postgres, Redis, or SQLite) has no flag and is always selected through an interactive prompt.

AI Skill

This command ships a matching database:create skill. It generates the database class and its test file, then guides your AI agent through completing a database adapter that extends TypeormDatabase from @talosjs/database.