ip-devicer
    Preparing search index...

    Function createPostgresIpStorage

    • Create an AsyncIpStorage backed by a PostgreSQL database via the pg package.

      The adapter creates the ip_snapshots table and its index automatically on the first call to init().

      Parameters

      • connectionString: string

        PostgreSQL connection string, e.g. "postgresql://user:pass@localhost:5432/mydb".

      • maxPerDevice: number = 50

        Maximum snapshots to retain per deviceId. Default: 50

      Returns AsyncIpStorage