gooddata_fdw.environment

This file exists because multicorn is not available as proper stand-alone python package that one could install and then use the different data types during testing.

The multicorn python code is part of the PostgreSQL extension installation.

Thus here is the layer of indirection that tries to import multicorn code and if that is not present (likely during test run) it will use stub implementations.

The stubbing only happens if the FDW code is called during test execution. Otherwise the import error is raised as usual to prevent some wicked behavior on mis-configured PostgreSQL.

Functions

log_to_postgres(msg, level)

Classes

ColumnDefinition

alias of ColumnDefinitionStub

ColumnDefinitionStub(column_name, type_name, ...)

ForeignDataWrapper

alias of ForeignDataWrapperStub

ForeignDataWrapperStub(options, columns)

Qual

alias of QualStub

QualStub(field_name, operator, value)

TableDefinition

alias of TableDefinitionStub

TableDefinitionStub(table_name, columns, options)