Commit Graph

2307 Commits

Author SHA1 Message Date
Mike Bayer 0e6d10806a add doc for shard 2010-03-28 13:17:26 -04:00
Mike Bayer 51fd344737 - The sqlalchemy.orm.shard module now becomes an extension,
sqlalchemy.ext.horizontal_shard.   The old import
works with a deprecation warning.
2010-03-28 13:12:38 -04:00
Mike Bayer 8f11ca9a6a documentation updates 2010-03-28 11:20:22 -04:00
Mike Bayer 3cd2c4661f - 0.6beta3 version
- remove redundant orderinglist docs, use just module docs
- add warning for primary keys/unique colummns, [ticket:1669]
2010-03-27 15:20:03 -04:00
Mike Bayer a0af13067d clarify cascade docstring, [ticket:1716] 2010-03-26 13:09:17 -04:00
Mike Bayer 3f0bd7269b - The psycopg2 dialect will log NOTICE messages via the
"sqlalchemy.dialects.postgresql" logger name.
[ticket:877]
2010-03-25 17:02:50 -04:00
Mike Bayer a977894c84 - fix some final pathing stuff, we weren't getting all the loads in the
inheritance examples, now its improved !
- final doc pass
2010-03-24 23:51:49 -04:00
Mike Bayer 1675811029 - To accomodate the fact that there are now two kinds of eager
loading available, the new names for eagerload() and
eagerload_all() are joinedload() and joinedload_all().  The
old names will remain as synonyms for the foreseeable future.

- The "lazy" flag on the relationship() function now accepts
a string argument for all kinds of loading: "select", "joined",
"subquery", "noload" and "dynamic", where the default is now
"select".  The old values of True/
False/None still retain their usual meanings and will remain
as synonyms for the foreseeable future.

