Commit Graph

524 Commits

Author SHA1 Message Date
Lele Gaifax 28ff190475 Typo 2008-08-04 13:17:40 +00:00
Mike Bayer e53339cf74 some doc stuff 2008-08-04 03:05:26 +00:00
Mike Bayer 4769ea895b - renamed autoexpire to expire_on_commit
- renamed SessionTransaction autoflush to reentrant_flush to more clearly state its purpose
- added _enable_transaction_accounting, flag for Mike Bernson which disables the whole 0.5 transaction state management; the system depends on expiry on rollback in order to function.
2008-08-03 18:03:57 +00:00
Mike Bayer d28ba32271 - The "entity_name" feature of SQLAlchemy mappers
has been removed.  For rationale, see
http://groups.google.com/group/sqlalchemy/browse_thread/thread/9e23a0641a88b96d?hl=en
2008-08-02 22:21:42 +00:00
Jason Kirtland 8c261ab7b7 - declarative.declarative_base():
takes a 'metaclass' arg, defaulting to DeclarativeMeta
  renamed 'engine' arg to 'bind', backward compat
  documented
2008-08-02 16:32:02 +00:00
Gaëtan de Menten fd51706903 typo 2008-07-29 08:43:30 +00:00
Michael Trier 5c75aed9be Corrected a couple of lingering transactional=True statements in the docs. 2008-07-19 17:52:31 +00:00
Michael Trier f899157ca9 Added new basic match() operator that performs a full-text search. Supported on PostgreSQL, SQLite, MySQL, MS-SQL, and Oracle backends. 2008-07-13 04:45:37 +00:00
Jason Kirtland 4611ad6889 Let doc font sizes adapt to browser prefs (experimental) 2008-07-10 20:31:19 +00:00
Jason Kirtland f299d9ea04 Flag beta docs with a big red capsule 2008-07-10 18:32:38 +00:00
Mike Bayer 5d375cd730 - Declarative supports a __table_args__ class variable, which
is either a dictionary, or tuple of the form
(arg1, arg2, ..., {kwarg1:value, ...}) which contains positional
+ kw arguments to be passed to the Table constructor.
[ticket:1096]
2008-07-09 20:38:35 +00:00
Michael Trier b11a772d1e Corrected grammar on session documents. Closes #1097. 2008-07-04 21:36:00 +00:00
Michael Trier 5af78e2946 Fixed typo where plugins docs were referencing synonyn_for instead of synonym_for. Closes #1029 2008-07-03 04:38:28 +00:00
Mike Bayer 5873525e48 0.5 2008-06-30 21:33:57 +00:00
Mike Bayer cd95c479e9 added string argument resolution to relation() in conjunction with declarative for: order_by,
primaryjoin, secondaryjoin, secondary, foreign_keys, and remote_side.
2008-05-26 23:01:05 +00:00
Jason Kirtland a66c441043 - Be a little smarter about aliased funcs/methods by ignoring func_name 2008-05-21 18:28:24 +00:00
Mike Bayer 89a8546d00 -removed useless log statement (merge garbage?)
- clarified autocommit mechanism
2008-05-18 17:09:21 +00:00
Jason Kirtland 81b1df8fe1 Query.one() raises either NoResultFound or MultipleResultsFound, [ticket:1034] 2008-05-14 20:44:16 +00:00
Jason Kirtland 65f4f02ec8 Columns now have default= and server_default=. PassiveDefault fades away. 2008-05-14 19:49:40 +00:00
Mike Bayer 0490fbc666 added blurb on session.rollback() 2008-05-10 20:00:10 +00:00
Mike Bayer 8413454b50 - removed all the order by's that no longer apply.
- realized about declarative that foobar: relation("SomeFutureClass") is not very useful for collections since
we can't set "order_by" there.
2008-05-10 19:19:47 +00:00
Lele Gaifax 5a77974f7d Fix typo in the ORM tutorial 2008-05-10 09:02:55 +00:00
Mike Bayer 77a707d629 order by doc 2008-05-10 00:54:17 +00:00
Mike Bayer 333a163ac2 edits 2008-05-10 00:31:35 +00:00
Mike Bayer 9fcc995b9d removed deprecated plugins docs 2008-05-10 00:31:09 +00:00
Mike Bayer cbabd91c21 added query.subquery() as shorthand for query.statement.alias() 2008-05-09 18:57:40 +00:00
Mike Bayer da44a7ac56 tweak 2008-05-09 17:28:43 +00:00
Mike Bayer 497b962f73 need delete-orphan 2008-05-09 17:21:10 +00:00
Mike Bayer 4a6afd469f r4695 merged to trunk; trunk now becomes 0.5.
0.4 development continues at /sqlalchemy/branches/rel_0_4
2008-05-09 16:34:10 +00:00
Mike Bayer b9e1a24898 fix foreign_keys example 2008-05-06 16:06:22 +00:00
Mike Bayer d95b063618 more declarative doc updates 2008-04-28 00:04:05 +00:00
Jason Kirtland 22197ca9c5 - Declarative gains @synonym_for and @comparable_using decorators 2008-03-17 22:55:43 +00:00
Mike Bayer 288f9d53e3 - the "synonym" function is now directly usable with
"declarative".  Pass in the decorated property using
the "instrument" keyword argument, e.g.:
somekey = synonym('_somekey', instrument=property(g, s))
- declared_synonym deprecated
2008-03-15 20:18:54 +00:00
Mike Bayer ec89c5ae51 typo 2008-03-12 21:04:19 +00:00
Mike Bayer 07d89b09bb more edits 2008-03-12 00:02:41 +00:00
Mike Bayer 3bcf4e69b9 fix a typo.... 2008-03-11 23:52:46 +00:00
Mike Bayer 0cb4ceeb82 filled in some of the types documentation 2008-03-11 20:03:14 +00:00
Mike Bayer 39355cfef7 updated SQL output, fixed String/Text type 2008-03-11 19:51:48 +00:00
Mike Bayer 88a8cc0c9e - a new super-small "declarative" extension has been added,
which allows Table and mapper() configuration to take place
inline underneath a class declaration.  This extension differs
from ActiveMapper and Elixir in that it does not redefine
any SQLAlchemy semantics at all; literal Column, Table
and relation() constructs are used to define the class
behavior and table definition.
2008-03-10 17:14:08 +00:00
Mike Bayer 793b7c2e6b - added "bind" keyword argument to insert(), update(), delete();
.bind property is settable on those as well as select().
2008-03-04 20:57:32 +00:00
Mike Bayer 2f0a163656 fix markdown bug 2008-03-04 00:40:40 +00:00
Mike Bayer eb51dfc4d5 document with_polymorphic() 2008-03-02 05:55:05 +00:00
Mike Bayer 8fee8e963d add note about global metadata removed [ticket:983] 2008-03-01 16:23:49 +00:00
Mike Bayer 334668d904 - added a new "higher level" operator called "of_type()" -
used in join() as well as with any() and has(), qualifies
the subclass which will be used in filter criterion,
e.g.:

query.filter(Company.employees.of_type(Engineer).
  any(Engineer.name=='foo')),

query.join(Company.employees.of_type(Engineer)).
  filter(Engineer.name=='foo')
2008-02-21 01:01:24 +00:00
Mike Bayer 85e8cb7ffb add pk cols to assocaition table 2008-02-12 16:45:39 +00:00
Mike Bayer 3ab7149e25 added info on foreign_keys attribute 2008-02-09 17:26:48 +00:00
Jason Kirtland 9bc19046d1 - clean up the print version of the docs a bit [ticket:745] 2008-02-06 01:32:33 +00:00
Jason Kirtland 28af2439d9 - doc edits- thanks asmodai! [ticket:906] 2008-02-05 20:26:08 +00:00
Mike Bayer 63d2ce5191 encourage usage of union() and other composites as module-level 2008-01-25 20:52:13 +00:00
Mike Bayer 29f7a38ee0 added an intro for the code sample so that its not construed as a "synopsis" 2008-01-23 20:00:53 +00:00