sqlalchemy-singlestoredb 1.1.2__tar.gz → 1.2.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 (47) hide show
  1. {sqlalchemy_singlestoredb-1.1.2/sqlalchemy_singlestoredb.egg-info → sqlalchemy_singlestoredb-1.2.0}/PKG-INFO +9 -4
  2. sqlalchemy_singlestoredb-1.2.0/pyproject.toml +75 -0
  3. sqlalchemy_singlestoredb-1.2.0/setup.cfg +4 -0
  4. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb/__init__.py +15 -3
  5. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/base.py +900 -0
  6. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/compat.py +178 -0
  7. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/ddlelement.py +1152 -0
  8. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb/dtypes.py +32 -1
  9. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/examples/shard_key_examples.py +147 -0
  10. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/examples/table_constructor_examples.py +111 -0
  11. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/examples/universal/main.py +54 -0
  12. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/reflection.py +522 -0
  13. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/conftest.py +424 -0
  14. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/run_all_tests.py +214 -0
  15. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_advanced_indexes.py +728 -0
  16. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb/tests/test_basics.py +138 -98
  17. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_column_group.py +382 -0
  18. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_database_fixtures.py +170 -0
  19. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_declarative_reflection.py +1375 -0
  20. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_error_handling.py +419 -0
  21. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_error_handling_pytest.py +393 -0
  22. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_integration_features.py +373 -0
  23. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_key_reflection.py +363 -0
  24. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_priority1_features.py +205 -0
  25. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_shard_key.py +876 -0
  26. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_sort_key.py +821 -0
  27. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_table_options.py +613 -0
  28. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_table_types.py +637 -0
  29. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb/tests/test_vector_key.py +680 -0
  30. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb.egg-info}/PKG-INFO +9 -4
  31. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb.egg-info/SOURCES.txt +38 -0
  32. sqlalchemy_singlestoredb-1.2.0/sqlalchemy_singlestoredb.egg-info/requires.txt +11 -0
  33. sqlalchemy_singlestoredb-1.1.2/setup.cfg +0 -74
  34. sqlalchemy_singlestoredb-1.1.2/setup.py +0 -6
  35. sqlalchemy_singlestoredb-1.1.2/sqlalchemy_singlestoredb/base.py +0 -447
  36. sqlalchemy_singlestoredb-1.1.2/sqlalchemy_singlestoredb/ddlelement.py +0 -32
  37. sqlalchemy_singlestoredb-1.1.2/sqlalchemy_singlestoredb/reflection.py +0 -295
  38. sqlalchemy_singlestoredb-1.1.2/sqlalchemy_singlestoredb.egg-info/SOURCES.txt +0 -19
  39. sqlalchemy_singlestoredb-1.1.2/sqlalchemy_singlestoredb.egg-info/requires.txt +0 -2
  40. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/LICENSE +0 -0
  41. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/README.md +0 -0
  42. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb/column.py +0 -0
  43. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb/tests/__init__.py +0 -0
  44. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb/tests/test.sql +0 -0
  45. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb.egg-info/dependency_links.txt +0 -0
  46. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb.egg-info/entry_points.txt +0 -0
  47. {sqlalchemy_singlestoredb-1.1.2 → sqlalchemy_singlestoredb-1.2.0}/sqlalchemy_singlestoredb.egg-info/top_level.txt +0 -0
@@ -1,11 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlalchemy_singlestoredb
3
- Version: 1.1.2
3
+ Version: 1.2.0
4
4
  Summary: SQLAlchemy dialect for the SingleStoreDB database
5
- Home-page: https://github.com/singlestore-labs/sqlalchemy-singlestoredb
6
- Author: SingleStore
7
- Author-email: support@singlestore.com
5
+ Author-email: SingleStore <support@singlestore.com>
8
6
  License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/singlestore-labs/sqlalchemy-singlestoredb
9
8
  Classifier: Development Status :: 5 - Production/Stable
10
9
  Classifier: Programming Language :: Python :: 3
11
10
  Classifier: Programming Language :: Python :: 3 :: Only
@@ -14,6 +13,12 @@ Description-Content-Type: text/markdown
14
13
  License-File: LICENSE
15
14
  Requires-Dist: singlestoredb>=1.0.0
16
15
  Requires-Dist: sqlalchemy<3.0.0dev,>=1.4.0
16
+ Provides-Extra: dev
17
+ Requires-Dist: coverage; extra == "dev"
18
+ Requires-Dist: docker; extra == "dev"
19
+ Requires-Dist: pytest; extra == "dev"
20
+ Requires-Dist: pytest-cov; extra == "dev"
21
+ Requires-Dist: tomli; python_version < "3.11" and extra == "dev"
17
22
  Dynamic: license-file
18
23
 
19
24
  # <img src="https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/resources/singlestore-logo.png" height="60" valign="middle"/> SingleStoreDB SQLAlchemy Dialect
