summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-03-05 20:31:44 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-03-05 20:31:44 +0000
commit9c4f3c0480f54e08b3aa2800ed76e89f957f8131 (patch)
treee7cad83cbd55ff0e2a3f4103160e7e8fed6b6a2c /doc
parentc1d0c2dffc0eedfa63de5b90addb70bfd3a81540 (diff)
downloadsqlalchemy-9c4f3c0480f54e08b3aa2800ed76e89f957f8131.tar.gz
got column onupdate working
improvement to Function so that they can more easily be called standalone without having to throw them into a select().
Diffstat (limited to 'doc')
-rw-r--r--doc/build/content/sqlconstruction.myt11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/build/content/sqlconstruction.myt b/doc/build/content/sqlconstruction.myt
index c38670506..065ef2bcc 100644
--- a/doc/build/content/sqlconstruction.myt
+++ b/doc/build/content/sqlconstruction.myt
@@ -341,6 +341,17 @@ WHERE substr(users.user_name, :substr) = :substr_1
</&>
</&>
+ <p>Functions also are callable as standalone values:</p>
+ <&|formatting.myt:code &>
+ # call the "now()" function
+ time = func.now(engine=myengine).scalar()
+
+ # call myfunc(1,2,3)
+ myvalue = func.myfunc(1, 2, 3, engine=db).execute()
+
+ # or call them off the engine
+ db.func.now().scalar()
+ </&>
</&>
<&|doclib.myt:item, name="literals", description="Literals" &>
<p>You can drop in a literal value anywhere there isnt a column to attach to via the <span class="codeline">literal</span> keyword:</p>