File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ Fulltext search in CrateDB is performed using :ref:`crate-reference:predicates_m
113
113
The CrateDB SQLAlchemy dialect comes with a ``match `` function, which can be used to
114
114
search on one or multiple fields.
115
115
116
- >>> from sqlalchemy_cratedb.predicates import match
116
+ >>> from sqlalchemy_cratedb import match
117
117
118
118
>>> session.query(Character.name) \
119
119
... .filter(match(Character.name_ft, ' Arthur' )) \
Original file line number Diff line number Diff line change @@ -588,12 +588,12 @@ Matching
588
588
589
589
Fulltext Search in CrateDB is done with the :ref: `crate-reference:predicates_match `.
590
590
591
- The CrateDB SQLAlchemy dialect provides a ``match `` function in the
592
- `` predicates `` module, which can be used to search one or multiple fields.
591
+ The CrateDB SQLAlchemy dialect provides a ``match `` function, which can be used
592
+ to search one or multiple fields.
593
593
594
594
Here's an example use of the ``match `` function:
595
595
596
- >>> from sqlalchemy_cratedb.predicates import match
596
+ >>> from sqlalchemy_cratedb import match
597
597
598
598
>>> session.query(Character.name) \
599
599
... .filter(match(Character.name_ft, ' Arthur' )) \
Original file line number Diff line number Diff line change 21
21
22
22
from .compat .api13 import monkeypatch_add_exec_driver_sql
23
23
from .dialect import CrateDialect
24
+ from .predicate import match
24
25
from .sa_version import SA_1_4 , SA_2_0 , SA_VERSION
25
26
from .support import insert_bulk
26
27
from .type .array import ObjectArray
54
55
Geoshape ,
55
56
ObjectArray ,
56
57
ObjectType ,
58
+ match ,
57
59
]
File renamed without changes.
Original file line number Diff line number Diff line change 31
31
from sqlalchemy .ext .declarative import declarative_base
32
32
33
33
from sqlalchemy_cratedb import ObjectType
34
- from sqlalchemy_cratedb .predicates import match
34
+ from sqlalchemy_cratedb .predicate import match
35
35
from crate .client .cursor import Cursor
36
36
37
37
You can’t perform that action at this time.
0 commit comments