sqlalchemy-bigquery 0.0.6__tar.gz → 0.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/PKG-INFO +1 -1
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery/__init__.py +1 -1
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery/base.py +5 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/PKG-INFO +1 -1
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/SOURCES.txt +1 -0
- sqlalchemy_bigquery-0.0.7/sqlalchemy_bigquery.egg-info/pbr.json +1 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/test/test_suite.py +11 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/CHANGES.txt +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/MANIFEST.in +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/README.rst +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/setup.cfg +1 -1
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/setup.py +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery/pyodbc.py +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery/requirements.py +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/dependency_links.txt +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/entry_points.txt +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/not-zip-safe +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/top_level.txt +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/test/__init__.py +0 -0
- {sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/test/conftest.py +0 -0
|
@@ -69,6 +69,11 @@ class BQSQLCompiler(mssql_base.MSSQLCompiler):
|
|
|
69
69
|
**kwargs
|
|
70
70
|
)
|
|
71
71
|
|
|
72
|
+
def visit_match_op_binary(self, binary, operator, **kw):
|
|
73
|
+
return "%s CONTAINS %s" % (
|
|
74
|
+
self.process(binary.left, **kw),
|
|
75
|
+
self.process(binary.right, **kw))
|
|
76
|
+
|
|
72
77
|
|
|
73
78
|
class BQIdentifierPreparer(compiler.IdentifierPreparer):
|
|
74
79
|
def __init__(self, dialect):
|
{sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/SOURCES.txt
RENAMED
|
@@ -12,6 +12,7 @@ sqlalchemy_bigquery.egg-info/SOURCES.txt
|
|
|
12
12
|
sqlalchemy_bigquery.egg-info/dependency_links.txt
|
|
13
13
|
sqlalchemy_bigquery.egg-info/entry_points.txt
|
|
14
14
|
sqlalchemy_bigquery.egg-info/not-zip-safe
|
|
15
|
+
sqlalchemy_bigquery.egg-info/pbr.json
|
|
15
16
|
sqlalchemy_bigquery.egg-info/top_level.txt
|
|
16
17
|
test/__init__.py
|
|
17
18
|
test/conftest.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"is_release": false, "git_version": "f78e612"}
|
|
@@ -99,3 +99,14 @@ def test_limit_compiles_correctly():
|
|
|
99
99
|
).compile(
|
|
100
100
|
dialect=bq.BQDialect())
|
|
101
101
|
assert ('LIMIT 5' in str(s)) and ('TOP 5' not in str(s))
|
|
102
|
+
|
|
103
|
+
def test_matches_correct_order():
|
|
104
|
+
s = sql.select([
|
|
105
|
+
sql.column("beef")
|
|
106
|
+
]).where(
|
|
107
|
+
sql.column("beef").match("cow")
|
|
108
|
+
).compile(
|
|
109
|
+
compile_kwargs={"literal_binds": True},
|
|
110
|
+
dialect=bq.BQDialect()
|
|
111
|
+
)
|
|
112
|
+
assert "WHERE beef CONTAINS 'cow'" in str(s)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{sqlalchemy_bigquery-0.0.6 → sqlalchemy_bigquery-0.0.7}/sqlalchemy_bigquery.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|