- Added documentation to tutorial,mapper doc, api docs
for subqueryload, subqueryload_all, and other options.
2010-03-24 19:11:01 -04:00
Mike Bayer d6edf5557f revert the newline workaround, fix the regexp that was consuming 2010-03-20 13:41:18 -04:00
Mike Bayer 03e637b6c1 huge sphinx bug. need to put all :ref:s on a newline, or preceding :class:/:func: constructs get lost as well as all text in between. 2010-03-20 13:21:54 -04:00
Mike Bayer eb72838953 - pymssql now works again, expecting at least the 1.0 series. 2010-03-20 11:50:39 -04:00
Mike Bayer 60c9d3daae added some more detail to update doc per [ticket:1346] 2010-03-19 21:26:03 -04:00
Mike Bayer e5a0104531 latex can't handle the rowspans. pdf still cuts off the table and looks like
crap but at least it builds.
2010-03-17 21:17:51 -04:00
Mike Bayer 50bea2e0e8 if anybody complains that they didn't know it was called "relation" in 0.5, why..I'll eat my hat ! 2010-03-17 20:49:41 -04:00
Mike Bayer 065fcbd9d2 - The official name for the relation() function is now
relationship(), to eliminate confusion over the relational
algebra term.  relation() however will remain available
in equal capacity for the foreseeable future.  [ticket:1740]
2010-03-17 17:48:29 -04:00
Mike Bayer 214ed6239e - pyodbc can do *some* unicode with sybase, python-sybase not at all.
Since python-sybase source code seems to be all from 2001 with no updates,
making pyodbc the default driver.
2010-03-17 16:01:29 -04:00
Mike Bayer 318f47dc80 - added pyodbc for sybase driver.
- generalized the "freetds" / "unicode statements" behavior of MS-SQL/pyodbc
into the base Pyodbc connector, as this seems to apply to Sybase as well.
- generalized the python-sybase "use autocommit for DDL" into the pyodbc
connector.  With pyodbc, the "autocommit" flag on connection is used,
as Pyodbc seems to have more database conversation than python-sybase that
can't otherwise be suppressed.
- Some platforms will now interpret certain literal values
as non-bind parameters, rendered literally into the SQL
statement.   This to support strict SQL-92 rules that are
enforced by some platforms including MS-SQL and Sybase.
In this model, bind parameters aren't allowed in the
columns clause of a SELECT, nor are certain ambiguous
expressions like "?=?".  When this mode is enabled, the base
compiler will render the binds as inline literals, but only across
strings and numeric values.  Other types such as dates
will raise an error, unless the dialect subclass defines
a literal rendering function for those.  The bind parameter
must have an embedded literal value already or an error
is raised (i.e. won't work with straight bindparam('x')).
Dialects can also expand upon the areas where binds are not
accepted, such as within argument lists of functions
(which don't work on MS-SQL when native SQL binding is used).
2010-03-17 15:15:44 -04:00
Mike Bayer b3ba365eea fix failing test due to sybase paramstyle 2010-03-14 19:50:50 -04:00
Mike Bayer 9b597425c9 - name all the "sub" dialect components <DB><component>_<dialectname>, [ticket:1738] 2010-03-14 19:31:30 -04:00
Mike Bayer 9b9a252f00 ongoing typos 2010-03-13 18:17:26 -05:00
Mike Bayer e4b4f9a99b gr and pysqlite 2010-03-13 18:13:41 -05:00
Mike Bayer c982c7026d update link for sqlite3 2010-03-13 18:10:31 -05:00
Mike Bayer 6708330b8c the big table of all the DBAPIs 2010-03-13 18:04:39 -05:00
Mike Bayer 69aece5def working dialect support into a chart 2010-03-13 17:20:37 -05:00
Mike Bayer 5f1fbf5759 - Added "logging_name" argument to create_engine(), Pool() constructor
as well as "pool_logging_name" argument to create_engine() which
filters down to that of Pool.   Issues the given string name
within the "name" field of logging messages instead of the default
hex identifier string.  [ticket:1555]
2010-03-13 13:53:31 -05:00
Mike Bayer 875487b8b7 formatting 2010-03-11 18:46:21 -05:00
Mike Bayer 9520c878b6 - emphasized query.join() in ORM tutorial as per [ticket:1708]
- cleaned up tutorial w.r.t. eagerload, added a section for contains_eager as this function
is equally important
- added better linkages in sqlalchemy.orm reference documentation, updated antiquated
docs for contains_eager(), got aliased()/AliasedClass documented as well as Sphinx will
allow us
2010-03-10 18:29:32 -05:00
Mike Bayer 969c04860f almost there, some tests failing still. 2010-03-09 13:41:43 -05:00
Mike Bayer 0bd16c1f5c un-break the copyright link that chrisw broke 2010-03-01 16:37:43 +00:00
Michael Trier 65dcc6e68a And more wonderfully crafted documentation changes to link function/method names to their appropriate definitions in the API docs. Thank you Diana Clarke. Refs #1703. 2010-03-01 02:57:47 +00:00
Michael Trier c366b7ec4f More cleanup to link function/method names in the docs to the API docs. Refs #1703. 2010-02-28 22:15:33 +00:00
Michael Trier c6b2319bcc Corrected failing doctests in the docs directory due to Changeset r6860. Fixes #1722. 2010-02-28 21:55:16 +00:00
Michael Trier 3328792ebc Corrected docs on create_engine to link to DBEngine Logging docs. Fixes #1721. 2010-02-28 17:05:20 +00:00
Michael Trier 217eab1667 More work to link in the function names to the API docs. Refs #1703. 2010-02-28 01:18:17 +00:00
Mike Bayer f60a5fbd5d - merge -r6823:6841 of branches/chrisw_mixin
- declarative now accepts mixin classes directly, as a means
to provide common functional and column-based elements on
all subclasses, as well as a means to propagate a fixed
set of __table_args__ or __mapper_args__ to subclasses.
For custom combinations of __table_args__/__mapper_args__ from
an inherited mixin to local, descriptors can now be used.
New details are all up in the Declarative documentation.
Thanks to Chris Withers for putting up with my strife
on this. [ticket:1707]
2010-02-25 23:15:39 +00:00
Mike Bayer f0d1a04271 - typos
- type classes have a lot of detail in their constructors
2010-02-23 20:15:34 +00:00
Michael Trier 81410467f4 Major cleanup work in the docs to link class names into the API docs. Fixes #1702. 2010-02-23 06:15:24 +00:00
Michael Trier 7fe2f06765 Corrected dbengine.rst file to properly render nested lists. Thank you Diana Clarke. Fixes #1700. 2010-02-22 19:42:52 +00:00
Mike Bayer 8f79b41217 fix a typo, [ticket:1662] 2010-02-22 17:24:49 +00:00
Mike Bayer 711395eff4 linking some API elements. this is a long job that I don't know how to speed up 2010-02-14 19:45:03 +00:00
Mike Bayer 71315cd136 repair all doctests 2010-02-14 19:29:18 +00:00
Mike Bayer 4e9a2307a7 - query.one() no longer applies LIMIT to the query, this to
ensure that it fully counts all object identities present
in the result, even in the case where joins may conceal
multiple identities for two or more rows.  As a bonus,
one() can now also be called with a query that issued
from_statement() to start with since it no longer modifies
the query.  [ticket:1688]
2010-02-14 19:23:35 +00:00
Mike Bayer e0b40f8844 adding more mapper sections nobody will ever see ! 2010-02-12 20:42:19 +00:00
Mike Bayer d0d5f79240 - Made sqlalchemy.sql.expressions.Executable part of public
API, used for any expression construct that can be sent to
    execute().  FunctionElement now inherits Executable so that
    it gains execution_options(), which are also propagated
    to the select() that's generated within execute().
    Executable in turn subclasses _Generative which marks
    any ClauseElement that supports the @_generative
    decorator - these may also become "public" for the benefit
    of the compiler extension at some point.
2010-02-12 19:54:49 +00:00
Lele Gaifax 8a395b0dfd Link to the maintained version of the kinterbasdb driver, fixes #1677 2010-02-09 09:12:58 +00:00
Mike Bayer acafbca090 fix up formatting, add OurSQL 2010-02-08 15:54:11 +00:00
Mike Bayer dfbb1fc148 a big, unmissable, green box describing the caveats of String() and Sequence. 2010-02-05 01:01:40 +00:00
Mike Bayer 0421668763 yikes entirely wrong option name here 2010-01-31 15:49:51 +00:00
Mike Bayer 489d5010fd - the "save-update" cascade will now cascade the pending *removed*
values from a scalar or collection attribute into the new session
during an add() operation.  This so that the flush() operation
will also delete or modify rows of those disconnected items.
2010-01-30 18:28:37 +00:00
Mike Bayer 73bfc87669 - Added a tuple_() construct, allows sets of expressions
to be compared to another set, typically with IN against
composite primary keys or similar.  Also accepts an
IN with multiple columns.   The "scalar select can
have only one column" error message is removed - will
rely upon the database to report problems with
col mismatch.
2010-01-25 21:04:50 +00:00