// Connection string
"postgresql://user:password@localhost:5432/database"
// Configuration object
{
host: "localhost",
port: 5432,
database: "mydb",
user: "postgres",
password: "password"
}
可选
ensure是否在表不存在时自动创建表。
true
可选
index用于语义搜索功能的向量搜索配置。如果提供,则使用 pgvector 扩展启用向量相似性搜索。
可选
schema用于存储表的数据库模式名称。
"public"
可选
text用于 PostgreSQL 全文搜索操作的语言。支持 PostgreSQL 中可用的任何语言配置。
"english"
可选
ttl用于项目自动过期的 TTL 配置。
PostgreSQL 连接字符串或连接配置对象。