@@ -0,0 +1,75 @@
1
+ [build-system]
2
+ requires = ['setuptools>=61.0', 'wheel']
3
+ build-backend = 'setuptools.build_meta'
4
+
5
+ [project]
6
+ name = 'sqlalchemy_singlestoredb'
7
+ version = '1.2.0'
8
+ description = 'SQLAlchemy dialect for the SingleStoreDB database'
9
+ readme = 'README.md'
10
+ requires-python = '>=3.9'
11
+ license = {text = 'Apache-2.0'}
12
+ authors = [
13
+ {name = 'SingleStore', email = 'support@singlestore.com'},
14
+ ]
15
+ classifiers = [
16
+ 'Development Status :: 5 - Production/Stable',
17
+ 'Programming Language :: Python :: 3',
18
+ 'Programming Language :: Python :: 3 :: Only',
19
+ ]
20
+ dependencies = [
21
+ 'singlestoredb>=1.0.0',
22
+ 'sqlalchemy>=1.4.0,<3.0.0dev',
23
+ ]
24
+
25
+ [project.optional-dependencies]
26
+ dev = [
27
+ 'coverage',
28
+ 'docker',
29
+ 'pytest',
30
+ 'pytest-cov',
31
+ 'tomli; python_version<"3.11"',
32
+ ]
33
+
34
+ [project.urls]
35
+ Homepage = 'https://github.com/singlestore-labs/sqlalchemy-singlestoredb'
36
+
37
+ [project.entry-points.'sqlalchemy.dialects']
38
+ singlestoredb = 'sqlalchemy_singlestoredb:dialect'
39
+ 'singlestoredb.mysql' = 'sqlalchemy_singlestoredb:dialect'
40
+ 'singlestoredb.http' = 'sqlalchemy_singlestoredb:dialect'
41
+ 'singlestoredb.https' = 'sqlalchemy_singlestoredb:dialect'
42
+
43
+ [tool.setuptools.packages.find]
44
+ where = ['.']
45
+ include = ['sqlalchemy_singlestoredb*']
46
+
47
+ [tool.setuptools.package-data]
48
+ '*' = ['*.sql', '*.csv']
49
+
50
+ [tool.mypy]
51
+ check_untyped_defs = true
52
+ disallow_any_generics = true
53
+ disallow_incomplete_defs = true
54
+ disallow_untyped_defs = true
55
+ no_implicit_optional = true
56
+ warn_redundant_casts = true
57
+ warn_unused_ignores = true
58
+
59
+ [[tool.mypy.overrides]]
60
+ module = 'testing.*'
61
+ disallow_untyped_defs = false
62
+
63
+ [[tool.mypy.overrides]]
64
+ module = 'tests.*'
65
+ disallow_untyped_defs = false
66
+
67
+ [tool.pytest.ini_options]
68
+ testpaths = ['sqlalchemy_singlestoredb/tests']
69
+ log_cli = true
70
+ log_cli_level = "INFO"
71
+ log_cli_format = "%(levelname)s %(message)s"
72
+ log_cli_date_format = "%H:%M:%S"
73
+
74
+ [tool.coverage.run]
75
+ source = ['sqlalchemy_singlestoredb']
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -41,8 +41,14 @@ from sqlalchemy.dialects.mysql.dml import insert
41
41
 
42
42
  from . import base
43
43
  from .column import PersistedColumn
44
+ from .ddlelement import ColumnGroup
45
+ from .ddlelement import ColumnStore
46
+ from .ddlelement import FullTextIndex
47
+ from .ddlelement import MultiValueIndex
48
+ from .ddlelement import RowStore
44
49
  from .ddlelement import ShardKey
45
50
  from .ddlelement import SortKey
51
+ from .ddlelement import VectorKey
46
52
  from .dtypes import JSON
47
53
  from .dtypes import VECTOR
48
54
 
@@ -51,7 +57,7 @@ array = base.array
51
57
  # default dialect
52
58
  dialect = base.dialect
53
59
 
54
- __version__ = '1.1.2'
60
+ __version__ = '1.2.0'
55
61
 
56
62
  __all__ = (
57
63
  'BIGINT',
@@ -60,12 +66,15 @@ __all__ = (
60
66
  'BLOB',
61
67
  'BOOLEAN',
62
68
  'CHAR',
69
+ 'ColumnGroup',
70
+ 'ColumnStore',
63
71
  'DATE',
64
72
  'DATETIME',
65
73
  'DECIMAL',
66
74
  'DOUBLE',
67
75
  'ENUM',
68
76
  'FLOAT',
77
+ 'FullTextIndex',
69
78
  'INTEGER',
70
79
  'INTEGER',
71
80
  'JSON',
@@ -74,15 +83,17 @@ __all__ = (
74
83
  'MEDIUMBLOB',
75
84
  'MEDIUMINT',
76
85
  'MEDIUMTEXT',
86
+ 'MultiValueIndex',
77
87
  'NCHAR',
78
88
  'NVARCHAR',
79
89
  'NUMERIC',
80
90
  'PersistedColumn',
91
+ 'REAL',
92
+ 'RowStore',
81
93
  'SET',
82
- 'SMALLINT',
83
94
  'ShardKey',
95
+ 'SMALLINT',
84
96
  'SortKey',
85
- 'REAL',
86
97
  'TEXT',
87
98
  'TIME',
88
99
  'TIMESTAMP',
@@ -92,6 +103,7 @@ __all__ = (
92
103
  'VARBINARY',
93
104
  'VARCHAR',
94
105
  'VECTOR',
106
+ 'VectorKey',
95
107
  'YEAR',
96
108
  'dialect',
97
109
  'insert',