Skip to content

Support defining triggers in .dart files #3766

Description

@BetterB0y

Problem

Currently, there is no way to define SQLite triggers directly in .dart database definitions. As far as I know, triggers can only be defined using .drift files.

When defining the database schema purely in Dart, there is no equivalent API for defining triggers. This creates an inconsistency between .drift and .dart schema definitions and forces developers to introduce .drift files even when the rest of the schema is defined in Dart.

Proposal

Introduce a way to define triggers directly in .dart files, similar to how tables, views, and indices can already be defined.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions