Memo::Dialect::Postgres
Inherits Memo::Dialect::Base < Reference < Object
Constants
MIGRATION_LOCK = 1835363695_i64
Any constant shared by every memo process ("memo" in ASCII)
SCHEMA_SQL = {{ read_file("/tmp/tmp.AcleAa/src/src/memo/dialect/../../../db/schema/memo_schema_pg.sql") }}
Instance methods
Get the database file path from a connection, if applicable.
SQLite: reads pragma_database_list PostgreSQL: returns nil (no local file)
drop_legacy_texts(db : DBHandle) : Nil
Drop the tables content-addressed storage replaced (memo_texts and its full-text index).
embedding_rowid_column
The column name for embedding row identity used as USearch key.
SQLite: "rowid" (implicit) PostgreSQL: "eid" (explicit column)
Build INSERT OR IGNORE SQL.
Execute an INSERT and return the generated ID.
Two processes opening the database at once would otherwise both migrate it. The lock is released when the transaction ends.