Commit Graph

2307 Commits

Author SHA1 Message Date
Mike Bayer 1aeb637e70 - [bug] Fixed bug whereby MappedCollection
would not get the appropriate collection
instrumentation if it were only used
in a custom subclass that used
@collection.internally_instrumented.
[ticket:2406]
- added docs for collection
2012-02-13 16:04:57 -05:00
Mike Bayer c6278444aa - break out sample URLs into individual, per-database sections each with a link
to the dialect page.
- add a section for unix domain sockets under psycopg2 [ticket:2393]
2012-02-12 19:06:49 -05:00
Mike Bayer d3ff10e035 - add OrderingList class and other functions to sphinx documentation
[ticket:2391]
2012-02-12 18:30:42 -05:00
Mike Bayer 8c1bf8cdd0 document identity_map 2012-02-11 10:52:00 -05:00
Mike Bayer 6a853837b9 attempt to use the secret weapon to force a total rebuild 2012-01-29 00:01:22 -05:00
Mike Bayer 667249f7b1 get ready for release 0.7.5 2012-01-28 17:43:13 -05:00
Mike Bayer 84cb539e5f declarative reflection example 2012-01-28 17:41:10 -05:00
Mike Bayer 500bb6bfbc add a thing about migration tools 2012-01-24 02:24:01 -05:00
Mike Bayer 996d3916a3 fix image link 2012-01-23 16:35:16 -05:00
Mike Bayer 4b0d4a12c7 integrate new readthedocs/sqla.org doc build 2012-01-23 16:24:24 -05:00
Mike Bayer 82b90175f7 - [feature] Added new capability to relationship
loader options to allow "default" loader strategies.
Pass '*' to any of joinedload(), lazyload(),
subqueryload(), or noload() and that becomes the
loader strategy used for all relationships,
except for those explicitly stated in the
Query.  Thanks to up-and-coming contributor
Kent Bower for an exhaustive and well
written test suite !  [ticket:2351]
2012-01-22 20:11:03 -05:00
Mike Bayer 79cf693b05 modernize/update cascade documentation, [ticket:2302] 2012-01-22 18:32:41 -05:00
Mike Bayer f54a3b255a add examples for multi metadata under __abstract__, custom vertical partitioning 2012-01-11 16:35:34 -05:00
Mike Bayer 097f078205 fix the gettext to be the same way sphinx-quickstart gives you 2012-01-08 13:27:50 -05:00
Mike Bayer 3ff1d0a2b1 add support to generate gettext 2012-01-07 17:19:07 -05:00
Mike Bayer adf1255647 - fix the index, [ticket:2366]
- the most explicit warning ever about mapper events
2012-01-05 16:33:14 -05:00
Mike Bayer 411b3f322c happy new year 2012-01-04 15:38:26 -05:00
Mike Bayer 83baa5ebc9 - rework "sql expressions as mapped attributes" to also stress hybrids as the first
method to try.    now there's two sections here that introduce hybrids, which
is less than ideal.
2012-01-03 17:07:44 -05:00
Mike Bayer 737456866c add a "jinja2 fallback" renderer for render_string(), which is used for the js/css templates
we don't really care about.  not sure if this is going to break again with a newer sphinx
or what, but fixes [ticket:2359] for now.
2011-12-30 15:29:44 -05:00
Mike Bayer ae53c42d3c document that strings are accepted with declarative/secondary 2011-12-29 11:27:50 -05:00
Mike Bayer 68f6951019 fix a whole bunch of note:: / warning:: that were inline,
no longer compatible with docutils 0.8
2011-12-25 17:34:24 -05:00
Mike Bayer e11e45daac - 0.7.4 prep 2011-12-09 16:57:57 -05:00
Mike Bayer adec2c8dd8 should refer to Mapper class here 2011-12-09 16:57:29 -05:00
Mike Bayer d1cc7e7517 - [feature] polymorphic_on now accepts many
new kinds of values:

- standalone expressions that aren't
otherwise mapped
- column_property() objects
- string names of any column_property()
or attribute name of a mapped Column

