lti-tool Documentation
    Preparing search index...

    Interface PostgresStorageConfig

    interface PostgresStorageConfig {
        connectionUrl: string;
        logger?: Logger;
        nonceExpirationSeconds?: number;
        poolOptions?: { idleTimeout?: number; max?: number };
    }
    Index

    Properties

    connectionUrl: string

    PostgreSQL connection URL in format: postgresql://user:password@host:port/database Compatible with DATABASE_URL environment variable used by most ORMs

    logger?: Logger
    nonceExpirationSeconds?: number

    Nonce expiration time in seconds (defaults to 600 = 10 minutes)

    poolOptions?: { idleTimeout?: number; max?: number }

    Optional postgres.js connection options

    Type Declaration

    • OptionalidleTimeout?: number

      Idle timeout in seconds before a connection is closed. Defaults to 20 seconds.

    • Optionalmax?: number

      Maximum number of connections in the pool. Defaults to 1 in serverless environments, 10 otherwise.

      Recommended values:

      • Serverless (Lambda, Cloud Functions): 1
      • Low traffic servers: 5-10
      • Medium traffic servers: 10-20
      • High traffic servers: 20-50