Versions in this module Expand all Collapse all v0 v0.1.13 Jul 15, 2025 Changes in this version + type Column struct + DataType string + Name string + Nullable bool + type EmailRetriever func(ctx context.Context) (string, error) + type InitChatHistoryTableOptions struct + type Option func(p *engineConfig) + func WithCloudSQLInstance(projectID, region, instance string) Option + func WithDatabase(database string) Option + func WithIAMAccountEmail(email string) Option + func WithIPType(ipType string) Option + func WithPassword(password string) Option + func WithPool(pool *pgxpool.Pool) Option + func WithUser(user string) Option + type OptionInitChatHistoryTable func(*InitChatHistoryTableOptions) + func WithSchemaName(schemaName string) OptionInitChatHistoryTable + type PostgresEngine struct + Pool *pgxpool.Pool + func NewPostgresEngine(ctx context.Context, opts ...Option) (PostgresEngine, error) + func (p *PostgresEngine) Close() + func (p *PostgresEngine) InitChatHistoryTable(ctx context.Context, tableName string, opts ...OptionInitChatHistoryTable) error + func (p *PostgresEngine) InitVectorstoreTable(ctx context.Context, opts VectorstoreTableOptions) error + type VectorstoreTableOptions struct + ContentColumnName string + EmbeddingColumn string + IDColumn Column + MetadataColumns []Column + MetadataJSONColumn string + OverwriteExisting bool + SchemaName string + StoreMetadata bool + TableName string + VectorSize int