crate 0.35.1__tar.gz → 1.0.0__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.
Files changed (93) hide show
  1. crate-1.0.0/CHANGES.rst +927 -0
  2. {crate-0.35.1 → crate-1.0.0}/DEVELOP.rst +42 -15
  3. {crate-0.35.1 → crate-1.0.0}/LICENSE +0 -70
  4. crate-1.0.0/MANIFEST.in +5 -0
  5. {crate-0.35.1 → crate-1.0.0}/NOTICE +1 -1
  6. {crate-0.35.1 → crate-1.0.0}/PKG-INFO +52 -25
  7. {crate-0.35.1 → crate-1.0.0}/README.rst +31 -20
  8. crate-1.0.0/docs/_extra/robots.txt +4 -0
  9. crate-1.0.0/docs/backlog.rst +6 -0
  10. crate-1.0.0/docs/blobs.rst +162 -0
  11. crate-1.0.0/docs/by-example/blob.rst +100 -0
  12. crate-1.0.0/docs/by-example/client.rst +321 -0
  13. crate-1.0.0/docs/by-example/connection.rst +68 -0
  14. crate-1.0.0/docs/by-example/cursor.rst +442 -0
  15. crate-1.0.0/docs/by-example/http.rst +248 -0
  16. crate-1.0.0/docs/by-example/https.rst +127 -0
  17. crate-1.0.0/docs/by-example/index.rst +27 -0
  18. crate-1.0.0/docs/conf.py +35 -0
  19. crate-1.0.0/docs/connect.rst +286 -0
  20. crate-1.0.0/docs/data-types.rst +110 -0
  21. crate-1.0.0/docs/docutils.conf +3 -0
  22. crate-1.0.0/docs/getting-started.rst +75 -0
  23. crate-1.0.0/docs/index-all.rst +22 -0
  24. crate-1.0.0/docs/index.rst +194 -0
  25. crate-1.0.0/docs/other-options.rst +55 -0
  26. crate-1.0.0/docs/query.rst +302 -0
  27. crate-1.0.0/docs/sqlalchemy.rst +17 -0
  28. crate-1.0.0/pyproject.toml +102 -0
  29. crate-1.0.0/requirements.txt +2 -0
  30. crate-1.0.0/setup.cfg +4 -0
  31. crate-1.0.0/setup.py +101 -0
  32. {crate-0.35.1 → crate-1.0.0}/src/crate/client/__init__.py +4 -4
  33. {crate-0.35.1 → crate-1.0.0}/src/crate/client/blob.py +9 -7
  34. {crate-0.35.1 → crate-1.0.0}/src/crate/client/connection.py +58 -52
  35. {crate-0.35.1 → crate-1.0.0}/src/crate/client/converter.py +15 -10
  36. {crate-0.35.1 → crate-1.0.0}/src/crate/client/cursor.py +55 -51
  37. {crate-0.35.1 → crate-1.0.0}/src/crate/client/exceptions.py +10 -3
  38. {crate-0.35.1 → crate-1.0.0}/src/crate/client/http.py +192 -160
  39. crate-1.0.0/src/crate/testing/__init__.py +0 -0
  40. {crate-0.35.1 → crate-1.0.0}/src/crate/testing/layer.py +140 -102
  41. crate-0.35.1/src/crate/client/test_util.py → crate-1.0.0/src/crate/testing/util.py +30 -4
  42. {crate-0.35.1 → crate-1.0.0}/src/crate.egg-info/PKG-INFO +52 -25
  43. crate-1.0.0/src/crate.egg-info/SOURCES.txt +48 -0
  44. {crate-0.35.1 → crate-1.0.0}/src/crate.egg-info/requires.txt +13 -17
  45. crate-0.35.1/MANIFEST.in +0 -5
  46. crate-0.35.1/docs/_extra/robots.txt +0 -4
  47. crate-0.35.1/pyproject.toml +0 -5
  48. crate-0.35.1/setup.cfg +0 -10
  49. crate-0.35.1/setup.py +0 -104
  50. crate-0.35.1/src/crate/__init__.py +0 -28
  51. crate-0.35.1/src/crate/client/pki/readme.rst +0 -91
  52. crate-0.35.1/src/crate/client/sqlalchemy/__init__.py +0 -50
  53. crate-0.35.1/src/crate/client/sqlalchemy/compat/api13.py +0 -156
  54. crate-0.35.1/src/crate/client/sqlalchemy/compat/core10.py +0 -264
  55. crate-0.35.1/src/crate/client/sqlalchemy/compat/core14.py +0 -359
  56. crate-0.35.1/src/crate/client/sqlalchemy/compat/core20.py +0 -447
  57. crate-0.35.1/src/crate/client/sqlalchemy/compiler.py +0 -318
  58. crate-0.35.1/src/crate/client/sqlalchemy/dialect.py +0 -369
  59. crate-0.35.1/src/crate/client/sqlalchemy/predicates/__init__.py +0 -99
  60. crate-0.35.1/src/crate/client/sqlalchemy/sa_version.py +0 -28
  61. crate-0.35.1/src/crate/client/sqlalchemy/support.py +0 -62
  62. crate-0.35.1/src/crate/client/sqlalchemy/tests/__init__.py +0 -59
  63. crate-0.35.1/src/crate/client/sqlalchemy/tests/array_test.py +0 -111
  64. crate-0.35.1/src/crate/client/sqlalchemy/tests/bulk_test.py +0 -256
  65. crate-0.35.1/src/crate/client/sqlalchemy/tests/compiler_test.py +0 -434
  66. crate-0.35.1/src/crate/client/sqlalchemy/tests/connection_test.py +0 -129
  67. crate-0.35.1/src/crate/client/sqlalchemy/tests/create_table_test.py +0 -313
  68. crate-0.35.1/src/crate/client/sqlalchemy/tests/datetime_test.py +0 -90
  69. crate-0.35.1/src/crate/client/sqlalchemy/tests/dialect_test.py +0 -156
  70. crate-0.35.1/src/crate/client/sqlalchemy/tests/dict_test.py +0 -460
  71. crate-0.35.1/src/crate/client/sqlalchemy/tests/function_test.py +0 -47
  72. crate-0.35.1/src/crate/client/sqlalchemy/tests/insert_from_select_test.py +0 -85
  73. crate-0.35.1/src/crate/client/sqlalchemy/tests/match_test.py +0 -137
  74. crate-0.35.1/src/crate/client/sqlalchemy/tests/query_caching.py +0 -143
  75. crate-0.35.1/src/crate/client/sqlalchemy/tests/update_test.py +0 -115
  76. crate-0.35.1/src/crate/client/sqlalchemy/tests/warnings_test.py +0 -64
  77. crate-0.35.1/src/crate/client/sqlalchemy/types.py +0 -277
  78. crate-0.35.1/src/crate/client/test_connection.py +0 -98
  79. crate-0.35.1/src/crate/client/test_cursor.py +0 -341
  80. crate-0.35.1/src/crate/client/test_http.py +0 -678
  81. crate-0.35.1/src/crate/testing/__init__.py +0 -1
  82. crate-0.35.1/src/crate/testing/settings.py +0 -51
  83. crate-0.35.1/src/crate/testing/test_layer.py +0 -290
  84. crate-0.35.1/src/crate/testing/util.py +0 -20
  85. crate-0.35.1/src/crate.egg-info/SOURCES.txt +0 -64
  86. crate-0.35.1/src/crate.egg-info/entry_points.txt +0 -2
  87. crate-0.35.1/src/crate.egg-info/namespace_packages.txt +0 -1
  88. {crate-0.35.1 → crate-1.0.0}/CONTRIBUTING.rst +0 -0
  89. {crate-0.35.1 → crate-1.0.0}/docs/requirements.txt +0 -0
  90. {crate-0.35.1/src/crate/client/sqlalchemy/compat → crate-1.0.0/src/crate}/__init__.py +0 -0
  91. {crate-0.35.1 → crate-1.0.0}/src/crate/client/_pep440.py +0 -0
  92. {crate-0.35.1 → crate-1.0.0}/src/crate.egg-info/dependency_links.txt +0 -0
  93. {crate-0.35.1 → crate-1.0.0}/src/crate.egg-info/top_level.txt +0 -0
