@not3/api
    Preparing search index...

    Class DatabaseConfig

    Index
    allowRevertingMigrations: boolean = ...

    In the rare case that you need to downgrade the database, set this temporarily to true. Be aware that this can lead to data loss. Make sure to have backups.

    false
    

    ALLOW_REVERTING_MIGRATIONS

    database: string = ...

    The name of the database. Not used for SQLite.

    'database'
    

    DATABASE_NAME

    filename: string = ...

    The filename of the SQLite database. Only used for SQLite.

    'db/database.sqlite'
    

    DATABASE_FILE

    host: string = ...

    The host of the database. Not used for SQLite.

    'localhost'
    

    DATABASE_HOST

    mode: string = ...

    The mode of the database.

    'sqlite3'
    

    'sqlite3', 'pg', 'mysql'

    DATABASE_MODE

    password: string = ...

    The password of the database. Not used for SQLite.

    'password'
    

    DATABASE_PASSWORD

    port: number = ...

    The port of the database. Not used for SQLite.

    5432
    

    DATABASE_PORT

    requestOptimization: string = ...

    Reduce the amount of database requests, so serverless databases (e.g. neon.tech) can go to sleep when the instance is idle. 'none' keeps the current behavior. 'light' extends internal cache lifetimes and slows down the cleanup schedulers, so the database is only woken up every few minutes. 'hard' additionally moves rate limit tracking into valkey and buffers new notes in valkey, writing them to the database in batches. 'hard' requires VALKEY_ENABLED=true, otherwise the app will not start.

    'none'
    

    'none', 'light', 'hard'

    DATABASE_REQUEST_OPTIMIZATION

    ssl: boolean = ...

    Use SSL for the database connection.

    false
    

    DATABASE_SSL

    sslRejectUnauthorized: boolean = ...

    If SSL is used, should the certificate be verified.

    true
    

    DATABASE_SSL_REJECT_UNAUTHORIZED

    user: string = ...

    The username of the database. Not used for SQLite.

    'username'
    

    DATABASE_USERNAME