[Sqlalchemy-commits] sqlalchemy: fixing typos in the types docs (see #2639)
Brought to you by:
zzzeek
From: <co...@sq...> - 2012-12-23 23:15:33
|
details: http://hg.sqlalchemy.org/sqlalchemy/sqlalchemy/rev/2f2d7c1b8a72 changeset: 9029:2f2d7c1b8a72 user: diana date: Sun Dec 23 18:15:12 2012 -0500 description: fixing typos in the types docs (see #2639) diffstat: doc/build/core/types.rst | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diffs (34 lines): diff -r b3b4cbd16e62 -r 2f2d7c1b8a72 doc/build/core/types.rst --- a/doc/build/core/types.rst Sun Dec 23 16:13:59 2012 -0500 +++ b/doc/build/core/types.rst Sun Dec 23 18:15:12 2012 -0500 @@ -197,13 +197,13 @@ database's dialect module. See the :ref:`sqlalchemy.dialects_toplevel` reference for the database you're interested in. -For example, MySQL has a ``BIGINTEGER`` type and PostgreSQL has an +For example, MySQL has a ``BIGINT`` type and PostgreSQL has an ``INET`` type. To use these, import them from the module explicitly:: from sqlalchemy.dialects import mysql - table = Table('foo', meta, - Column('id', mysql.BIGINTEGER), + table = Table('foo', metadata, + Column('id', mysql.BIGINT), Column('enumerates', mysql.ENUM('a', 'b', 'c')) ) @@ -211,10 +211,10 @@ from sqlalchemy.dialects import postgresql - table = Table('foo', meta, + table = Table('foo', metadata, Column('ipaddress', postgresql.INET), - Column('elements', postgresql.ARRAY(str)) - ) + Column('elements', postgresql.ARRAY(String)) + ) Each dialect provides the full set of typenames supported by that backend within its `__all__` collection, so that a simple |