@@ -0,0 +1,927 @@
1
+ =================
2
+ Changes for crate
3
+ =================
4
+
5
+ Unreleased
6
+ ==========
7
+
8
+ 2024/11/05 1.0.0
9
+ ================
10
+
11
+ - BREAKING CHANGE: The SQLAlchemy dialect has been split off into
12
+ the `sqlalchemy-cratedb`_ package, see notice below.
13
+ - Feature: Returned Python ``datetime`` objects are now always timezone-aware,
14
+ using UTC by default.
15
+ It may be a breaking change for some users of the library that don't expect
16
+ to receive "aware" instead of "naive" Python ``datetime`` objects from now
17
+ on, i.e. instances with or without the ``tzinfo`` attribute set.
18
+ When no ``time_zone`` information is specified when creating a database
19
+ connection or cursor, ``datetime`` objects will now use Coordinated
20
+ Universal Time (UTC), like CrateDB is storing timestamp values in this
21
+ format.
22
+ This update is coming from a deprecation of Python's
23
+ ``datetime.utcfromtimestamp()``, which is effectively also phasing out
24
+ the use of "naive" timestamp objects in Python, in favor of using
25
+ timezone-aware objects, also to represent datetimes in UTC.
26
+ - Feature: Configured DB API interface attribute ``threadsafety = 1``,
27
+ which signals "Threads may share the module, but not connections."
28
+ - Feature: Added ``error_trace`` to string representation of an Error,
29
+ to relay server stacktraces into exception messages.
30
+ - Refactoring: The module namespace ``crate.client.test_util`` has been
31
+ renamed to ``crate.testing.util``.
32
+ - Error handling: At two spots in cursor / value converter handling, where
33
+ ``assert`` statements have been used, ``ValueError`` exceptions are raised
34
+ now.
35
+ - Python: Migrated to use "implicit namespace packages" instead of "declared
36
+ namespaces" for the ``crate`` namespace package, see `PEP 420`_.
37
+
38
+
39
+ .. note::
40
+
41
+ For learning about the transition to `sqlalchemy-cratedb`_,
42
+ we recommend to read the enumeration of necessary migration steps
43
+ at `Migrate from crate.client to sqlalchemy-cratedb`_.
44
+
45
+
46
+ .. _Migrate from crate.client to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
47
+ .. _PEP 420: https://peps.python.org/pep-0420/
48
+ .. _sqlalchemy-cratedb: https://pypi.org/project/sqlalchemy-cratedb/
49
+
50
+
51
+ 2024/01/18 0.35.2
52
+ =================
53
+
54
+ - Test compatibility: Permit installation of pandas 2.1.
55
+
56
+
57
+ 2024/01/18 0.35.1
58
+ =================
59
+
60
+ - Compatibility: Re-add ``crate.client._pep440.Version`` from ``verlib2``.
61
+ It is needed the prevent breaking ``crash``.
62
+
63
+
64
+ 2024/01/17 0.35.0
65
+ =================
66
+
67
+ - Permit ``urllib3.Timeout`` instances for defining timeout values.
68
+ This way, both ``connect`` and ``read`` socket timeout settings can be
69
+ configured. The unit is seconds.
70
+
71
+
72
+ 2023/09/29 0.34.0
73
+ =================
74
+
75
+ - Properly handle Python-native UUID types in SQL parameters. Thanks,
76
+ @SStorm.
77
+ - SQLAlchemy: Fix handling URL parameters ``timeout`` and ``pool_size``
78
+ - Permit installation with urllib3 v2, see also `urllib3 v2.0 roadmap`_
79
+ and `urllib3 v2.0 migration guide`_. You can optionally retain support
80
+ for TLS 1.0 and TLS 1.1, but a few other outdated use-cases of X.509
81
+ certificate details are immanent, like no longer accepting the long
82
+ deprecated ``commonName`` attribute. Instead, going forward, only the
83
+ ``subjectAltName`` attribute will be used.
84
+ - SQLAlchemy: Improve DDL compiler to ignore foreign key and uniqueness
85
+ constraints.
86
+ - DBAPI: Properly raise ``IntegrityError`` exceptions instead of
87
+ ``ProgrammingError``, when CrateDB raises a ``DuplicateKeyException``.
88
+ - SQLAlchemy: Ignore SQL's ``FOR UPDATE`` clause. Thanks, @surister.
89
+
90
+ .. _urllib3 v2.0 migration guide: https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html
91
+ .. _urllib3 v2.0 roadmap: https://urllib3.readthedocs.io/en/stable/v2-roadmap.html
92
+
93
+
94
+ 2023/07/17 0.33.0
95
+ =================
96
+
97
+ - SQLAlchemy: Rename leftover occurrences of ``Object``. The new symbol to represent
98
+ CrateDB's ``OBJECT`` column type is now ``ObjectType``.
99
+
100
+ - SQLAlchemy DQL: Use CrateDB's native ``ILIKE`` operator instead of using SA's
101
+ generic implementation ``lower() LIKE lower()``. Thanks, @hlcianfagna.
102
+
103
+
104
+ 2023/07/06 0.32.0
105
+ =================
106
+
107
+ - SQLAlchemy DDL: Allow turning off column store using ``crate_columnstore=False``.
108
+ Thanks, @fetzerms.
109
+
110
+ - SQLAlchemy DDL: Allow setting ``server_default`` on columns to enable
111
+ server-generated defaults. Thanks, @JanLikar.
112
+
113
+ - Allow handling datetime values tagged with time zone info when inserting or updating.
114
+
115
+ - SQLAlchemy: Fix SQL statement caching for CrateDB's ``OBJECT`` type. Thanks, @faymarie.
116
+
117
+ - SQLAlchemy: Refactor ``OBJECT`` type to use SQLAlchemy's JSON type infrastructure.
118
+
119
+ - SQLAlchemy: Added ``insert_bulk`` fast-path ``INSERT`` method for pandas, in
120
+ order to support efficient batch inserts using CrateDB's "bulk operations" endpoint.
121
+
122
+ - SQLAlchemy: Add documentation and software tests for usage with Dask
123
+
124
+
125
+ 2023/04/18 0.31.1
126
+ =================
127
+
128
+ - SQLAlchemy Core: Re-enable support for ``INSERT/UPDATE...RETURNING`` in
129
+ SQLAlchemy 2.0 by adding the new ``insert_returning`` and ``update_returning`` flags
130
+ in the CrateDB dialect.
131
+
132
+
133
+ 2023/03/30 0.31.0
134
+ =================
135
+
136
+ - SQLAlchemy Core: Support ``INSERT...VALUES`` with multiple value sets by enabling
137
+ ``supports_multivalues_insert`` on the CrateDB dialect, it is used by pandas'
138
+ ``method="multi"`` option
139
+
140
+ - SQLAlchemy Core: Enable the ``insertmanyvalues`` feature, which lets you control
141
+ the batch size of ``INSERT`` operations using the ``insertmanyvalues_page_size``
142
+ engine-, connection-, and statement-options.
143
+
144
+ - SQLAlchemy ORM: Remove support for the legacy ``session.bulk_save_objects`` API
145
+ on SQLAlchemy 2.0, in favor of the new ``insertmanyvalues`` feature. Performance
146
+ optimizations from ``bulk_save()`` have been made inherently part of ``add_all()``.
147
+ Note: The legacy mode will still work on SQLAlchemy 1.x, while SQLAlchemy 2.x users
148
+ MUST switch to the new method now.
149
+
150
+
151
+ 2023/03/02 0.30.1
152
+ =================
153
+
154
+ - Fixed SQLAlchemy 2.0 incompatibility with ``CrateDialect.{has_schema,has_table}``
155
+
156
+
157
+ 2023/02/16 0.30.0
158
+ =================
159
+
160
+ - Added deprecation warning about dropping support for SQLAlchemy 1.3 soon, it
161
+ is effectively EOL.
162
+
163
+ - Added support for SQLAlchemy 2.0. See also `What's New in SQLAlchemy 2.0`_
164
+ and `SQLAlchemy 2.0 migration guide`_.
165
+
166
+ - Updated to geojson 3.0.0.
167
+
168
+ .. _SQLAlchemy 2.0 migration guide: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html
169
+ .. _What's New in SQLAlchemy 2.0: https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html
170
+
171
+
172
+ 2022/12/08 0.29.0
173
+ =================
174
+
175
+ - SQLAlchemy: Added support for ``crate_index`` and ``nullable`` attributes in
176
+ ORM column definitions.
177
+
178
+ - Added support for converting ``TIMESTAMP`` columns to timezone-aware
179
+ ``datetime`` objects, using the new ``time_zone`` keyword argument.
180
+
181
+
182
+ 2022/12/02 0.28.0
183
+ =================
184
+
185
+ - Added a generic data type converter to the ``Cursor`` object, for converting
186
+ fetched data from CrateDB data types to Python data types.
187
+
188
+ - Fixed generating appropriate syntax for OFFSET/LIMIT clauses. It was possible
189
+ that SQL statement clauses like ``LIMIT -1`` could have been generated. Both
190
+ PostgreSQL and CrateDB only accept ``LIMIT ALL`` instead.
191
+
192
+ - Added support for computed columns in the SQLAlchemy ORM
193
+
194
+ 2022/10/10 0.27.2
195
+ =================
196
+
197
+ - Improved SQLAlchemy's ``CrateDialect.get_pk_constraint`` to be compatible
198
+ with breaking changes in CrateDB >=5.1.0.
199
+
200
+
201
+ 2022/07/04 0.27.1
202
+ =================
203
+
204
+ - Fixed regression introduced by ``0.27.0`` resulting in unavailable servers if
205
+ all configured servers aren't reachable once.
206
+
207
+
208
+ 2022/06/02 0.27.0
209
+ =================
210
+
211
+ - Added support for Python 3.9 and 3.10.
212
+
213
+ - Dropped support for Python 3.4, 3.5 and 3.6.
214
+
215
+ - Dropped support for SQLAlchemy 1.1 and 1.2.
216
+
217
+ - Dropped support for CrateDB < 2.0.0.
218
+
219
+ - BREAKING CHANGE: The driver now verifies SSL certificates when connecting via
220
+ HTTP by default. Previously, this setting defaulted to false. This setting
221
+ can be changed via the ``verify_ssl_cert`` connection parameter.
222
+
223
+ - Adjusted connect arguments to accept credentials within the HTTP URI.
224
+
225
+ - Added support for enabling SSL using SQLAlchemy DB URI with parameter
226
+ ``?ssl=true``.
227
+
228
+ - Added support for SQLAlchemy 1.4
229
+
230
+ .. note::
231
+
232
+ For learning about the transition to SQLAlchemy 1.4, we recommend the
233
+ corresponding documentation `What’s New in SQLAlchemy 1.4?`_.
234
+
235
+
236
+
237
+ Breaking changes
238
+ ----------------
239
+
240
+ Textual column expressions
241
+ ''''''''''''''''''''''''''
242
+
243
+ SQLAlchemy 1.4 became stricter on some details. It requires to wrap `CrateDB
244
+ system columns`_ like ``_score`` in a `SQLAlchemy literal_column`_ type.
245
+ Before, it was possible to use a query like this::
246
+
247
+ session.query(Character.name, '_score')
248
+
249
+ It must now be written like::
250
+
251
+ session.query(Character.name, sa.literal_column('_score'))
252
+
253
+ Otherwise, SQLAlchemy will complain like::
254
+
255
+ sqlalchemy.exc.ArgumentError: Textual column expression '_score' should be
256
+ explicitly declared with text('_score'), or use column('_score') for more
257
+ specificity
258
+
259
+
260
+ .. _CrateDB system columns: https://crate.io/docs/crate/reference/en/4.8/general/ddl/system-columns.html
261
+ .. _SQLAlchemy literal_column: https://docs.sqlalchemy.org/en/14/core/sqlelement.html#sqlalchemy.sql.expression.literal_column
262
+ .. _What’s New in SQLAlchemy 1.4?: https://docs.sqlalchemy.org/en/14/changelog/migration_14.html
263
+
264
+
265
+ 2020/09/28 0.26.0
266
+ =================
267
+
268
+ - Enabled TCP keepalive on socket level and support for setting socket options
269
+ when creating the connection. The supported options are:
270
+
271
+ - ``TCP_KEEPIDLE`` (overriding ``net.ipv4.tcp_keepalive_time``)
272
+ - ``TCP_KEEPINTVL`` (overriding ``net.ipv4.tcp_keepalive_intvl``)
273
+ - ``TCP_KEEPCNT`` (overriding ``net.ipv4.tcp_keepalive_probes``)
274
+
275
+ - Propagate connect parameter ``pool_size`` to urllib3 as ``maxsize`` parameter
276
+ in order to make the connection pool size configurable.
277
+
278
+ 2020/08/05 0.25.0
279
+ =================
280
+
281
+ - Added support for the ``RETURNING`` clause to the SQLAlchemy dialect. This
282
+ requires CrateDB 4.2 or greater. In case you use any server side generated
283
+ columns in your primary key constraint with earlier CrateDB versions, you can
284
+ turn this feature off by passing ``implicit_returning=False`` in the
285
+ ``create_engine()`` call.
286
+
287
+ - Added support for ``geo_point`` and ``geo_json`` types to the SQLAlchemy
288
+ dialect.
289
+
290
+ 2020/05/27 0.24.0
291
+ =================
292
+
293
+ - Upgraded SQLAlchemy support to 1.3.
294
+
295
+ - Added ``backoff_factor`` in connection to configure retry interval.
296
+
297
+ - Added official Python 3.8 support.
298
+
299
+ - Made it so that the SQLAlchemy dialect is now aware of the return type of the
300
+ ``date_trunc`` function.
301
+
302
+ - Added driver attribute, as SQLAlchemy relies on interfaces having that string for identification.
303
+
304
+ 2019/09/19 0.23.2
305
+ =================
306
+
307
+ - Fixed a bug in the ``CrateLayer`` which caused ``CrateDB`` not to start up,
308
+ in case the ``JAVA_HOME`` environment variable was not set.
309
+
310
+ 2019/08/01 0.23.1
311
+ =================
312
+
313
+ - Extended the type mapping for SQLAlchemy for the upcoming type name changes
314
+ in CrateDB 4.0.
315
+
316
+ - Added support for Python 3.7 and made that version the recommended one.
317
+
318
+ 2019/03/05 0.23.0
319
+ =================
320
+
321
+ - Fixed a resource leak in ``CrateLayer``
322
+
323
+ - Added ability to specify chunk size when getting a blob from the blob container
324
+
325
+ 2018/08/08 0.22.1
326
+ =================
327
+
328
+ - Client no longer removes servers from the active server list when encountering a
329
+ connection reset or a broken pipe error.
330
+
331
+ 2018/05/02 0.22.0
332
+ =================
333
+
334
+ - BREAKING: Dropped support for Python 2.7 and 3.3
335
+ If you are using this package with Python 2.7 or 3.3 already, you will not be
336
+ able to install newer versions of this package.
337
+
338
+ - Add support for SQLAlchemy 1.2
339
+
340
+ - The client now allows to define a different default schema when connecting to
341
+ CrateDB with the ``schema`` keyword argument. This causes all statements and
342
+ queries that do not specify a schema explicitly to use the provided schema.
343
+
344
+ - Updated ``get_table_names()`` method in SQLAlchemy dialect to only return
345
+ tables but not views. This enables compatibility with CrateDB 3.0 and newer.
346
+
347
+ 2018/03/14 0.21.3
348
+ =================
349
+
350
+ - Fixed an issue that caused ``metadata.create_all(bind=engine)`` to fail
351
+ creating tables that contain an ``ObjectArray`` column.
352
+
353
+ 2018/02/15 0.21.2
354
+ =================
355
+
356
+ - BREAKING: In the testing layer, the custom setting of
357
+ `cluster.routing.allocation.disk.watermark.low` (1b) and
358
+ `cluster.routing.allocation.disk.watermark.high` (1b) has been removed.
359
+ These now default to 85% and 90%, respectively.
360
+
361
+ 2018/01/03 0.21.1
362
+ =================
363
+
364
+ - Fixed an issue that prevented the usage of SQLAlchemy types ``NUMERIC`` and
365
+ ``DECIMAL`` as column types.
366
+
367
+ 2017/12/07 0.21.0
368
+ =================
369
+
370
+ - Added new parameter ``password`` used to authenticate the user in CrateDB.
371
+
372
+ - Prepared SQL Alchemy primary key retrieval for CrateDB 2.3.0. Preserved
373
+ backwards-compatibility for lower versions.
374
+
375
+ 2017/08/18 0.20.1
376
+ =================
377
+
378
+ - Fixed deprecation warnings logged in CrateDB server on every REST request.
379
+
380
+ 2017/06/26 0.20.0
381
+ =================
382
+
383
+ - Added new parameter ``username`` used to authenticate the user in CrateDB.
384
+
385
+ 2017/06/23 0.19.5
386
+ =================
387
+
388
+ - Enforced cert check when verify_ssl_cert=True
389
+
390
+ 2017/06/20 0.19.4
391
+ =================
392
+
393
+ - Testing: Fixed issue that caused the test layer to hang after it failed to
394
+ start a CrateDB instance in time.
395
+
396
+ 2017/05/18 0.19.3
397
+ =================
398
+
399
+ - Fix bulk updates which were broken due to query rewrites.
400
+
401
+
402
+ 2017/04/28 0.19.2
403
+ =================
404
+
405
+ - Output logs in test-layer in case when CrateDB instance does not start in
406
+ time.
407
+
408
+ - Increased the default timeout for the test-layer startup to avoid timeouts
409
+ on slow hosts.
410
+
411
+ 2017/02/27 0.19.1
412
+ =================
413
+
414
+ - Testing: Prevent the process.stdout buffer from filling up in the test layer
415
+ which in turn would cause the process to block
416
+
417
+ - Raise more meaningful `BlobLocationNotFoundException` error when
418
+ trying to upload a file to an invalid blob table.
419
+
420
+
421
+ 2017/02/17 0.19.0
422
+ =================
423
+
424
+ - Testing: Added support for setting environment variables.
425
+
426
+ 2017/02/02 0.18.0
427
+ =================
428
+
429
+ - BREAKING: Dropped Crate version < 1.0.0 support for Crate test layer
430
+
431
+ - Testing: Dropped ``multicast`` support for Crate test layer
432
+
433
+ - Added support for ``Insert`` from select to the SQLAlchemy dialect
434
+
435
+ - sqlalchemy: support `get_columns` and `get_pk_constraint`
436
+
437
+ 2016/12/19 0.17.0
438
+ =================
439
+
440
+ - BREAKING: Dropped support for SQLAlchemy < 1.0.0
441
+
442
+ - Fix sqlalchemy: crate dialect didn't work properly with alpha and beta
443
+ versions of sqlalchemy due to a wrong version check
444
+ (e.g.: sandman2 depends on 1.1.0b3)
445
+
446
+ - sqlalchemy: added support for native Arrays
447
+
448
+ - Fix sqlalchemy: ``sa.inspect(engine).get_table_names`` failed due
449
+ to an attribute error
450
+
451
+ 2016/11/21 0.16.5
452
+ =================
453
+
454
+ - Added compatibility for SQLAlchemy version 1.1
455
+
456
+ 2016/10/18 0.16.4
457
+ =================
458
+
459
+ - Fix sqlalchemy: updates in nested object columns have been ignored
460
+
461
+ 2016/08/16 0.16.3
462
+ =================
463
+
464
+ - Fix: Avoid invalid keyword argument error when fetching blobs from cluster
465
+ by removing certificate keywords before creating non-https server in pool.
466
+
467
+ - Testing: Made Crate test layer logging less verbose (hide Crate startup logs)
468
+ and added ``verbose keyword`` argument to layer to control its verbosity.
469
+
470
+ 2016/07/22 0.16.2
471
+ =================
472
+
473
+ - Increased ``urllib3`` version requirement to >=1.9 to prevent from
474
+ compatibility issues.
475
+
476
+ - Testing: Do not rely on startup log if static http port is defined in test
477
+ layer.
478
+
479
+ 2016/06/23 0.16.1
480
+ =================
481
+
482
+ - Fix: ``Date`` column type is now correctly created as ``TIMESTAMP`` column
483
+ when creating the table
484
+
485
+ 2016/06/09 0.16.0
486
+ =================
487
+
488
+ - Added a ``from_uri`` factory method to the ``CrateLayer``
489
+
490
+ - The ``Connection`` class now supports the context management protocol and
491
+ can therefore be used with the ``with`` statement.
492
+
493
+ - Sockets are now properly closed if a connection is closed.
494
+
495
+ - Added support for serialization of Decimals
496
+
497
+ 2016/05/17 0.15.0
498
+ =================
499
+
500
+ - Added support for client certificates
501
+
502
+ - Dropped support for Python 2.6
503
+
504
+ 2016/03/18 0.14.2
505
+ =================
506
+
507
+ - Fix: Never retry on http read errors (so never send SQL statements twice)
508
+
509
+ 2016/03/10 0.14.1
510
+ =================
511
+
512
+ - test-layer: Removed options that are going to be removed from Crate
513
+
514
+ 2016/02/05 0.14.0
515
+ =================
516
+
517
+ - Added support for serialization of date and datetime objects
518
+
519
+ 2015/10/21 0.13.6
520
+ =================
521
+
522
+ - fix in crate test layer: wait for layer to completely start up node
523
+
524
+ 2015/10/12 0.13.5
525
+ =================
526
+
527
+ - fix: use proper CLUSTERED clause syntax in SQLAlchemy's create table statement
528
+
529
+ 2015/08/12 0.13.4
530
+ =================
531
+
532
+ - Fix urllib3 error with invalid kwargs for ``HTTPConnectionPool``
533
+ when ``REQUESTS_CA_BUNDLE`` is set
534
+
535
+ 2015/06/29 0.13.3
536
+ =================
537
+
538
+ - Fix: allow ObjectArrays to be set to None
539
+
540
+ 2015/06/15 0.13.2
541
+ =================
542
+
543
+ - wait until master of test cluster is elected before starting tests
544
+
545
+ 2015/05/29 0.13.1
546
+ =================
547
+
548
+ - fixed compatibility issues with SQLAlchemy 1.0.x
549
+
550
+ - map SQLAlchemy's text column type to Crate's ``STRING`` type
551
+
552
+ 2015/03/10 0.13.0
553
+ =================
554
+
555
+ - add support for table creation using the SQLAlchemy ORM functionality.
556
+
557
+ - fix: match predicate now properly handles term literal
558
+
559
+ 2015/02/13 0.12.5
560
+ =================
561
+
562
+ - changed SQLAlchemy update statement generation to be compatible with crate
563
+ 0.47.X
564
+
565
+ 2015/02/04 0.12.4
566
+ =================
567
+
568
+ - added missing functionality in CrateDialect, containing:
569
+ default schema name, server version info,
570
+ check if table/schema exists, list all tables/schemas
571
+
572
+ - updated crate to version 0.46.1
573
+
574
+ 2014/10/27 0.12.3
575
+ =================
576
+
577
+ - support iterator protocol on cursor
578
+
579
+ 2014/10/20 0.12.2
580
+ =================
581
+
582
+ - added match predicate in sqlalchemy to support fulltext
583
+ search
584
+
585
+ 2014/10/02 0.12.1
586
+ =================
587
+
588
+ - send application/json Accept header when requesting crate
589
+
590
+ 2014/09/11 0.12.0
591
+ =================
592
+
593
+ - add new options to CrateLayer in order to build test clusters
594
+
595
+ 2014/09/19 0.11.2
596
+ =================
597
+
598
+ - improved server failover
599
+
600
+ 2014/08/26 0.11.1
601
+ =================
602
+
603
+ - more reliable failover mechanism
604
+
605
+ 2014/08/26 0.11.0
606
+ =================
607
+
608
+ - improved server failover / retry behaviour
609
+
610
+ - use bulk_args in executemany to increase performance:
611
+ With crate server >= 0.42.0 executemany uses bulk_args
612
+ and returns a list of results.
613
+ With crate server < 0.42.0 executemany still issues
614
+ a request for every parameter and doesn't return
615
+ any results.
616
+
617
+ - improved docs formatting of field lists
618
+
619
+ 2014/07/25 0.10.7
620
+ =================
621
+
622
+ - fix: ``cursor.executemany()`` now correctly sets the cursor description
623
+
624
+ 2014/07/18 0.10.6
625
+ =================
626
+
627
+ - fix: correctly attach server error trace to crate client exceptions
628
+
629
+ 2014/07/16 0.10.5
630
+ =================
631
+
632
+ - fix: only send ``error_trace`` when it is explicitly set
633
+
634
+ 2014/07/16 0.10.4
635
+ =================
636
+
637
+ - expose the ``error_trace`` option to give a full traceback of server exceptions
638
+
639
+ 2014/07/14 0.10.3
640
+ =================
641
+
642
+ - fix: Columns that have an onupdate definition are now correctly updated
643
+
644
+ 2014/06/03 0.10.2
645
+ =================
646
+
647
+ - fix: return -1 for rowcount if rowcount attribute is missing in crate
648
+ response
649
+
650
+ 2014/05/21 0.10.1
651
+ =================
652
+
653
+ - fixed redirect handling for blob downloads and uploads.
654
+
655
+ 2014/05/16 0.10.0
656
+ =================
657
+
658
+ - implemented ANY operator on object array containment checks
659
+ for SQLAlchemy
660
+
661
+ - updated crate to 0.37.1
662
+
663
+ 2014/05/13 0.9.5
664
+ ================
665
+
666
+ - bugfix: updates of complex types will only be rewritten if the dialect is
667
+ set to 'crate' in SQLAlchemy.
668
+
669
+ 2014/05/09 0.9.4
670
+ ================
671
+
672
+ - bugfix: raise correct error if fetching infos is not possible because server
673
+ is not fully started
674
+
675
+ 2014/05/09 0.9.3
676
+ ================
677
+
678
+ - bugfix: old versions of `six` caused import errors
679
+
680
+ - updated crate doc theme config
681
+
682
+ 2014/05/07 0.9.2
683
+ ================
684
+
685
+ - fixed python3.3 compatibility issue in sphinx script
686
+
687
+ 2014/05/07 0.9.1
688
+ ================
689
+
690
+ - use new crate doc theme
691
+
692
+ 2014/04/01 0.9.0
693
+ ================
694
+
695
+ - replaced requests with urllib3 to improve performance
696
+
697
+ - add ``verify_ssl_cert`` and ``ca_cert`` as kwargs to ``Connection``,
698
+ ``connect`` and as SQLAlchemy ``connect_args``
699
+
700
+ 2014/04/04 0.8.1
701
+ ================
702
+
703
+ - client: fix error handling in ``client.server_infos()``
704
+
705
+ 2014/03/21 0.8.0
706
+ ================
707
+
708
+ - updated crate to 0.32.3
709
+
710
+ - client: adding keyword arguments ``verify_ssl_cert`` and ``ca_cert``
711
+ to enable ssl server certificate validation
712
+
713
+ - client: disable ssl server certificate validation by default
714
+
715
+ 2014/03/14 0.7.1
716
+ ================
717
+
718
+ - updated crate to 0.31.0
719
+
720
+ - client: fixed error handling on wrong content-type and bad status codes (on connect)
721
+
722
+ 2014/03/13 0.7.0
723
+ ================
724
+
725
+ - removed the crate shell ``crash`` from this package. it will live
726
+ now under the name ``crate-shell`` on pypi.
727
+
728
+ 2014/03/12 0.6.0
729
+ ================
730
+
731
+ - updated crate to 0.30.0
732
+
733
+ - crash: added support for ``ALTER`` statements.
734
+
735
+ - crash: added support for ``REFRESH`` statements.
736
+
737
+ - crash: added support for multi-statements for stdin and ``--command`` parameter
738
+
739
+ - crash: renamed cli parameter ``--statement/-s`` to ``--command/-c``
740
+
741
+ 2014/03/12 0.5.0
742
+ ================
743
+
744
+ - updated crate to 0.29.0. This release contains backward incompatible changes
745
+ related to blob support.
746
+
747
+ - updated crash autocompletion keywords
748
+
749
+ 2014/03/11 0.4.0
750
+ ================
751
+
752
+ - fix a bug where setting an empty list on a multi valued field results in returning ``None``
753
+ after refreshing the session.
754
+
755
+ - the test layer now uses the '/' crate endpoint in order to wait for crate to
756
+ be available.
757
+
758
+ - updated crate to 0.28.0. This release contains backward incompatible changes.
759
+
760
+ - changed the test layer to no longer use the `-f`
761
+ option. Note that this breaks the test layer for all previous crate
762
+ versions.
763
+
764
+ 2014/03/05 0.3.4
765
+ ================
766
+
767
+ - fix readline bug in windows bundle
768
+
769
+ 2014/03/05 0.3.3
770
+ ================
771
+
772
+ - readline support for windows
773
+
774
+ - updated crate to 0.26.0
775
+
776
+ 2014/03/04 0.3.2
777
+ ================
778
+
779
+ - added single-file crash bundle ``crash.zip.py``
780
+
781
+ 2014/02/27 0.3.1
782
+ ================
783
+
784
+ - minor documentation syntax fix
785
+
786
+ 2014/01/27 0.3.0
787
+ ================
788
+
789
+ - added the `ObjectArray` type to the sqlalchemy dialect.
790
+
791
+ - renamed `Craty` type to `Object`.
792
+ `Craty` can still be imported to maintain backward compatibility
793
+
794
+ 2014/01/15 0.2.0
795
+ ================
796
+
797
+ - adapted for compatibility with SQLAlchemy >= 0.9.x
798
+
799
+ - changed default port to 4200
800
+
801
+ 2013/12/17 0.1.10
802
+ =================
803
+
804
+ - allow to specify https urls in client and crash cli
805
+
806
+ 2013/12/06 0.1.9
807
+ ================
808
+
809
+ - sqlalchemy dialect supports native booleans
810
+
811
+ 2013/12/02 0.1.8
812
+ ================
813
+
814
+ - Fix: Date columns return date objects
815
+
816
+ 2013/11/25 0.1.7
817
+ ================
818
+
819
+ - Added ``duration`` property to the cursor displaying the server-side duration.
820
+ Show this value at the `crash` crate cli now instead of client-side duration.
821
+
822
+ - Added `readline` as a requirement package on OS X (Darwin), fixes umlauts problem.
823
+
824
+ - Fix sqlalchemy: raise exception if timezone aware datetime is saved
825
+
826
+ - Fix: raise concrete exception while uploading blobs to an index with disabled blobs support
827
+
828
+ - crash: check if given servers are available
829
+ and retrieve some basic information on connect command
830
+
831
+ 2013/11/13 0.1.6
832
+ ================
833
+
834
+ - Fix: show rows affected at `crash` on ``copy`` command
835
+
836
+ - crash: Added persistent history stored in platform dependent app-dir
837
+
838
+ - crash: Added support for multiple hosts for ``crash --hosts ...`` and the connect cmd
839
+
840
+ 2013/11/11 0.1.5
841
+ ================
842
+
843
+ - Added SQL ``copy`` command support to `crash` crate cli
844
+
845
+ 2013/11/11 0.1.4
846
+ ================
847
+
848
+ - crate layer: set working directory on layer instantiation instead of start hook
849
+
850
+ 2013/11/08 0.1.3
851
+ ================
852
+
853
+ - fixed sqlalchemy datetime parsing that didn't work with crate >= 0.18.4 due
854
+ to the fixed datetime mapping.
855
+
856
+ 2013/11/08 0.1.2
857
+ ================
858
+
859
+ - documented SQLAlchemy count() and group_by() support.
860
+
861
+ 2013/11/07 0.1.1
862
+ ================
863
+
864
+ - http keepalive support
865
+
866
+ - uppercase command support for crash
867
+
868
+ - fixed python3.3 compatibility issue in crash
869
+
870
+ 2013/10/23 0.1.0
871
+ ================
872
+
873
+ - the `crash` crate cli supports multiple line commands and auto-completion now,
874
+ commands are delimited by a semi-colon.
875
+
876
+ - the `crash` crate cli displays the status and, if related, the row count on every command now.
877
+
878
+ 2013/10/09 0.0.9
879
+ ================
880
+
881
+ - SQLAlchemy `DateTime` and `Date` can now be nullable
882
+
883
+ 2013/10/04 0.0.8
884
+ ================
885
+
886
+ - fixed an error with the `Craty` type and SQLAlchemy's ORM where the `update`
887
+ statement wasn't correctly generated.
888
+
889
+ 2013/10/02 0.0.7
890
+ ================
891
+
892
+ - rowcount in results of update-requests gives affected rows
893
+
894
+ - the `Date` and `DateTime` sqlalchemy types are now supported.
895
+
896
+ - make http-client thread-safe
897
+
898
+ 2013/10/01 0.0.6
899
+ ================
900
+
901
+ - add support for sqlalchemy including complex types
902
+
903
+ - error handling improvements in crash
904
+
905
+ 2013/09/18 0.0.5
906
+ ================
907
+
908
+ - added qmark parameter substitution support
909
+
910
+ - basic Blob-Client-API implemented
911
+
912
+ 2013/09/16 0.0.4
913
+ ================
914
+
915
+ - the `crash` crate cli is now included with the client library
916
+
917
+ - the client library is now compatible with python 3
918
+
919
+ 2013/09/09 0.0.3
920
+ ================
921
+
922
+ - text files are now also included in binary egg distributions
923
+
924
+ 2013/09/05 0.0.2
925
+ ================
926
+
927
+ - initial release