sqlalchemy-singlestoredb 1.0.0__tar.gz → 1.1.1__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_singlestoredb-1.1.1/PKG-INFO +39 -0
- sqlalchemy_singlestoredb-1.1.1/README.md +21 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/setup.cfg +2 -5
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/__init__.py +7 -1
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/base.py +78 -0
- sqlalchemy_singlestoredb-1.1.1/sqlalchemy_singlestoredb/column.py +26 -0
- sqlalchemy_singlestoredb-1.1.1/sqlalchemy_singlestoredb/ddlelement.py +32 -0
- sqlalchemy_singlestoredb-1.1.1/sqlalchemy_singlestoredb.egg-info/PKG-INFO +39 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb.egg-info/SOURCES.txt +2 -0
- sqlalchemy_singlestoredb-1.0.0/PKG-INFO +0 -56
- sqlalchemy_singlestoredb-1.0.0/README.md +0 -35
- sqlalchemy_singlestoredb-1.0.0/sqlalchemy_singlestoredb.egg-info/PKG-INFO +0 -56
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/LICENSE +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/setup.py +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/dtypes.py +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/reflection.py +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/tests/__init__.py +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/tests/test.sql +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/tests/test_basics.py +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb.egg-info/dependency_links.txt +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb.egg-info/entry_points.txt +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb.egg-info/requires.txt +0 -0
- {sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: sqlalchemy_singlestoredb
|
|
3
|
+
Version: 1.1.1
|
|
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
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: singlestoredb>=1.0.0
|
|
17
|
+
Requires-Dist: sqlalchemy<3.0.0dev,>=1.4.0
|
|
18
|
+
|
|
19
|
+
# <img src="https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/resources/singlestore-logo.png" height="60" valign="middle"/> SingleStoreDB SQLAlchemy Dialect
|
|
20
|
+
|
|
21
|
+
This project contains a [SQLAlchemyDB](https://sqlalchemy.org) dialect which allows
|
|
22
|
+
you to use the SQLAlchemy APIs with the [SingleStoreDB](https://singlestore.com) database.
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
This package can be install from PyPI using `pip`:
|
|
27
|
+
```
|
|
28
|
+
pip install sqlalchemy-singlestoredb
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
This library is licensed under the [Apache 2.0 License](https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/LICENSE?token=GHSAT0AAAAAABMGV6QPNR6N23BVICDYK5LAYTVK5EA).
|
|
34
|
+
|
|
35
|
+
## Resources
|
|
36
|
+
|
|
37
|
+
* [Documentation](https://sqlalchemy-singlestoredb.labs.singlestore.com)
|
|
38
|
+
* [SingleStore](https://www.singlestore.com)
|
|
39
|
+
* [SQLAlchemy](https://sqlalchemy.org)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# <img src="https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/resources/singlestore-logo.png" height="60" valign="middle"/> SingleStoreDB SQLAlchemy Dialect
|
|
2
|
+
|
|
3
|
+
This project contains a [SQLAlchemyDB](https://sqlalchemy.org) dialect which allows
|
|
4
|
+
you to use the SQLAlchemy APIs with the [SingleStoreDB](https://singlestore.com) database.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
This package can be install from PyPI using `pip`:
|
|
9
|
+
```
|
|
10
|
+
pip install sqlalchemy-singlestoredb
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## License
|
|
14
|
+
|
|
15
|
+
This library is licensed under the [Apache 2.0 License](https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/LICENSE?token=GHSAT0AAAAAABMGV6QPNR6N23BVICDYK5LAYTVK5EA).
|
|
16
|
+
|
|
17
|
+
## Resources
|
|
18
|
+
|
|
19
|
+
* [Documentation](https://sqlalchemy-singlestoredb.labs.singlestore.com)
|
|
20
|
+
* [SingleStore](https://www.singlestore.com)
|
|
21
|
+
* [SQLAlchemy](https://sqlalchemy.org)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = sqlalchemy_singlestoredb
|
|
3
|
-
version = 1.
|
|
3
|
+
version = 1.1.1
|
|
4
4
|
description = SQLAlchemy dialect for the SingleStoreDB database
|
|
5
5
|
long_description = file: README.md
|
|
6
6
|
long_description_content_type = text/markdown
|
|
@@ -8,15 +8,12 @@ url = https://github.com/singlestore-labs/sqlalchemy-singlestoredb
|
|
|
8
8
|
author = SingleStore
|
|
9
9
|
author_email = support@singlestore.com
|
|
10
10
|
license = Apache-2.0
|
|
11
|
-
|
|
11
|
+
license_files = LICENSE
|
|
12
12
|
classifiers =
|
|
13
13
|
Development Status :: 5 - Production/Stable
|
|
14
14
|
License :: OSI Approved :: Apache Software License
|
|
15
15
|
Programming Language :: Python :: 3
|
|
16
16
|
Programming Language :: Python :: 3 :: Only
|
|
17
|
-
Programming Language :: Python :: 3.8
|
|
18
|
-
Programming Language :: Python :: 3.9
|
|
19
|
-
Programming Language :: Python :: 3.10
|
|
20
17
|
|
|
21
18
|
[options]
|
|
22
19
|
packages = find:
|
|
@@ -40,6 +40,9 @@ from sqlalchemy.dialects.mysql.dml import Insert
|
|
|
40
40
|
from sqlalchemy.dialects.mysql.dml import insert
|
|
41
41
|
|
|
42
42
|
from . import base
|
|
43
|
+
from .column import PersistedColumn
|
|
44
|
+
from .ddlelement import ShardKey
|
|
45
|
+
from .ddlelement import SortKey
|
|
43
46
|
from .dtypes import JSON
|
|
44
47
|
from .dtypes import VECTOR
|
|
45
48
|
|
|
@@ -48,7 +51,7 @@ array = base.array
|
|
|
48
51
|
# default dialect
|
|
49
52
|
dialect = base.dialect
|
|
50
53
|
|
|
51
|
-
__version__ = '1.
|
|
54
|
+
__version__ = '1.1.1'
|
|
52
55
|
|
|
53
56
|
__all__ = (
|
|
54
57
|
'BIGINT',
|
|
@@ -74,8 +77,11 @@ __all__ = (
|
|
|
74
77
|
'NCHAR',
|
|
75
78
|
'NVARCHAR',
|
|
76
79
|
'NUMERIC',
|
|
80
|
+
'PersistedColumn',
|
|
77
81
|
'SET',
|
|
78
82
|
'SMALLINT',
|
|
83
|
+
'ShardKey',
|
|
84
|
+
'SortKey',
|
|
79
85
|
'REAL',
|
|
80
86
|
'TEXT',
|
|
81
87
|
'TIME',
|
{sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/base.py
RENAMED
|
@@ -26,8 +26,13 @@ from sqlalchemy.engine.url import URL
|
|
|
26
26
|
from sqlalchemy.sql import sqltypes
|
|
27
27
|
from sqlalchemy.sql.compiler import BIND_PARAMS
|
|
28
28
|
from sqlalchemy.sql.compiler import BIND_PARAMS_ESC
|
|
29
|
+
try:
|
|
30
|
+
from sqlalchemy.sql.schema import SchemaConst
|
|
31
|
+
except ImportError:
|
|
32
|
+
from sqlalchemy.sql import schema as SchemaConst
|
|
29
33
|
|
|
30
34
|
from . import reflection
|
|
35
|
+
from .column import PersistedColumn
|
|
31
36
|
from .dtypes import _json_deserializer
|
|
32
37
|
from .dtypes import JSON
|
|
33
38
|
from .dtypes import VECTOR
|
|
@@ -194,10 +199,83 @@ class SingleStoreDBCompiler(MySQLCompiler):
|
|
|
194
199
|
),
|
|
195
200
|
)
|
|
196
201
|
|
|
202
|
+
def visit_primary_key_constraint(self, constraint: Any, **kw: Any) -> str:
|
|
203
|
+
text = super().visit_primary_key_constraint(constraint)
|
|
204
|
+
using = constraint.dialect_options['mysql']['using']
|
|
205
|
+
if using:
|
|
206
|
+
text += ' USING %s' % (self.preparer.quote(using))
|
|
207
|
+
return text
|
|
208
|
+
|
|
197
209
|
|
|
198
210
|
class SingleStoreDBDDLCompiler(MySQLDDLCompiler):
|
|
199
211
|
"""SingleStoreDB SQLAlchemy DDL compiler."""
|
|
200
212
|
|
|
213
|
+
def visit_create_table(self, create: Any, **kw: Any) -> str:
|
|
214
|
+
create_table_sql = super().visit_create_table(create, **kw)
|
|
215
|
+
shard_key = create.element.info.get('singlestoredb_shard_key')
|
|
216
|
+
if shard_key is not None:
|
|
217
|
+
shard_columns = ', '.join(shard_key.columns)
|
|
218
|
+
shard_key_sql = f'SHARD KEY ({shard_columns})'
|
|
219
|
+
# Append the SHARD KEY definition to the original SQL
|
|
220
|
+
create_table_sql = f'{create_table_sql.rstrip()[:-2]},\n\t{shard_key_sql}\n)'
|
|
221
|
+
|
|
222
|
+
sort_key = create.element.info.get('singlestoredb_sort_key')
|
|
223
|
+
if sort_key is not None:
|
|
224
|
+
sort_columns = ', '.join(sort_key.columns)
|
|
225
|
+
sort_key_sql = f'SORT KEY ({sort_columns})'
|
|
226
|
+
# Append the SHARD KEY definition to the original SQL
|
|
227
|
+
create_table_sql = f'{create_table_sql.rstrip()[:-2]},\n\t{sort_key_sql}\n)'
|
|
228
|
+
|
|
229
|
+
return create_table_sql
|
|
230
|
+
|
|
231
|
+
def get_column_specification(self, column: Any, **kw: Any) -> str:
|
|
232
|
+
"""Builds column DDL."""
|
|
233
|
+
if not isinstance(column, PersistedColumn):
|
|
234
|
+
return super().get_column_specification(column, **kw)
|
|
235
|
+
|
|
236
|
+
if (
|
|
237
|
+
self.dialect.is_mariadb is True
|
|
238
|
+
and column.computed is not None
|
|
239
|
+
and column._user_defined_nullable is SchemaConst.NULL_UNSPECIFIED
|
|
240
|
+
):
|
|
241
|
+
column.nullable = True
|
|
242
|
+
colspec = [
|
|
243
|
+
self.preparer.format_column(column),
|
|
244
|
+
'AS',
|
|
245
|
+
column.persisted_expression,
|
|
246
|
+
'PERSISTED',
|
|
247
|
+
self.dialect.type_compiler_instance.process(
|
|
248
|
+
column.type, type_expression=column,
|
|
249
|
+
),
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
if column.computed is not None:
|
|
253
|
+
colspec.append(self.process(column.computed))
|
|
254
|
+
|
|
255
|
+
is_timestamp = isinstance(
|
|
256
|
+
column.type._unwrapped_dialect_impl(self.dialect),
|
|
257
|
+
sqltypes.TIMESTAMP,
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
if not column.nullable:
|
|
261
|
+
colspec.append('NOT NULL')
|
|
262
|
+
|
|
263
|
+
# see: https://docs.sqlalchemy.org/en/latest/dialects/mysql.html#mysql_timestamp_null # noqa
|
|
264
|
+
elif column.nullable and is_timestamp:
|
|
265
|
+
colspec.append('NULL')
|
|
266
|
+
|
|
267
|
+
comment = column.comment
|
|
268
|
+
if comment is not None:
|
|
269
|
+
literal = self.sql_compiler.render_literal_value(
|
|
270
|
+
comment, sqltypes.String(),
|
|
271
|
+
)
|
|
272
|
+
colspec.append('COMMENT ' + literal)
|
|
273
|
+
|
|
274
|
+
default = self.get_column_default_string(column)
|
|
275
|
+
if default is not None:
|
|
276
|
+
colspec.append('DEFAULT ' + default)
|
|
277
|
+
return ' '.join(colspec)
|
|
278
|
+
|
|
201
279
|
|
|
202
280
|
class SingleStoreDBTypeCompiler(MySQLTypeCompiler):
|
|
203
281
|
"""SingleStoreDB SQLAlchemy type compiler."""
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from sqlalchemy import Column
|
|
6
|
+
from sqlalchemy.sql.expression import TextClause
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PersistedColumn(Column):
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
*args: Any,
|
|
13
|
+
persisted_expression: Any = None,
|
|
14
|
+
**kwargs: Any,
|
|
15
|
+
) -> None:
|
|
16
|
+
if persisted_expression is not None:
|
|
17
|
+
# Ensure persisted_expression is either a TextClause or a string
|
|
18
|
+
if not isinstance(persisted_expression, (TextClause, str)):
|
|
19
|
+
raise ValueError(
|
|
20
|
+
'Persisted expression must be a SQL expression '
|
|
21
|
+
'as a string or TextClause',
|
|
22
|
+
)
|
|
23
|
+
self.is_persisted = True
|
|
24
|
+
self.persisted_expression = persisted_expression
|
|
25
|
+
kwargs['info'] = {'persisted_expression': persisted_expression}
|
|
26
|
+
super().__init__(*args, **kwargs)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from sqlalchemy.ext.compiler import compiles
|
|
6
|
+
from sqlalchemy.schema import DDLElement
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ShardKey(DDLElement):
|
|
10
|
+
def __init__(self, *columns: Any) -> None:
|
|
11
|
+
self.columns = columns
|
|
12
|
+
|
|
13
|
+
def __repr__(self) -> str:
|
|
14
|
+
return 'ShardKey(%s)' % ', '.join([repr(x) for x in self.columns])
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@compiles(ShardKey, 'singlestoredb.mysql')
|
|
18
|
+
def compile_shard_key(element: Any, compiler: Any, **kw: Any) -> str:
|
|
19
|
+
return 'SHARD KEY (%s)' % ', '.join([str(x) for x in element.columns])
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class SortKey(DDLElement):
|
|
23
|
+
def __init__(self, *columns: Any) -> None:
|
|
24
|
+
self.columns = columns
|
|
25
|
+
|
|
26
|
+
def __repr__(self) -> str:
|
|
27
|
+
return 'SortKey(%s)' % ', '.join([repr(x) for x in self.columns])
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@compiles(SortKey, 'singlestoredb.mysql')
|
|
31
|
+
def compile_sort_key(element: Any, compiler: Any, **kw: Any) -> str:
|
|
32
|
+
return 'SORT KEY (%s)' % ', '.join([str(x) for x in element.columns])
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: sqlalchemy_singlestoredb
|
|
3
|
+
Version: 1.1.1
|
|
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
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: singlestoredb>=1.0.0
|
|
17
|
+
Requires-Dist: sqlalchemy<3.0.0dev,>=1.4.0
|
|
18
|
+
|
|
19
|
+
# <img src="https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/resources/singlestore-logo.png" height="60" valign="middle"/> SingleStoreDB SQLAlchemy Dialect
|
|
20
|
+
|
|
21
|
+
This project contains a [SQLAlchemyDB](https://sqlalchemy.org) dialect which allows
|
|
22
|
+
you to use the SQLAlchemy APIs with the [SingleStoreDB](https://singlestore.com) database.
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
This package can be install from PyPI using `pip`:
|
|
27
|
+
```
|
|
28
|
+
pip install sqlalchemy-singlestoredb
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
This library is licensed under the [Apache 2.0 License](https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/LICENSE?token=GHSAT0AAAAAABMGV6QPNR6N23BVICDYK5LAYTVK5EA).
|
|
34
|
+
|
|
35
|
+
## Resources
|
|
36
|
+
|
|
37
|
+
* [Documentation](https://sqlalchemy-singlestoredb.labs.singlestore.com)
|
|
38
|
+
* [SingleStore](https://www.singlestore.com)
|
|
39
|
+
* [SQLAlchemy](https://sqlalchemy.org)
|
|
@@ -4,6 +4,8 @@ setup.cfg
|
|
|
4
4
|
setup.py
|
|
5
5
|
sqlalchemy_singlestoredb/__init__.py
|
|
6
6
|
sqlalchemy_singlestoredb/base.py
|
|
7
|
+
sqlalchemy_singlestoredb/column.py
|
|
8
|
+
sqlalchemy_singlestoredb/ddlelement.py
|
|
7
9
|
sqlalchemy_singlestoredb/dtypes.py
|
|
8
10
|
sqlalchemy_singlestoredb/reflection.py
|
|
9
11
|
sqlalchemy_singlestoredb.egg-info/PKG-INFO
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: sqlalchemy_singlestoredb
|
|
3
|
-
Version: 1.0.0
|
|
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
|
|
8
|
-
License: Apache-2.0
|
|
9
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Requires-Python: >=3.8
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
License-File: LICENSE
|
|
19
|
-
Requires-Dist: singlestoredb>=1.0.0
|
|
20
|
-
Requires-Dist: sqlalchemy<3.0.0dev,>=1.4.0
|
|
21
|
-
|
|
22
|
-
# <img src="https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/resources/singlestore-logo.png" height="60" valign="middle"/> SingleStoreDB SQLAlchemy Dialect
|
|
23
|
-
|
|
24
|
-
This project contains a [SQLAlchemyDB](https://sqlalchemy.org) dialect which allows
|
|
25
|
-
you to use the SQLAlchemy APIs with the [SingleStoreDB](https://singlestore.com) database.
|
|
26
|
-
|
|
27
|
-
## Install
|
|
28
|
-
|
|
29
|
-
This package can be install from PyPI using `pip`:
|
|
30
|
-
```
|
|
31
|
-
pip install sqlalchemy-singlestoredb
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## License
|
|
35
|
-
|
|
36
|
-
This library is licensed under the [Apache 2.0 License](https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/LICENSE?token=GHSAT0AAAAAABMGV6QPNR6N23BVICDYK5LAYTVK5EA).
|
|
37
|
-
|
|
38
|
-
## Resources
|
|
39
|
-
|
|
40
|
-
* [Documentation](https://sqlalchemy-singlestoredb.labs.singlestore.com)
|
|
41
|
-
* [SingleStore](https://www.singlestore.com)
|
|
42
|
-
* [SQLAlchemy](https://sqlalchemy.org)
|
|
43
|
-
|
|
44
|
-
## User agreement
|
|
45
|
-
|
|
46
|
-
SINGLESTORE, INC. ("SINGLESTORE") AGREES TO GRANT YOU AND YOUR COMPANY ACCESS TO THIS OPEN SOURCE SOFTWARE CONNECTOR ONLY IF (A) YOU AND YOUR COMPANY REPRESENT AND WARRANT THAT YOU, ON BEHALF OF YOUR COMPANY, HAVE THE AUTHORITY TO LEGALLY BIND YOUR COMPANY AND (B) YOU, ON BEHALF OF YOUR COMPANY ACCEPT AND AGREE TO BE BOUND BY ALL OF THE OPEN SOURCE TERMS AND CONDITIONS APPLICABLE TO THIS OPEN SOURCE CONNECTOR AS SET FORTH BELOW (THIS “AGREEMENT”), WHICH SHALL BE DEFINITIVELY EVIDENCED BY ANY ONE OF THE FOLLOWING MEANS: YOU, ON BEHALF OF YOUR COMPANY, CLICKING THE “DOWNLOAD, “ACCEPTANCE” OR “CONTINUE” BUTTON, AS APPLICABLE OR COMPANY’S INSTALLATION, ACCESS OR USE OF THE OPEN SOURCE CONNECTOR AND SHALL BE EFFECTIVE ON THE EARLIER OF THE DATE ON WHICH THE DOWNLOAD, ACCESS, COPY OR INSTALL OF THE CONNECTOR OR USE ANY SERVICES (INCLUDING ANY UPDATES OR UPGRADES) PROVIDED BY SINGLESTORE.
|
|
47
|
-
BETA SOFTWARE CONNECTOR
|
|
48
|
-
|
|
49
|
-
Customer Understands and agrees that it is being granted access to pre-release or “beta” versions of SingleStore’s open source software connector (“Beta Software Connector”) for the limited purposes of non-production testing and evaluation of such Beta Software Connector. Customer acknowledges that SingleStore shall have no obligation to release a generally available version of such Beta Software Connector or to provide support or warranty for such versions of the Beta Software Connector for any production or non-evaluation use.
|
|
50
|
-
|
|
51
|
-
NOTWITHSTANDING ANYTHING TO THE CONTRARY IN ANY DOCUMENTATION, AGREEMENT OR IN ANY ORDER DOCUMENT, SINGLESTORE WILL HAVE NO WARRANTY, INDEMNITY, SUPPORT, OR SERVICE LEVEL, OBLIGATIONS WITH
|
|
52
|
-
RESPECT TO THIS BETA SOFTWARE CONNECTOR (INCLUDING TOOLS AND UTILITIES).
|
|
53
|
-
|
|
54
|
-
APPLICABLE OPEN SOURCE LICENSE: Apache 2.0
|
|
55
|
-
|
|
56
|
-
IF YOU OR YOUR COMPANY DO NOT AGREE TO THESE TERMS AND CONDITIONS, DO NOT CHECK THE ACCEPTANCE BOX, AND DO NOT DOWNLOAD, ACCESS, COPY, INSTALL OR USE THE SOFTWARE OR THE SERVICES.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# <img src="https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/resources/singlestore-logo.png" height="60" valign="middle"/> SingleStoreDB SQLAlchemy Dialect
|
|
2
|
-
|
|
3
|
-
This project contains a [SQLAlchemyDB](https://sqlalchemy.org) dialect which allows
|
|
4
|
-
you to use the SQLAlchemy APIs with the [SingleStoreDB](https://singlestore.com) database.
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
This package can be install from PyPI using `pip`:
|
|
9
|
-
```
|
|
10
|
-
pip install sqlalchemy-singlestoredb
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## License
|
|
14
|
-
|
|
15
|
-
This library is licensed under the [Apache 2.0 License](https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/LICENSE?token=GHSAT0AAAAAABMGV6QPNR6N23BVICDYK5LAYTVK5EA).
|
|
16
|
-
|
|
17
|
-
## Resources
|
|
18
|
-
|
|
19
|
-
* [Documentation](https://sqlalchemy-singlestoredb.labs.singlestore.com)
|
|
20
|
-
* [SingleStore](https://www.singlestore.com)
|
|
21
|
-
* [SQLAlchemy](https://sqlalchemy.org)
|
|
22
|
-
|
|
23
|
-
## User agreement
|
|
24
|
-
|
|
25
|
-
SINGLESTORE, INC. ("SINGLESTORE") AGREES TO GRANT YOU AND YOUR COMPANY ACCESS TO THIS OPEN SOURCE SOFTWARE CONNECTOR ONLY IF (A) YOU AND YOUR COMPANY REPRESENT AND WARRANT THAT YOU, ON BEHALF OF YOUR COMPANY, HAVE THE AUTHORITY TO LEGALLY BIND YOUR COMPANY AND (B) YOU, ON BEHALF OF YOUR COMPANY ACCEPT AND AGREE TO BE BOUND BY ALL OF THE OPEN SOURCE TERMS AND CONDITIONS APPLICABLE TO THIS OPEN SOURCE CONNECTOR AS SET FORTH BELOW (THIS “AGREEMENT”), WHICH SHALL BE DEFINITIVELY EVIDENCED BY ANY ONE OF THE FOLLOWING MEANS: YOU, ON BEHALF OF YOUR COMPANY, CLICKING THE “DOWNLOAD, “ACCEPTANCE” OR “CONTINUE” BUTTON, AS APPLICABLE OR COMPANY’S INSTALLATION, ACCESS OR USE OF THE OPEN SOURCE CONNECTOR AND SHALL BE EFFECTIVE ON THE EARLIER OF THE DATE ON WHICH THE DOWNLOAD, ACCESS, COPY OR INSTALL OF THE CONNECTOR OR USE ANY SERVICES (INCLUDING ANY UPDATES OR UPGRADES) PROVIDED BY SINGLESTORE.
|
|
26
|
-
BETA SOFTWARE CONNECTOR
|
|
27
|
-
|
|
28
|
-
Customer Understands and agrees that it is being granted access to pre-release or “beta” versions of SingleStore’s open source software connector (“Beta Software Connector”) for the limited purposes of non-production testing and evaluation of such Beta Software Connector. Customer acknowledges that SingleStore shall have no obligation to release a generally available version of such Beta Software Connector or to provide support or warranty for such versions of the Beta Software Connector for any production or non-evaluation use.
|
|
29
|
-
|
|
30
|
-
NOTWITHSTANDING ANYTHING TO THE CONTRARY IN ANY DOCUMENTATION, AGREEMENT OR IN ANY ORDER DOCUMENT, SINGLESTORE WILL HAVE NO WARRANTY, INDEMNITY, SUPPORT, OR SERVICE LEVEL, OBLIGATIONS WITH
|
|
31
|
-
RESPECT TO THIS BETA SOFTWARE CONNECTOR (INCLUDING TOOLS AND UTILITIES).
|
|
32
|
-
|
|
33
|
-
APPLICABLE OPEN SOURCE LICENSE: Apache 2.0
|
|
34
|
-
|
|
35
|
-
IF YOU OR YOUR COMPANY DO NOT AGREE TO THESE TERMS AND CONDITIONS, DO NOT CHECK THE ACCEPTANCE BOX, AND DO NOT DOWNLOAD, ACCESS, COPY, INSTALL OR USE THE SOFTWARE OR THE SERVICES.
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: sqlalchemy_singlestoredb
|
|
3
|
-
Version: 1.0.0
|
|
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
|
|
8
|
-
License: Apache-2.0
|
|
9
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Requires-Python: >=3.8
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
License-File: LICENSE
|
|
19
|
-
Requires-Dist: singlestoredb>=1.0.0
|
|
20
|
-
Requires-Dist: sqlalchemy<3.0.0dev,>=1.4.0
|
|
21
|
-
|
|
22
|
-
# <img src="https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/resources/singlestore-logo.png" height="60" valign="middle"/> SingleStoreDB SQLAlchemy Dialect
|
|
23
|
-
|
|
24
|
-
This project contains a [SQLAlchemyDB](https://sqlalchemy.org) dialect which allows
|
|
25
|
-
you to use the SQLAlchemy APIs with the [SingleStoreDB](https://singlestore.com) database.
|
|
26
|
-
|
|
27
|
-
## Install
|
|
28
|
-
|
|
29
|
-
This package can be install from PyPI using `pip`:
|
|
30
|
-
```
|
|
31
|
-
pip install sqlalchemy-singlestoredb
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## License
|
|
35
|
-
|
|
36
|
-
This library is licensed under the [Apache 2.0 License](https://raw.githubusercontent.com/singlestore-labs/singlestoredb-python/main/LICENSE?token=GHSAT0AAAAAABMGV6QPNR6N23BVICDYK5LAYTVK5EA).
|
|
37
|
-
|
|
38
|
-
## Resources
|
|
39
|
-
|
|
40
|
-
* [Documentation](https://sqlalchemy-singlestoredb.labs.singlestore.com)
|
|
41
|
-
* [SingleStore](https://www.singlestore.com)
|
|
42
|
-
* [SQLAlchemy](https://sqlalchemy.org)
|
|
43
|
-
|
|
44
|
-
## User agreement
|
|
45
|
-
|
|
46
|
-
SINGLESTORE, INC. ("SINGLESTORE") AGREES TO GRANT YOU AND YOUR COMPANY ACCESS TO THIS OPEN SOURCE SOFTWARE CONNECTOR ONLY IF (A) YOU AND YOUR COMPANY REPRESENT AND WARRANT THAT YOU, ON BEHALF OF YOUR COMPANY, HAVE THE AUTHORITY TO LEGALLY BIND YOUR COMPANY AND (B) YOU, ON BEHALF OF YOUR COMPANY ACCEPT AND AGREE TO BE BOUND BY ALL OF THE OPEN SOURCE TERMS AND CONDITIONS APPLICABLE TO THIS OPEN SOURCE CONNECTOR AS SET FORTH BELOW (THIS “AGREEMENT”), WHICH SHALL BE DEFINITIVELY EVIDENCED BY ANY ONE OF THE FOLLOWING MEANS: YOU, ON BEHALF OF YOUR COMPANY, CLICKING THE “DOWNLOAD, “ACCEPTANCE” OR “CONTINUE” BUTTON, AS APPLICABLE OR COMPANY’S INSTALLATION, ACCESS OR USE OF THE OPEN SOURCE CONNECTOR AND SHALL BE EFFECTIVE ON THE EARLIER OF THE DATE ON WHICH THE DOWNLOAD, ACCESS, COPY OR INSTALL OF THE CONNECTOR OR USE ANY SERVICES (INCLUDING ANY UPDATES OR UPGRADES) PROVIDED BY SINGLESTORE.
|
|
47
|
-
BETA SOFTWARE CONNECTOR
|
|
48
|
-
|
|
49
|
-
Customer Understands and agrees that it is being granted access to pre-release or “beta” versions of SingleStore’s open source software connector (“Beta Software Connector”) for the limited purposes of non-production testing and evaluation of such Beta Software Connector. Customer acknowledges that SingleStore shall have no obligation to release a generally available version of such Beta Software Connector or to provide support or warranty for such versions of the Beta Software Connector for any production or non-evaluation use.
|
|
50
|
-
|
|
51
|
-
NOTWITHSTANDING ANYTHING TO THE CONTRARY IN ANY DOCUMENTATION, AGREEMENT OR IN ANY ORDER DOCUMENT, SINGLESTORE WILL HAVE NO WARRANTY, INDEMNITY, SUPPORT, OR SERVICE LEVEL, OBLIGATIONS WITH
|
|
52
|
-
RESPECT TO THIS BETA SOFTWARE CONNECTOR (INCLUDING TOOLS AND UTILITIES).
|
|
53
|
-
|
|
54
|
-
APPLICABLE OPEN SOURCE LICENSE: Apache 2.0
|
|
55
|
-
|
|
56
|
-
IF YOU OR YOUR COMPANY DO NOT AGREE TO THESE TERMS AND CONDITIONS, DO NOT CHECK THE ACCEPTANCE BOX, AND DO NOT DOWNLOAD, ACCESS, COPY, INSTALL OR USE THE SOFTWARE OR THE SERVICES.
|
|
File without changes
|
|
File without changes
|
{sqlalchemy_singlestoredb-1.0.0 → sqlalchemy_singlestoredb-1.1.1}/sqlalchemy_singlestoredb/dtypes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|