FP-Devicer - v1.6.1
    Preparing search index...

    Function createPostgresAdapter

    • Create a StorageAdapter backed by a PostgreSQL database via Drizzle ORM (drizzle-orm/postgres-js).

      The adapter creates the fingerprints table automatically on the first call to init(). Candidate pre-filtering executes a JSON-operator WHERE clause before running full in-process confidence scoring.

      Parameters

      • dbUrlOrClient: string

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

      Returns StorageAdapter

      A StorageAdapter instance. Call init() before any other method.

      const adapter = createPostgresAdapter('postgresql://localhost/mydb');
      await adapter.init();