Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

165 lines (104 sloc) 4.624 kb

Foreign Data Objects

The :mod:`foreign` module defines nine classes: :class:`DbObjectWithOptions` derived from :class:`DbObject`, classes :class:`ForeignDataWrapper`, :class:`ForeignServer` and :class:`UserMapping` derived from :class:`DbObjectWithOptions`, :class:`ForeignTable` derived from :class:`DbObjectWithOptions` and :class:`Table`, classes :class:`ForeignDataWrapperDict`, :class:`ForeignServerDict` and :class:`UserMappingDict` derived from :class:`DbObjectDict`, and :class:`ForeignTableDict` derived from :class:`ClassDict`.

Database Object With Options

:class:`DbObjectWithOptions` is derived from :class:`~pyrseas.dbobject.DbObject`. It is a helper function dealing with the OPTIONS clauses common to the foreign data objects.

Foreign Data Wrapper

:class:`ForeignDataWrapper` is derived from :class:`DbObjectWithOptions` and represents a PostgreSQL foreign data wrapper. For PostgreSQL versions 9.1 and later see also Foreign Data and Writing A Foreign Data Wrapper.

Foreign Data Wrapper Dictionary

:class:`ForeignDataWrapperDict` is derived from :class:`~pyrseas.dbobject.DbObjectDict`. It is a dictionary that represents the collection of foreign data wrappers in a database.

Foreign Server

:class:`ForeignServer` is derived from :class:`DbObjectWithOptions` and represents a PostgreSQL foreign server.

Foreign Server Dictionary

:class:`ForeignServerDict` is derived from :class:`~pyrseas.dbobject.DbObjectDict`. It is a Python dictionary that represents the collection of foreign servers in a database.

User Mapping

:class:`UserMapping` is derived from :class:`DbObjectWithOptions` and represents a PostgreSQL user mapping of a user to a foreign server.

User Mapping Dictionary

:class:`UserMappingDict` is derived from :class:`~pyrseas.dbobject.DbObjectDict`. It is a dictionary that represents the collection of user mappings in a database.

Foreign Table

:class:`ForeignTable` is derived from :class:`DbObjectWithOptions` and :class:`~pyrseas.dbobject.table.Table`. It represents a PostgreSQL foreign table (available on PostgreSQL 9.1 or later).

Foreign Table Dictionary

:class:`ForeignTableDict` is derived from :class:`~pyrseas.dbobject.table.ClassDict`. It is a dictionary that represents the collection of foreign tables in a database.

Jump to Line
Something went wrong with that request. Please try again.