View Source PhoenixAnalytics.Services.Bridge (PhoenixAnalytics v0.3.2)

Summary

Functions

Attaches PostgreSQL to the DuckDB connection if the mode is set to :duck_postgres.

Functions

Link to this function

attach_postgres(db, conn)

View Source

Attaches PostgreSQL to the DuckDB connection if the mode is set to :duck_postgres.

This function performs the following steps:

  1. Installs the PostgreSQL extension
  2. Loads the PostgreSQL extension
  3. Executes the attach_postgres query

Parameters

  • conn: The DuckDB connection

Returns

Returns the result of the attach_postgres query.