mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-30 20:44:45 -04:00
- PG doc updates
- pypostgresql has 15 errors, 3 failures, this probably puts it in the "yes" as opposed to the "partial" support category. [ticket:1850]
This commit is contained in:
Vendored
+2
-1
@@ -103,7 +103,7 @@ cx_oracle_ ``oracle+cx_oracle``\* yes development
|
||||
pg8000_ ``postgresql+pg8000`` yes yes no yes yes
|
||||
`PostgreSQL JDBC Driver`_ ``postgresql+zxjdbc`` no no yes yes yes
|
||||
psycopg2_ ``postgresql+psycopg2``\* yes development no yes yes
|
||||
pypostgresql_ ``postgresql+pypostgresql`` no partial no yes yes
|
||||
pypostgresql_ ``postgresql+pypostgresql`` no yes no yes yes
|
||||
**SQLite**
|
||||
pysqlite_ ``sqlite+pysqlite``\* yes yes no yes yes
|
||||
sqlite3_ ``sqlite+pysqlite``\* yes yes no yes yes
|
||||
@@ -154,6 +154,7 @@ Dialect names include the identifying name of the SQLAlchemy dialect which inclu
|
||||
pg_db = create_engine('postgresql://scott:tiger@localhost/mydatabase')
|
||||
pg_db = create_engine('postgresql+psycopg2://scott:tiger@localhost/mydatabase')
|
||||
pg_db = create_engine('postgresql+pg8000://scott:tiger@localhost/mydatabase')
|
||||
pg_db = create_engine('postgresql+pypostgresql://scott:tiger@localhost/mydatabase')
|
||||
|
||||
# postgresql on Jython
|
||||
pg_db = create_engine('postgresql+zxjdbc://scott:tiger@localhost/mydatabase')
|
||||
|
||||
+5
@@ -57,6 +57,11 @@ psycopg2 Notes
|
||||
.. automodule:: sqlalchemy.dialects.postgresql.psycopg2
|
||||
|
||||
|
||||
py-postgresql Notes
|
||||
--------------------
|
||||
|
||||
.. automodule:: sqlalchemy.dialects.postgresql.pypostgresql
|
||||
|
||||
pg8000 Notes
|
||||
--------------
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Connecting
|
||||
----------
|
||||
|
||||
URLs are of the form
|
||||
`postgresql+pg8000://user:password@host:port/dbname[?key=value&key=value...]`.
|
||||
``postgresql+pg8000://user:password@host:port/dbname[?key=value&key=value...]``.
|
||||
|
||||
Unicode
|
||||
-------
|
||||
|
||||
@@ -17,7 +17,7 @@ By default, the Psycopg2 driver uses the ``psycopg2.extensions.UNICODE`` extensi
|
||||
Connecting
|
||||
----------
|
||||
|
||||
URLs are of the form `postgresql+psycopg2://user:password@host:port/dbname[?key=value&key=value...]`.
|
||||
URLs are of the form ``postgresql+psycopg2://user:password@host:port/dbname[?key=value&key=value...]``.
|
||||
|
||||
psycopg2-specific keyword arguments which are accepted by :func:`~sqlalchemy.create_engine()` are:
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
Connecting
|
||||
----------
|
||||
|
||||
URLs are of the form `postgresql+pypostgresql://user@password@host:port/dbname[?key=value&key=value...]`.
|
||||
URLs are of the form ``postgresql+pypostgresql://user@password@host:port/dbname[?key=value&key=value...]``.
|
||||
|
||||
|
||||
"""
|
||||
|
||||
@@ -278,7 +278,7 @@ class MapperExtension(object):
|
||||
guarantee that an UPDATE statement will be issued (although you can
|
||||
affect the outcome here).
|
||||
|
||||
To detect if the column-based attributes on the object have net
|
||||
To detect if the column-based attributes on the object have net
|
||||
changes, and will therefore generate an UPDATE statement, use
|
||||
``object_session(instance).is_modified(instance,
|
||||
include_collections=False)``.
|
||||
|
||||
Reference in New Issue
Block a user