The docs include an example using
the case() construct, which is likely to be
a common constructed used here.
[ticket:2345] and part of [ticket:2238]
2011-12-09 00:56:12 -05:00
Mike Bayer 7ebcd26f74 - doc updates per [ticket:2251]
- [feature] Added new value for Column autoincrement
called "ignore_fk", can be used to force autoincrement
on a column that's still part of a ForeignKeyConstraint.
New example in the relationship docs illustrates
its use.
2011-12-06 20:59:04 -05:00
Mike Bayer e8180bb718 add docs regarding flags only working with setuptools/distribute, [ticket:2341] 2011-12-06 14:28:54 -05:00
Mike Bayer b53349a403 add missing "data" column from association example, [ticket:2259] 2011-12-06 13:06:30 -05:00
Mike Bayer e63117159f update delete-orphan cascade docs per [ticket:2332] 2011-12-06 12:15:06 -05:00
Mike Bayer 06e65c2d4e marathon doc updating session including a rewrite of unicode paragraphs 2011-12-04 23:08:35 -05:00
Mike Bayer e20ac9973c - update docs to declarative [ticket:2323] 2011-12-04 16:58:14 -05:00
Mike Bayer b854074c6d - [feature] Added create_type constructor argument
to pg.ENUM.  When False, no CREATE/DROP or
checking for the type will be performed as part
of a table create/drop event; only the
create()/drop)() methods called directly
will do this.  Helps with Alembic "offline"
scripts.
2011-11-28 22:28:28 -05:00
Mike Bayer 3e98d31d99 fix typo [ticket:2334] 2011-11-26 13:17:21 -05:00
Mike Bayer 9af23c0fcb continue removing misleading/old sections, fix things that are just wrong 2011-11-26 13:16:47 -05:00
Mike Bayer d2f3f12f7a more fixes, more coming 2011-11-26 11:32:40 -05:00
Mike Bayer 42da9695e9 - shorten classical mapping, remove some not very clear things
- separate the "prefix" thing
2011-11-26 01:26:22 -05:00
Mike Bayer 6733a9bbdd doc styling rework 2011-11-25 16:17:16 -05:00
Mike Bayer 74fe7b60b7 - doc updates in loading
- de-emphasize contains_alias() which is pretty much a non-use case
- add docs for immediateload which have been missing all this time
- fix links, formatting
2011-11-24 10:47:10 -05:00
Mike Bayer 3acf2ef258 call the simply police 2011-11-22 19:01:21 -05:00
Mike Bayer 90b6ca30e4 - commit the unit tests
- lots of doc updates to all three of update/insert/delete
2011-11-22 17:27:35 -05:00
Mike Bayer 8301651428 - [feature] Added new support for remote "schemas":
- MetaData() accepts "schema" and "quote_schema"
      arguments, which will be applied to the same-named
      arguments of a Table
      or Sequence which leaves these at their default
      of ``None``.
    - Sequence accepts "quote_schema" argument
    - tometadata() for Table will use the "schema"
      of the incoming MetaData for the new Table
      if the schema argument is explicitly "None"
    - Added CreateSchema and DropSchema DDL
      constructs - these accept just the string
      name of a schema and a "quote" flag.
    - When using default "schema" with MetaData,
      ForeignKey will also assume the "default" schema
      when locating remote table.  This allows the "schema"
      argument on MetaData to be applied to any
      set of Table objects that otherwise don't have
      a "schema".
    - a "has_schema" method has been implemented
      on dialect, but only works on Postgresql so far.
    Courtesy Manlio Perillo, [ticket:1679]
2011-10-23 16:57:48 -04:00
Mike Bayer 8aa229cf84 link to declarative concrete helper doc 2011-10-16 14:24:29 -04:00
Mike Bayer 00ceaa731f 0.7.3 prep 2011-10-16 14:14:45 -04:00
Mike Bayer 01f04c06ec fix typos [ticket:2294] [ticket:2300]. these are both due to reworkings of 0.6 docs that don't have these typos 2011-10-15 11:24:43 -04:00
Mike Bayer 9d842790b4 document CircularDependencyError. [ticket:2285] 2011-09-23 22:17:18 -04:00
Mike Bayer bb62d80217 - New event hook, MapperEvents.after_configured().
Called after a configure() step has completed and
    mappers were in fact affected.   Theoretically this
    event is called once per application, unless new mappings
    are constructed after existing ones have been used
    already.

  - New declarative features:
        - __declare_last__() method, establishes an event
        listener for the class method that will be called
        when mappers are completed with the final "configure"
        step.
        - __abstract__ flag.   The class will not be mapped
        at all when this flag is present on the class.
        - New helper classes ConcreteBase, AbstractConcreteBase.
        Allow concrete mappings using declarative which automatically
        set up the "polymorphic_union" when the "configure"
        mapper step is invoked.
        - The mapper itself has semi-private methods that allow
        the "with_polymorphic" selectable to be assigned
        to the mapper after it has already been configured.
        [ticket:2239]
2011-09-10 16:54:23 -04:00
Mike Bayer b80d54e7b2 document pool ping recipe 2011-08-24 10:58:06 -04:00
Mike Bayer 72d10093f4 document autocommit when using the compiler extension, update the "understanding autocommit" section 2011-08-18 13:02:30 -04:00
Mike Bayer 2105032261 some core cross linkage 2011-08-07 19:44:39 -04:00
Mike Bayer 3ffd9f6c8f - basic relational patterns -> all declarative. classical mapper folks can
figure it out.
- update self-referential examples to be fully declarative/aliased etc.
2011-08-07 19:04:10 -04:00
Mike Bayer 46e92b478a long line formatting 2011-08-07 18:05:49 -04:00