SQLite Adapter

Hierarchy

  • default
    • SQLite

Properties

dataSource: DataSource

The connection to the database

repository: Repository<SQLModel>

The repository

db: undefined | TypeORM

The database instance (singleton pattern)

Methods

  • Deletes a ruleset with the given ID.

    Parameters

    • id: string

      The ID of the ruleset

    Returns Promise<void>

  • Gets a specific ruleset by it ID. If there is no ruleset with this ID, undefined will be returned.

    Parameters

    • id: string

      The ID of the ruleset

    Returns Promise<undefined | Ruleset>

  • Saves a ruleset with the given ID. If it already exists it will be updated, otherwise it will be created.

    Parameters

    • id: string

      The ID of the ruleset

    • data: Ruleset

      The actual ruleset

    Returns Promise<void>