summaryrefslogtreecommitdiff
path: root/kombu/transport/sqlalchemy/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'kombu/transport/sqlalchemy/__init__.py')
-rw-r--r--kombu/transport/sqlalchemy/__init__.py53
1 files changed, 52 insertions, 1 deletions
diff --git a/kombu/transport/sqlalchemy/__init__.py b/kombu/transport/sqlalchemy/__init__.py
index ccd51b0c..6ae04d0d 100644
--- a/kombu/transport/sqlalchemy/__init__.py
+++ b/kombu/transport/sqlalchemy/__init__.py
@@ -1,4 +1,55 @@
-"""Kombu transport using SQLAlchemy as the message store."""
+"""SQLAlchemy Transport module for kombu.
+
+Kombu transport using SQL Database as the message store.
+
+Features
+========
+* Type: Virtual
+* Supports Direct: yes
+* Supports Topic: yes
+* Supports Fanout: no
+* Supports Priority: no
+* Supports TTL: no
+
+Connection String
+=================
+
+.. code-block::
+
+ sqla+SQL_ALCHEMY_CONNECTION_STRING
+ sqlalchemy+SQL_ALCHEMY_CONNECTION_STRING
+
+For details about ``SQL_ALCHEMY_CONNECTION_STRING`` see SQLAlchemy Engine Configuration documentation.
+Examples:
+
+.. code-block::
+
+ # PostgreSQL with default driver
+ sqla+postgresql://scott:tiger@localhost/mydatabase
+
+ # PostgreSQL with psycopg2 driver
+ sqla+postgresql+psycopg2://scott:tiger@localhost/mydatabase
+
+ # PostgreSQL with pg8000 driver
+ sqla+postgresql+pg8000://scott:tiger@localhost/mydatabase
+
+ # MySQL with default driver
+ sqla+mysql://scott:tiger@localhost/foo
+
+ # MySQL with mysqlclient driver (a maintained fork of MySQL-Python)
+ sqla+mysql+mysqldb://scott:tiger@localhost/foo
+
+ # MySQL with PyMySQL driver
+ sqla+mysql+pymysql://scott:tiger@localhost/foo
+
+Transport Options
+=================
+
+* ``queue_tablename``: Name of table storing queues.
+* ``message_tablename``: Name of table storing messages.
+
+Moreover parameters of :func:`sqlalchemy.create_engine()` function can be passed as transport options.
+"""
# SQLAlchemy overrides != False to have special meaning and pep8 complains
# flake8: noqa