From 9bfd0289383bfcaf650fe516862df545dcf95c2e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 1 Oct 2016 09:42:21 -0400 Subject: - some documentation hits Change-Id: I468fe70168804b08cf0d5e8b57e235bca904b1ff --- lib/sqlalchemy/sql/schema.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 98a96fd56..fe98138ad 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -1061,6 +1061,10 @@ class Column(SchemaItem, ColumnClause): using :class:`.ColumnDefault` as a positional argument with ``for_update=True``. + .. seealso:: + + :ref:`metadata_defaults` - complete discussion of onupdate + :param primary_key: If ``True``, marks this column as a primary key column. Multiple columns can have this flag set to specify composite primary keys. As an alternative, the primary key of a @@ -1095,14 +1099,20 @@ class Column(SchemaItem, ColumnClause): .. seealso:: - :ref:`server_defaults` + :ref:`server_defaults` - complete discussion of server side + defaults :param server_onupdate: A :class:`.FetchedValue` instance - representing a database-side default generation function. This + representing a database-side default generation function, + such as a trigger. This indicates to SQLAlchemy that a newly generated value will be - available after updates. This construct does not specify any DDL - and the implementation is left to the database, such as via a - trigger. + available after updates. This construct does not actually + implement any kind of generation function within the database, + which instead must be specified separately. + + .. seealso:: + + :ref:`triggered_columns` :param quote: Force quoting of this column's name on or off, corresponding to ``True`` or ``False``. When left at its default -- cgit v1.2.1