diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-12-27 15:55:30 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-12-27 16:22:41 -0500 |
commit | 544e72bcb6af1ca657b1762f105634372eca3bc0 (patch) | |
tree | e574944f2b8e11ca5560188317f6611adac886c3 /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | ef6dc0cf2ef581e7cb53dcb4840f678aa1fa5ba6 (diff) | |
download | sqlalchemy-544e72bcb6af1ca657b1762f105634372eca3bc0.tar.gz |
- corrections
- attempt to add a script to semi-automate the fixing of links
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 034ee9076..d1fcbef3e 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -299,7 +299,7 @@ not re-compute the column on demand. In order to provide for this explicit query planning, or to use different search strategies, the ``match`` method accepts a ``postgresql_regconfig`` -keyword argument. +keyword argument:: select([mytable.c.id]).where( mytable.c.title.match('somestring', postgresql_regconfig='english') @@ -311,7 +311,7 @@ Emits the equivalent of:: WHERE mytable.title @@ to_tsquery('english', 'somestring') One can also specifically pass in a `'regconfig'` value to the -``to_tsvector()`` command as the initial argument. +``to_tsvector()`` command as the initial argument:: select([mytable.c.id]).where( func.to_tsvector('english', mytable.c.title )\ |