SQLAlchemy 0.4 Documentation
Version: 0.4.6 Last Updated: 06/08/08 21:47:23
- Module Functions
- class PGArray(MutableType,Concatenable,TypeEngine)
- class PGBigInteger(PGInteger)
- class PGBinary(Binary)
- class PGBoolean(Boolean)
- class PGChar(CHAR)
- class PGCompiler(DefaultCompiler)
- class PGDate(Date)
- class PGDateTime(DateTime)
- class PGDefaultRunner(DefaultRunner)
- class PGDialect(DefaultDialect)
- class PGExecutionContext(DefaultExecutionContext)
- class PGFloat(Float)
- class PGIdentifierPreparer(IdentifierPreparer)
- class PGInet(TypeEngine)
- class PGInteger(Integer)
- class PGInterval(TypeEngine)
- class PGMacAddr(TypeEngine)
- class PGNumeric(Numeric)
- class PGSchemaDropper(SchemaDropper)
- class PGSchemaGenerator(SchemaGenerator)
- class PGSmallInteger(SmallInteger)
- class PGString(String)
- class PGText(Text)
- class PGTime(Time)
module sqlalchemy.databases.postgres
Support for the PostgreSQL database.
PostgreSQL supports partial indexes. To create them pass a posgres_where option to the Index constructor:
Index('my_index', my_table.c.id, postgres_where=tbl.c.value > 10)
PostgreSQL 8.2+ supports returning a result set from inserts and updates. To use this pass the column/expression list to the postgres_returning parameter when creating the queries:
raises = tbl.update(empl.c.sales > 100, values=dict(salary=empl.c.salary * 1.1), postgres_returning=[empl.c.id, empl.c.salary]).execute().fetchall()
class PGArray(MutableType,Concatenable,TypeEngine)
back to section topclass PGCompiler(DefaultCompiler)
back to section topclass PGDefaultRunner(DefaultRunner)
back to section topclass PGDialect(DefaultDialect)
back to section topclass PGExecutionContext(DefaultExecutionContext)
back to section topclass PGIdentifierPreparer(IdentifierPreparer)
back to section topclass PGNumeric(Numeric)
back to section topclass PGSchemaGenerator(SchemaGenerator)
back to section top
Up: API Documentation
|
Previous: module sqlalchemy.databases.sqlite
|
Next: module sqlalchemy.databases.mysql
