sqlspec 0.16.0__cp310-cp310-win_amd64.whl

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.

Potentially problematic release.


This version of sqlspec might be problematic. Click here for more details.

Files changed (148) hide show
  1. 51ff5a9eadfdefd49f98__mypyc.cp310-win_amd64.pyd +0 -0
  2. sqlspec/__init__.py +92 -0
  3. sqlspec/__main__.py +12 -0
  4. sqlspec/__metadata__.py +14 -0
  5. sqlspec/_serialization.py +77 -0
  6. sqlspec/_sql.py +1347 -0
  7. sqlspec/_typing.py +680 -0
  8. sqlspec/adapters/__init__.py +0 -0
  9. sqlspec/adapters/adbc/__init__.py +5 -0
  10. sqlspec/adapters/adbc/_types.py +12 -0
  11. sqlspec/adapters/adbc/config.py +361 -0
  12. sqlspec/adapters/adbc/driver.py +512 -0
  13. sqlspec/adapters/aiosqlite/__init__.py +19 -0
  14. sqlspec/adapters/aiosqlite/_types.py +13 -0
  15. sqlspec/adapters/aiosqlite/config.py +253 -0
  16. sqlspec/adapters/aiosqlite/driver.py +248 -0
  17. sqlspec/adapters/asyncmy/__init__.py +19 -0
  18. sqlspec/adapters/asyncmy/_types.py +12 -0
  19. sqlspec/adapters/asyncmy/config.py +180 -0
  20. sqlspec/adapters/asyncmy/driver.py +274 -0
  21. sqlspec/adapters/asyncpg/__init__.py +21 -0
  22. sqlspec/adapters/asyncpg/_types.py +17 -0
  23. sqlspec/adapters/asyncpg/config.py +229 -0
  24. sqlspec/adapters/asyncpg/driver.py +344 -0
  25. sqlspec/adapters/bigquery/__init__.py +18 -0
  26. sqlspec/adapters/bigquery/_types.py +12 -0
  27. sqlspec/adapters/bigquery/config.py +298 -0
  28. sqlspec/adapters/bigquery/driver.py +558 -0
  29. sqlspec/adapters/duckdb/__init__.py +22 -0
  30. sqlspec/adapters/duckdb/_types.py +12 -0
  31. sqlspec/adapters/duckdb/config.py +504 -0
  32. sqlspec/adapters/duckdb/driver.py +368 -0
  33. sqlspec/adapters/oracledb/__init__.py +32 -0
  34. sqlspec/adapters/oracledb/_types.py +14 -0
  35. sqlspec/adapters/oracledb/config.py +317 -0
  36. sqlspec/adapters/oracledb/driver.py +538 -0
  37. sqlspec/adapters/psqlpy/__init__.py +16 -0
  38. sqlspec/adapters/psqlpy/_types.py +11 -0
  39. sqlspec/adapters/psqlpy/config.py +214 -0
  40. sqlspec/adapters/psqlpy/driver.py +530 -0
  41. sqlspec/adapters/psycopg/__init__.py +32 -0
  42. sqlspec/adapters/psycopg/_types.py +17 -0
  43. sqlspec/adapters/psycopg/config.py +426 -0
  44. sqlspec/adapters/psycopg/driver.py +796 -0
  45. sqlspec/adapters/sqlite/__init__.py +15 -0
  46. sqlspec/adapters/sqlite/_types.py +11 -0
  47. sqlspec/adapters/sqlite/config.py +240 -0
  48. sqlspec/adapters/sqlite/driver.py +294 -0
  49. sqlspec/base.py +571 -0
  50. sqlspec/builder/__init__.py +62 -0
  51. sqlspec/builder/_base.py +440 -0
  52. sqlspec/builder/_column.py +324 -0
  53. sqlspec/builder/_ddl.py +1383 -0
  54. sqlspec/builder/_ddl_utils.py +104 -0
  55. sqlspec/builder/_delete.py +77 -0
  56. sqlspec/builder/_insert.py +241 -0
  57. sqlspec/builder/_merge.py +56 -0
  58. sqlspec/builder/_parsing_utils.py +140 -0
  59. sqlspec/builder/_select.py +174 -0
  60. sqlspec/builder/_update.py +186 -0
  61. sqlspec/builder/mixins/__init__.py +55 -0
  62. sqlspec/builder/mixins/_cte_and_set_ops.py +195 -0
  63. sqlspec/builder/mixins/_delete_operations.py +36 -0
  64. sqlspec/builder/mixins/_insert_operations.py +152 -0
  65. sqlspec/builder/mixins/_join_operations.py +115 -0
  66. sqlspec/builder/mixins/_merge_operations.py +416 -0
  67. sqlspec/builder/mixins/_order_limit_operations.py +123 -0
  68. sqlspec/builder/mixins/_pivot_operations.py +144 -0
  69. sqlspec/builder/mixins/_select_operations.py +599 -0
  70. sqlspec/builder/mixins/_update_operations.py +164 -0
  71. sqlspec/builder/mixins/_where_clause.py +609 -0
  72. sqlspec/cli.py +247 -0
  73. sqlspec/config.py +395 -0
  74. sqlspec/core/__init__.py +63 -0
  75. sqlspec/core/cache.cp310-win_amd64.pyd +0 -0
  76. sqlspec/core/cache.py +873 -0
  77. sqlspec/core/compiler.cp310-win_amd64.pyd +0 -0
  78. sqlspec/core/compiler.py +396 -0
  79. sqlspec/core/filters.cp310-win_amd64.pyd +0 -0
  80. sqlspec/core/filters.py +830 -0
  81. sqlspec/core/hashing.cp310-win_amd64.pyd +0 -0
  82. sqlspec/core/hashing.py +310 -0
  83. sqlspec/core/parameters.cp310-win_amd64.pyd +0 -0
  84. sqlspec/core/parameters.py +1209 -0
  85. sqlspec/core/result.cp310-win_amd64.pyd +0 -0
  86. sqlspec/core/result.py +664 -0
  87. sqlspec/core/splitter.cp310-win_amd64.pyd +0 -0
  88. sqlspec/core/splitter.py +819 -0
  89. sqlspec/core/statement.cp310-win_amd64.pyd +0 -0
  90. sqlspec/core/statement.py +666 -0
  91. sqlspec/driver/__init__.py +19 -0
  92. sqlspec/driver/_async.py +472 -0
  93. sqlspec/driver/_common.py +612 -0
  94. sqlspec/driver/_sync.py +473 -0
  95. sqlspec/driver/mixins/__init__.py +6 -0
  96. sqlspec/driver/mixins/_result_tools.py +164 -0
  97. sqlspec/driver/mixins/_sql_translator.py +36 -0
  98. sqlspec/exceptions.py +193 -0
  99. sqlspec/extensions/__init__.py +0 -0
  100. sqlspec/extensions/aiosql/__init__.py +10 -0
  101. sqlspec/extensions/aiosql/adapter.py +461 -0
  102. sqlspec/extensions/litestar/__init__.py +6 -0
  103. sqlspec/extensions/litestar/_utils.py +52 -0
  104. sqlspec/extensions/litestar/cli.py +48 -0
  105. sqlspec/extensions/litestar/config.py +92 -0
  106. sqlspec/extensions/litestar/handlers.py +260 -0
  107. sqlspec/extensions/litestar/plugin.py +145 -0
  108. sqlspec/extensions/litestar/providers.py +454 -0
  109. sqlspec/loader.cp310-win_amd64.pyd +0 -0
  110. sqlspec/loader.py +760 -0
  111. sqlspec/migrations/__init__.py +35 -0
  112. sqlspec/migrations/base.py +414 -0
  113. sqlspec/migrations/commands.py +443 -0
  114. sqlspec/migrations/loaders.py +402 -0
  115. sqlspec/migrations/runner.py +213 -0
  116. sqlspec/migrations/tracker.py +140 -0
  117. sqlspec/migrations/utils.py +129 -0
  118. sqlspec/protocols.py +400 -0
  119. sqlspec/py.typed +0 -0
  120. sqlspec/storage/__init__.py +23 -0
  121. sqlspec/storage/backends/__init__.py +0 -0
  122. sqlspec/storage/backends/base.py +163 -0
  123. sqlspec/storage/backends/fsspec.py +386 -0
  124. sqlspec/storage/backends/obstore.py +459 -0
  125. sqlspec/storage/capabilities.py +102 -0
  126. sqlspec/storage/registry.py +239 -0
  127. sqlspec/typing.py +299 -0
  128. sqlspec/utils/__init__.py +3 -0
  129. sqlspec/utils/correlation.py +150 -0
  130. sqlspec/utils/deprecation.py +106 -0
  131. sqlspec/utils/fixtures.cp310-win_amd64.pyd +0 -0
  132. sqlspec/utils/fixtures.py +58 -0
  133. sqlspec/utils/logging.py +127 -0
  134. sqlspec/utils/module_loader.py +89 -0
  135. sqlspec/utils/serializers.py +4 -0
  136. sqlspec/utils/singleton.py +32 -0
  137. sqlspec/utils/sync_tools.cp310-win_amd64.pyd +0 -0
  138. sqlspec/utils/sync_tools.py +237 -0
  139. sqlspec/utils/text.cp310-win_amd64.pyd +0 -0
  140. sqlspec/utils/text.py +96 -0
  141. sqlspec/utils/type_guards.cp310-win_amd64.pyd +0 -0
  142. sqlspec/utils/type_guards.py +1135 -0
  143. sqlspec-0.16.0.dist-info/METADATA +365 -0
  144. sqlspec-0.16.0.dist-info/RECORD +148 -0
  145. sqlspec-0.16.0.dist-info/WHEEL +4 -0
  146. sqlspec-0.16.0.dist-info/entry_points.txt +2 -0
  147. sqlspec-0.16.0.dist-info/licenses/LICENSE +21 -0
  148. sqlspec-0.16.0.dist-info/licenses/NOTICE +29 -0
@@ -0,0 +1,365 @@
1
+ Metadata-Version: 2.4
2
+ Name: sqlspec
3
+ Version: 0.16.0
4
+ Summary: SQL Experiments in Python
5
+ Project-URL: Discord, https://discord.gg/litestar
6
+ Project-URL: Issue, https://github.com/litestar-org/sqlspec/issues/
7
+ Project-URL: Source, https://github.com/litestar-org/sqlspec
8
+ Author-email: Cody Fincher <cody@litestar.dev>
9
+ Maintainer-email: Litestar Developers <hello@litestar.dev>
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Requires-Python: <4.0,>=3.9
14
+ Requires-Dist: eval-type-backport; python_version < '3.10'
15
+ Requires-Dist: mypy-extensions
16
+ Requires-Dist: rich-click
17
+ Requires-Dist: sqlglot>=19.9.0
18
+ Requires-Dist: typing-extensions
19
+ Provides-Extra: adbc
20
+ Requires-Dist: adbc-driver-manager; extra == 'adbc'
21
+ Requires-Dist: pyarrow; extra == 'adbc'
22
+ Provides-Extra: aioodbc
23
+ Requires-Dist: aioodbc; extra == 'aioodbc'
24
+ Provides-Extra: aiosql
25
+ Requires-Dist: aiosql; extra == 'aiosql'
26
+ Provides-Extra: aiosqlite
27
+ Requires-Dist: aiosqlite; extra == 'aiosqlite'
28
+ Provides-Extra: asyncmy
29
+ Requires-Dist: asyncmy; extra == 'asyncmy'
30
+ Provides-Extra: asyncpg
31
+ Requires-Dist: asyncpg; extra == 'asyncpg'
32
+ Provides-Extra: attrs
33
+ Requires-Dist: attrs; extra == 'attrs'
34
+ Requires-Dist: cattrs; extra == 'attrs'
35
+ Provides-Extra: bigquery
36
+ Requires-Dist: google-cloud-bigquery; extra == 'bigquery'
37
+ Provides-Extra: cli
38
+ Requires-Dist: rich-click; extra == 'cli'
39
+ Provides-Extra: duckdb
40
+ Requires-Dist: duckdb; extra == 'duckdb'
41
+ Provides-Extra: fastapi
42
+ Requires-Dist: fastapi; extra == 'fastapi'
43
+ Provides-Extra: flask
44
+ Requires-Dist: flask; extra == 'flask'
45
+ Provides-Extra: fsspec
46
+ Requires-Dist: fsspec; extra == 'fsspec'
47
+ Provides-Extra: litestar
48
+ Requires-Dist: litestar; extra == 'litestar'
49
+ Provides-Extra: msgspec
50
+ Requires-Dist: msgspec; extra == 'msgspec'
51
+ Provides-Extra: mypyc
52
+ Provides-Extra: nanoid
53
+ Requires-Dist: fastnanoid>=0.4.1; extra == 'nanoid'
54
+ Provides-Extra: obstore
55
+ Requires-Dist: obstore; extra == 'obstore'
56
+ Provides-Extra: opentelemetry
57
+ Requires-Dist: opentelemetry-instrumentation; extra == 'opentelemetry'
58
+ Provides-Extra: oracledb
59
+ Requires-Dist: oracledb; extra == 'oracledb'
60
+ Provides-Extra: orjson
61
+ Requires-Dist: orjson; extra == 'orjson'
62
+ Provides-Extra: pandas
63
+ Requires-Dist: pandas; extra == 'pandas'
64
+ Requires-Dist: pyarrow; extra == 'pandas'
65
+ Provides-Extra: performance
66
+ Requires-Dist: msgspec; extra == 'performance'
67
+ Requires-Dist: sqlglot[rs]; extra == 'performance'
68
+ Provides-Extra: polars
69
+ Requires-Dist: polars; extra == 'polars'
70
+ Requires-Dist: pyarrow; extra == 'polars'
71
+ Provides-Extra: prometheus
72
+ Requires-Dist: prometheus-client; extra == 'prometheus'
73
+ Provides-Extra: psqlpy
74
+ Requires-Dist: psqlpy; extra == 'psqlpy'
75
+ Provides-Extra: psycopg
76
+ Requires-Dist: psycopg[binary,pool]; extra == 'psycopg'
77
+ Provides-Extra: pydantic
78
+ Requires-Dist: pydantic; extra == 'pydantic'
79
+ Requires-Dist: pydantic-extra-types; extra == 'pydantic'
80
+ Provides-Extra: pymssql
81
+ Requires-Dist: pymssql; extra == 'pymssql'
82
+ Provides-Extra: pymysql
83
+ Requires-Dist: pymysql; extra == 'pymysql'
84
+ Provides-Extra: spanner
85
+ Requires-Dist: google-cloud-spanner; extra == 'spanner'
86
+ Provides-Extra: uuid
87
+ Requires-Dist: uuid-utils; extra == 'uuid'
88
+ Description-Content-Type: text/markdown
89
+
90
+ # SQLSpec
91
+
92
+ ## A Query Mapper for Python
93
+
94
+ SQLSpec is an experimental Python library designed to streamline and modernize your SQL interactions across a variety of database systems. While still in its early stages, SQLSpec aims to provide a flexible, typed, and extensible interface for working with SQL in Python.
95
+
96
+ **Note**: SQLSpec is currently under active development and the API is subject to change. It is not yet ready for production use. Contributions are welcome!
97
+
98
+ ## Core Features (Current and Planned)
99
+
100
+ ### Currently Implemented
101
+
102
+ - **Consistent Database Session Interface**: Provides a consistent connectivity interface for interacting with one or more database systems, including SQLite, Postgres, DuckDB, MySQL, Oracle, SQL Server, Spanner, BigQuery, and more.
103
+ - **Emphasis on RAW SQL and Minimal Abstractions**: SQLSpec is a library for working with SQL in Python. Its goals are to offer minimal abstractions between the user and the database. It does not aim to be an ORM library.
104
+ - **Type-Safe Queries**: Quickly map SQL queries to typed objects using libraries such as Pydantic, Msgspec, Attrs, etc.
105
+ - **Extensible Design**: Easily add support for new database dialects or extend existing functionality to meet your specific needs. Easily add support for async and sync database drivers.
106
+ - **Minimal Dependencies**: SQLSpec is designed to be lightweight and can run on its own or with other libraries such as `litestar`, `fastapi`, `flask` and more. (Contributions welcome!)
107
+ - **Support for Async and Sync Database Drivers**: SQLSpec supports both async and sync database drivers, allowing you to choose the style that best fits your application.
108
+
109
+ ### Experimental Features (API will change rapidly)
110
+
111
+ - **SQL Builder API**: Type-safe query builder with method chaining (experimental and subject to significant changes)
112
+ - **Dynamic Query Manipulation**: Apply filters to pre-defined queries with a fluent API. Safely manipulate queries without SQL injection risk.
113
+ - **Dialect Validation and Conversion**: Use `sqlglot` to validate your SQL against specific dialects and seamlessly convert between them.
114
+ - **Storage Operations**: Direct export to Parquet, CSV, JSON with Arrow integration
115
+ - **Instrumentation**: OpenTelemetry and Prometheus metrics support
116
+ - **Basic Migration Management**: A mechanism to generate empty migration files where you can add your own SQL and intelligently track which migrations have been applied.
117
+
118
+ ## What SQLSpec Is Not (Yet)
119
+
120
+ SQLSpec is a work in progress. While it offers a solid foundation for modern SQL interactions, it does not yet include every feature you might find in a mature ORM or database toolkit. The focus is on building a robust, flexible core that can be extended over time.
121
+
122
+ ## Examples
123
+
124
+ We've talked about what SQLSpec is not, so let's look at what it can do.
125
+
126
+ These are just a few examples that demonstrate SQLSpec's flexibility. Each of the bundled adapters offers the same config and driver interfaces.
127
+
128
+ ### Basic Usage
129
+
130
+ ```python
131
+ from sqlspec import SQLSpec
132
+ from sqlspec.adapters.sqlite import SqliteConfig
133
+ from pydantic import BaseModel
134
+ # Create SQLSpec instance and configure database
135
+ sql = SQLSpec()
136
+ config = sql.add_config(SqliteConfig(database=":memory:"))
137
+
138
+ # Execute queries with automatic result mapping
139
+ with sql.provide_session(config) as session:
140
+ # Simple query
141
+ result = session.execute("SELECT 'Hello, SQLSpec!' as message")
142
+ print(result.get_first()) # {'message': 'Hello, SQLSpec!'}
143
+ ```
144
+
145
+ ### SQL Builder Example (Experimental)
146
+
147
+ **Warning**: The SQL Builder API is highly experimental and will change significantly.
148
+
149
+ ```python
150
+ from sqlspec import sql
151
+
152
+ # Build a simple query
153
+ query = sql.select("id", "name", "email").from_("users").where("active = ?", True)
154
+ print(query.build().sql) # SELECT id, name, email FROM users WHERE active = ?
155
+
156
+ # More complex example with joins
157
+ query = (
158
+ sql.select("u.name", "COUNT(o.id) as order_count")
159
+ .from_("users u")
160
+ .left_join("orders o", "u.id = o.user_id")
161
+ .where("u.created_at > ?", "2024-01-01")
162
+ .group_by("u.name")
163
+ .having("COUNT(o.id) > ?", 5)
164
+ .order_by("order_count", desc=True)
165
+ )
166
+
167
+ # Execute the built query
168
+ with sql.provide_session(config) as session:
169
+ results = session.execute(query.build())
170
+ ```
171
+
172
+ ### DuckDB LLM
173
+
174
+ This is a quick implementation using some of the built-in Secret and Extension management features of SQLSpec's DuckDB integration.
175
+
176
+ It allows you to communicate with any compatible OpenAPI conversations endpoint (such as Ollama). This example:
177
+
178
+ - auto installs the `open_prompt` DuckDB extensions
179
+ - automatically creates the correct `open_prompt` compatible secret required to use the extension
180
+
181
+ ```py
182
+ # /// script
183
+ # dependencies = [
184
+ # "sqlspec[duckdb,performance]",
185
+ # ]
186
+ # ///
187
+ import os
188
+
189
+ from sqlspec import SQLSpec
190
+ from sqlspec.adapters.duckdb import DuckDBConfig
191
+ from pydantic import BaseModel
192
+
193
+ class ChatMessage(BaseModel):
194
+ message: str
195
+
196
+ sql = SQLSpec()
197
+ etl_config = sql.add_config(
198
+ DuckDBConfig(
199
+ extensions=[{"name": "open_prompt"}],
200
+ secrets=[
201
+ {
202
+ "secret_type": "open_prompt",
203
+ "name": "open_prompt",
204
+ "value": {
205
+ "api_url": "http://127.0.0.1:11434/v1/chat/completions",
206
+ "model_name": "gemma3:1b",
207
+ "api_timeout": "120",
208
+ },
209
+ }
210
+ ],
211
+ )
212
+ )
213
+ with sql.provide_session(etl_config) as session:
214
+ result = session.select_one(
215
+ "SELECT open_prompt(?)",
216
+ "Can you write a haiku about DuckDB?",
217
+ schema_type=ChatMessage
218
+ )
219
+ print(result) # result is a ChatMessage pydantic model
220
+ ```
221
+
222
+ ### DuckDB Gemini Embeddings
223
+
224
+ In this example, we are again using DuckDB. However, we are going to use the built-in to call the Google Gemini embeddings service directly from the database.
225
+
226
+ This example will:
227
+
228
+ - auto installs the `http_client` and `vss` (vector similarity search) DuckDB extensions
229
+ - when a connection is created, it ensures that the `generate_embeddings` macro exists in the DuckDB database
230
+ - Execute a simple query to call the Google API
231
+
232
+ ```py
233
+ # /// script
234
+ # dependencies = [
235
+ # "sqlspec[duckdb,performance]",
236
+ # ]
237
+ # ///
238
+ import os
239
+
240
+ from sqlspec import SQLSpec
241
+ from sqlspec.adapters.duckdb import DuckDBConfig
242
+
243
+ EMBEDDING_MODEL = "gemini-embedding-exp-03-07"
244
+ GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
245
+ API_URL = (
246
+ f"https://generativelanguage.googleapis.com/v1beta/models/{EMBEDDING_MODEL}:embedContent?key=${GOOGLE_API_KEY}"
247
+ )
248
+
249
+ sql = SQLSpec()
250
+ etl_config = sql.add_config(
251
+ DuckDBConfig(
252
+ extensions=[{"name": "vss"}, {"name": "http_client"}],
253
+ on_connection_create=lambda connection: connection.execute(f"""
254
+ CREATE IF NOT EXISTS MACRO generate_embedding(q) AS (
255
+ WITH __request AS (
256
+ SELECT http_post(
257
+ '{API_URL}',
258
+ headers => MAP {{
259
+ 'accept': 'application/json',
260
+ }},
261
+ params => MAP {{
262
+ 'model': 'models/{EMBEDDING_MODEL}',
263
+ 'parts': [{{ 'text': q }}],
264
+ 'taskType': 'SEMANTIC_SIMILARITY'
265
+ }}
266
+ ) AS response
267
+ )
268
+ SELECT *
269
+ FROM __request,
270
+ );
271
+ """),
272
+ )
273
+ )
274
+ with sql.provide_session(etl_config) as session:
275
+ result = session.execute("SELECT generate_embedding('example text')")
276
+ print(result.get_first()) # result is a dictionary when `schema_type` is omitted.
277
+ ```
278
+
279
+ ### Basic Litestar Integration
280
+
281
+ In this example we are going to demonstrate how to create a basic configuration that integrates into Litestar.
282
+
283
+ ```py
284
+ # /// script
285
+ # dependencies = [
286
+ # "sqlspec[aiosqlite]",
287
+ # "litestar[standard]",
288
+ # ]
289
+ # ///
290
+
291
+ from litestar import Litestar, get
292
+
293
+ from sqlspec.adapters.aiosqlite import AiosqliteConfig, AiosqliteDriver
294
+ from sqlspec.extensions.litestar import DatabaseConfig, SQLSpec
295
+
296
+
297
+ @get("/")
298
+ async def simple_sqlite(db_session: AiosqliteDriver) -> dict[str, str]:
299
+ return await db_session.select_one("SELECT 'Hello, world!' AS greeting")
300
+
301
+
302
+ sqlspec = SQLSpec(
303
+ config=DatabaseConfig(
304
+ config=AiosqliteConfig(),
305
+ commit_mode="autocommit"
306
+ )
307
+ )
308
+ app = Litestar(route_handlers=[simple_sqlite], plugins=[sqlspec])
309
+ ```
310
+
311
+ ## Inspiration and Future Direction
312
+
313
+ SQLSpec originally drew inspiration from features found in the `aiosql` library. This is a great library for working with and executing SQL stored in files. It's unclear how much of an overlap there will be between the two libraries, but it's possible that some features will be contributed back to `aiosql` where appropriate.
314
+
315
+ ## Current Focus: Universal Connectivity
316
+
317
+ The primary goal at this stage is to establish a **native connectivity interface** that works seamlessly across all supported database environments. This means you can connect to any of the supported databases using a consistent API, regardless of the underlying driver or dialect.
318
+
319
+ ## Adapters: Completed, In Progress, and Planned
320
+
321
+ This list is not final. If you have a driver you'd like to see added, please open an issue or submit a PR!
322
+
323
+ | Driver | Database | Mode | Status |
324
+ | :----------------------------------------------------------------------------------------------------------- | :--------- | :------ | :--------- |
325
+ | [`adbc`](https://arrow.apache.org/adbc/) | Postgres | Sync | ✅ |
326
+ | [`adbc`](https://arrow.apache.org/adbc/) | SQLite | Sync | ✅ |
327
+ | [`adbc`](https://arrow.apache.org/adbc/) | Snowflake | Sync | ✅ |
328
+ | [`adbc`](https://arrow.apache.org/adbc/) | DuckDB | Sync | ✅ |
329
+ | [`asyncpg`](https://magicstack.github.io/asyncpg/current/) | PostgreSQL | Async | ✅ |
330
+ | [`psycopg`](https://www.psycopg.org/) | PostgreSQL | Sync | ✅ |
331
+ | [`psycopg`](https://www.psycopg.org/) | PostgreSQL | Async | ✅ |
332
+ | [`psqlpy`](https://psqlpy-python.github.io/) | PostgreSQL | Async | ✅ |
333
+ | [`aiosqlite`](https://github.com/omnilib/aiosqlite) | SQLite | Async | ✅ |
334
+ | `sqlite3` | SQLite | Sync | ✅ |
335
+ | [`oracledb`](https://oracle.github.io/python-oracledb/) | Oracle | Async | ✅ |
336
+ | [`oracledb`](https://oracle.github.io/python-oracledb/) | Oracle | Sync | ✅ |
337
+ | [`duckdb`](https://duckdb.org/) | DuckDB | Sync | ✅ |
338
+ | [`bigquery`](https://googleapis.dev/python/bigquery/latest/index.html) | BigQuery | Sync | ✅ |
339
+ | [`spanner`](https://googleapis.dev/python/spanner/latest/index.html) | Spanner | Sync | 🗓️ |
340
+ | [`sqlserver`](https://docs.microsoft.com/en-us/sql/connect/python/pyodbc/python-sql-driver-for-pyodbc?view=sql-server-ver16) | SQL Server | Sync | 🗓️ |
341
+ | [`mysql`](https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysql-connector-python.html) | MySQL | Sync | 🗓️ |
342
+ | [`asyncmy`](https://github.com/long2ice/asyncmy) | MySQL | Async | ✅ |
343
+ | [`snowflake`](https://docs.snowflake.com) | Snowflake | Sync | 🗓️ |
344
+
345
+ ## Proposed Project Structure
346
+
347
+ - `sqlspec/`:
348
+ - `adapters/`: Contains all database drivers and associated configuration.
349
+ - `extensions/`:
350
+ - `litestar/`: Litestar framework integration ✅
351
+ - `fastapi/`: Future home of `fastapi` integration.
352
+ - `flask/`: Future home of `flask` integration.
353
+ - `*/`: Future home of your favorite framework integration
354
+ - `base.py`: Contains base protocols for database configurations.
355
+ - `statement/`: Contains the SQL statement system with builders, validation, and transformation.
356
+ - `storage/`: Contains unified storage operations for data import/export.
357
+ - `utils/`: Contains utility functions used throughout the project.
358
+ - `exceptions.py`: Contains custom exceptions for SQLSpec.
359
+ - `typing.py`: Contains type hints, type guards and several facades for optional libraries that are not required for the core functionality of SQLSpec.
360
+
361
+ ## Get Involved
362
+
363
+ SQLSpec is an open-source project, and contributions are welcome! Whether you're interested in adding support for new databases, improving the query interface, or simply providing feedback, your input is valuable.
364
+
365
+ **Disclaimer**: SQLSpec is under active development. Expect changes and improvements as the project evolves.
@@ -0,0 +1,148 @@
1
+ sqlspec/__init__.py,sha256=ZgEBADyXVNI7k5TkVTPPkZc6KcbFU_i11YcrCPa3PcY,2158
2
+ sqlspec/__main__.py,sha256=maJSnrqHVQu1Gyn9xd-_nUyh703-NoGi5WSt21HpDCU,265
3
+ sqlspec/__metadata__.py,sha256=HE_nBToY44PdTnfIeozTr0hHVIwpfDmkz73GQHo28JM,409
4
+ sqlspec/_serialization.py,sha256=GkgRPKvhExDBHN5T_FupQYEEEetNPNqh57F_MF0V3f8,2667
5
+ sqlspec/_sql.py,sha256=w1kfzTFUn9-mDRWLcRA2f3mg2Q2zNyqffIy_I3oZnRs,46891
6
+ sqlspec/_typing.py,sha256=ZzZ5CgJmVHZ06u7kSOOgPAhBEQ5A6c23LWgns-yVBFE,23364
7
+ sqlspec/base.py,sha256=Eiu7hnV7n_wIFR0lk1oY0h6wmyc_xXROazM0fSulzIs,22338
8
+ sqlspec/cli.py,sha256=Avk1_F5EIabFCLRuNCQzMEsKN54VPqsKG9khnZuzfRw,10150
9
+ sqlspec/config.py,sha256=bEnHx1yuDXpdN2rd2YQ_pkh6dPIjCjBFmhGNoO8IuVo,15369
10
+ sqlspec/exceptions.py,sha256=E-9bRLPgUFsyFc515GMz4rnnJx3BaAhIg0PlxFzHZss,6352
11
+ sqlspec/loader.cp310-win_amd64.pyd,sha256=UTbcr5WFgHMrwDLkVbmy-hivWlG51PpD3kftYcFfIwY,10240
12
+ sqlspec/loader.py,sha256=Yy_01o0y6YluVoqzxo_4t6qtQ1ZuKHEnsfgk90diQjQ,28019
13
+ sqlspec/protocols.py,sha256=S41ndFP2YvHqTYNIHEqeCwUc905vK0iCca4otRUE_1s,13032
14
+ sqlspec/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ sqlspec/typing.py,sha256=Lfd-Y75uFQZBGjIbi06M7jSTHJ7Wc_L4j9nUc8PN-eE,7692
16
+ sqlspec/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
+ sqlspec/adapters/adbc/__init__.py,sha256=O_QXpbj5ejEDc1i2L7lzgQT0onkMZl5JiZWINog_mTU,341
18
+ sqlspec/adapters/adbc/_types.py,sha256=koTjOYZqytjr8dwNsNIv_-EFt_01Hldk9pWG61t1d5A,363
19
+ sqlspec/adapters/adbc/config.py,sha256=0zMDgs2_jGWNZA0D2FmCuhRflbOL4BqUTVrZ6h4OKQw,14232
20
+ sqlspec/adapters/adbc/driver.py,sha256=1wC5iv6W-q6M40wIL6MKLWaldotJ4CxWHDo90housXY,20729
21
+ sqlspec/adapters/aiosqlite/__init__.py,sha256=CCysSdv04SXvosgMQuAaksNChjDV-WzQnm3yctUfiWU,596
22
+ sqlspec/adapters/aiosqlite/_types.py,sha256=5dFU7lL5Q3tH21sIhfx0VSViIMn53asqdE54IWk-sms,368
23
+ sqlspec/adapters/aiosqlite/config.py,sha256=2egQeXLZYXyFNJwEObAMJL-hZwtVaqZB9FjjCRUenCs,9289
24
+ sqlspec/adapters/aiosqlite/driver.py,sha256=1HyZrKio069vjMcDCPfWCvmI8GUe-kFPbKEleZRCHh0,9892
25
+ sqlspec/adapters/asyncmy/__init__.py,sha256=y4q8L3XaSqwD9njMBszz1mMWHt7HGSFGPI2jTn9iz3E,550
26
+ sqlspec/adapters/asyncmy/_types.py,sha256=SnoptYcPiS8jqfxHFtqU2B1QKHA2JEZr3Nkh3uDEqUs,262
27
+ sqlspec/adapters/asyncmy/config.py,sha256=3mscUNKYnCzQdRuV5u92oGr-p-opUQb9hFYD6vLY1h4,6737
28
+ sqlspec/adapters/asyncmy/driver.py,sha256=VjGFb9lPTOMiAwISEPffvQZywPb7X2S1nDu7Qioa-rg,11489
29
+ sqlspec/adapters/asyncpg/__init__.py,sha256=ysv0Uyw0cW8Q-uOxOcU0cfJ627RxIFtBbwxhJb4wYzs,588
30
+ sqlspec/adapters/asyncpg/_types.py,sha256=NHhhOJAktK4Cfmq5goSlm_Ab0RbFY8M_kF0RKq7T0Vw,442
31
+ sqlspec/adapters/asyncpg/config.py,sha256=ae6viVgayqkdYff5HeWISHEDL5kX4conLM0ihjfYHg4,8981
32
+ sqlspec/adapters/asyncpg/driver.py,sha256=mPHGHIkE5CBwfXtllyBDhh0gHPb5QPmyOJ5kDAsM9Ms,14630
33
+ sqlspec/adapters/bigquery/__init__.py,sha256=VRStcBWMLae3-rXSr2_QlRd-Vj21SoQ3acq842dbPGY,522
34
+ sqlspec/adapters/bigquery/_types.py,sha256=TXbus2ye-ptP2ZNQTP05BiaGg-swwGH4jZfj5B1zfQw,267
35
+ sqlspec/adapters/bigquery/config.py,sha256=2EETA-cCgt22dEaGjss1ICvM59fp2Y94nFSsSg1YLHo,12273
36
+ sqlspec/adapters/bigquery/driver.py,sha256=ScPUcc1ya3QytLTpluWm_rh4Gt4HV2D7IsbyNCSBSZU,24574
37
+ sqlspec/adapters/duckdb/__init__.py,sha256=tFK5wmf85OqCac3TKBV49gpO07R0tiFlp95SSjpI5gI,625
38
+ sqlspec/adapters/duckdb/_types.py,sha256=tgRE56OWydQdCmo-NbyrFv_lEG0pGs5B02Rz4uCwUoQ,282
39
+ sqlspec/adapters/duckdb/config.py,sha256=cRgoux_6crT4PddaOjlSaXNtV1d7nsbmm4b-nSq3NLc,19114
40
+ sqlspec/adapters/duckdb/driver.py,sha256=esWfx6uDpZnOC-qmSMkpsPvHj_aQvdTE1kCrVDtxmGQ,15371
41
+ sqlspec/adapters/oracledb/__init__.py,sha256=LVc9CcJtiyvD9BehqF9kJxelWb5tWo0s37vsAV4wo_M,875
42
+ sqlspec/adapters/oracledb/_types.py,sha256=OkpvpiexeYHVriFFOyUeJT8R-jJ7Djhg3NvVGERnjfQ,414
43
+ sqlspec/adapters/oracledb/config.py,sha256=A4Km3fppLozra7glR5B2sL85DMi-3MSyFgzOfNH4DyE,11700
44
+ sqlspec/adapters/oracledb/driver.py,sha256=4Xw5aVyebm1DysfvxEsbiqlc9979P3G_bK6yuuMNNoE,23072
45
+ sqlspec/adapters/psqlpy/__init__.py,sha256=2sqS-9eE1oAz39yDztIYkjaB6Lt0dTUZGMcVv4ODR48,542
46
+ sqlspec/adapters/psqlpy/_types.py,sha256=PoR7o4hYtrUNqHEJrSK1Q8-2OBqjX_j2zIZ3kEyY9Vc,280
47
+ sqlspec/adapters/psqlpy/config.py,sha256=YsA-gUQgUtxNNRg4glVwyN1Yihlx7jX_fUMvOYWYMGA,8080
48
+ sqlspec/adapters/psqlpy/driver.py,sha256=LPCC6a8RpLHGmc4OLoRnfK18BjUEL26ncczT8W-li0c,20876
49
+ sqlspec/adapters/psycopg/__init__.py,sha256=AJCBp1hO94TyatP2TBuES1vStMJPjIKrRnGEsmo9rt4,894
50
+ sqlspec/adapters/psycopg/_types.py,sha256=cTwmH2PwxOhZuWkb9ZYDSEXqJCgPRCKSRveFVzK9lLo,580
51
+ sqlspec/adapters/psycopg/config.py,sha256=KqHoQ5ZcpIdJ-ErVG7ZyncStfKCbA7g_ik3WbQoqdUE,16694
52
+ sqlspec/adapters/psycopg/driver.py,sha256=DG96urJacPSelJPthBlDJm_wjIAFR7xQXdNXaZL3wm4,34230
53
+ sqlspec/adapters/sqlite/__init__.py,sha256=RXTM5Vl903QKExhY2gKXLenKQfE6OEPtxskTxCgHfH8,499
54
+ sqlspec/adapters/sqlite/_types.py,sha256=jKT31sAsq7b379CbbY5HgBYSFFOxMMOYmjCfpbJ_tFg,257
55
+ sqlspec/adapters/sqlite/config.py,sha256=6Hsal8sNBVGk_vrrgeimlV4Ep45fTmikO2ODdyQANCg,9406
56
+ sqlspec/adapters/sqlite/driver.py,sha256=OdlipapCMxmczpI3yBCrlRw3bVVf1gfiPjXONCW060g,12397
57
+ sqlspec/builder/__init__.py,sha256=2NiFWWxxkPecpv_0Cr7t6XuIWF-TobOzQiFymKA-PVc,1491
58
+ sqlspec/builder/_base.py,sha256=w2RThNq2ddYCWfGOPYtb_J128NzmA50VVy_T8hjzFac,17674
59
+ sqlspec/builder/_column.py,sha256=Cjrjs_-VVfb2DcMZSzR_2vqnPOdN4f5ps7_7lxohIMQ,13548
60
+ sqlspec/builder/_ddl.py,sha256=TgPd-TelOJy4t38RCgUbhGcfvmOm1sqBMeYE1sNQWAA,51667
61
+ sqlspec/builder/_ddl_utils.py,sha256=Td_l4ecSEbfKf5YAE9qfnENM5n03-LlTdostvof2DJA,4219
62
+ sqlspec/builder/_delete.py,sha256=HjRkzveBnKKwFl9fq8_XXyxJqp4_wJ_MaO5Z0M_kVKM,2378
63
+ sqlspec/builder/_insert.py,sha256=zZFZKBjRDPxN25V9s7e3VADCe6XGFG0V3TdCgKGdOig,9330
64
+ sqlspec/builder/_merge.py,sha256=3nCzdrUu4rjKKjMZOZOjqeLpoK38C7sq1w8ke991-js,1626
65
+ sqlspec/builder/_parsing_utils.py,sha256=0a2QWujbThVzV9pAL5DICTDDUMgKaztz32zhM47quOU,5757
66
+ sqlspec/builder/_select.py,sha256=XXHs781iQ3vuEy9fmhcpqDs-eSomxgv1iq1NDJfCgTo,6166
67
+ sqlspec/builder/_update.py,sha256=L0hBaLJt8nIFGXpNuy5fFMAlX3-LQjF65uAL60eUCMk,6155
68
+ sqlspec/builder/mixins/__init__.py,sha256=kov0GtaG2FA2Mo-Ol4YwYHvlI2ZhIVxC8c9bsPUXdOU,1940
69
+ sqlspec/builder/mixins/_cte_and_set_ops.py,sha256=9f8W9Vhg-AVvVQjRZqy5Zfk4TM_iVOIRQkxtwJoQUxM,8512
70
+ sqlspec/builder/mixins/_delete_operations.py,sha256=XAXv66hLeVzZx1ixRzajw4CF59QWWfoYuWS1BUdiOUg,1104
71
+ sqlspec/builder/mixins/_insert_operations.py,sha256=h5YDMOsYH1Ry00HUVgfQ0yPOF_6WKccHnL3cYkwSIks,6492
72
+ sqlspec/builder/mixins/_join_operations.py,sha256=jJDeOrIXzHLo5_N1aR26BAZ08Al9DP2uW2ZRkt1fzRs,5622
73
+ sqlspec/builder/mixins/_merge_operations.py,sha256=jbcDTt4L8mCTqydgDKcypfwh0gq3OT8OL4h2uclcIho,18058
74
+ sqlspec/builder/mixins/_order_limit_operations.py,sha256=4v3IPdaTIJHPqLL1ab-ZjgGuGIMdk2BsvuHuWXCVbKg,4637
75
+ sqlspec/builder/mixins/_pivot_operations.py,sha256=mCcyl908Ivjux0a6V5cEfYwCiL3-HLkmY13Zs0V_L10,6030
76
+ sqlspec/builder/mixins/_select_operations.py,sha256=QONYgFzB5GFQcQbp6ZCr6HhW26eubzB5l_jNha23p20,25495
77
+ sqlspec/builder/mixins/_update_operations.py,sha256=NmV_eCq7MqKsC9C5R1Gmf53n1EpLm_-_UYHpNU-Oa9I,7813
78
+ sqlspec/builder/mixins/_where_clause.py,sha256=qexs2TOupqcCtvQ0AlH8iwy0RV-SUdT7ps3dHsXRwUQ,33898
79
+ sqlspec/core/__init__.py,sha256=7uE-JZVGw5FT-Tp73HibznHAdXCbSqC08psjhybCUGs,1838
80
+ sqlspec/core/cache.cp310-win_amd64.pyd,sha256=ngHVrncJvCO1nJrkRPvFF-V2q2ZA1fVqiXbGgHYC3KU,10240
81
+ sqlspec/core/cache.py,sha256=aa7zjfzcsm11EKnqYaE5Ol5TzZeGq4BEdYOOOBzAJjU,28003
82
+ sqlspec/core/compiler.cp310-win_amd64.pyd,sha256=MI0nuCpF7agmGKrCutooFrkbXUiT6dCVopAJkOPQ-1A,10240
83
+ sqlspec/core/compiler.py,sha256=rV3JjrwG3900NJP6ebv65v7Kc6Qdva1H2u3SxU7HHiY,14355
84
+ sqlspec/core/filters.cp310-win_amd64.pyd,sha256=lnuNL0ChiWvfYIWVw5szsZLYofSWbqWnNkSxwJXCf40,10240
85
+ sqlspec/core/filters.py,sha256=an8wAV2TmGcNjLZcyokBDQ3mcNIyhhkZcJs0hLmKIqs,32181
86
+ sqlspec/core/hashing.cp310-win_amd64.pyd,sha256=Ye48rQmihwcV2hNMQyOk55lLU_bDK_BWdFy_KzyNneE,10240
87
+ sqlspec/core/hashing.py,sha256=laIBqWRhWUqwyxSbMTZaYdyVVSb2PpKcMJvsABghh_Y,10739
88
+ sqlspec/core/parameters.cp310-win_amd64.pyd,sha256=4Po2nTJafGh_l3Zpduxb4jVnaiKUKPD-DH1ooX2EhGg,10240
89
+ sqlspec/core/parameters.py,sha256=z2_Y7vCQ1w8hd9yiBR5WpBsbwyr9h_Sh3i1ehDb_Agw,54042
90
+ sqlspec/core/result.cp310-win_amd64.pyd,sha256=2eDHswA_V4eowx1YDC-DzTA8znJV3ljAHtvRnAMyWjI,10240
91
+ sqlspec/core/result.py,sha256=MIZD-YKo-ljrcDqvMLlc8JYTjThCThsqmTcOffK_OCM,21764
92
+ sqlspec/core/splitter.cp310-win_amd64.pyd,sha256=5tBnBB5JMpLoGMvCFP3blC42iO39G53eogKLSr_pDRE,10240
93
+ sqlspec/core/splitter.py,sha256=0ak8_2NXeAWDDh4PPqsHXU3-bUONa-hT8ADphcJbs1k,28908
94
+ sqlspec/core/statement.cp310-win_amd64.pyd,sha256=zWF4ZDbFupHGVN3o1L_bXLToXR6SNIyNhiXqHjPJzlY,10240
95
+ sqlspec/core/statement.py,sha256=oVhWuCXjmxqdIbehdcPM-L7VagjAmgd4Ya4ox2XsBlY,25783
96
+ sqlspec/driver/__init__.py,sha256=bz5isWsCL8zOfz-Mgd5rPCIkXXC127fQVfbsoKfTGJM,588
97
+ sqlspec/driver/_async.py,sha256=X0ck_oIbcvNG869XsGLsXBn2UVUzucgkk3NqkGbsXKc,19330
98
+ sqlspec/driver/_common.py,sha256=l7PEnWdYkc025hBZkIwYr8i2eQQTTFBP2JdkgX93Sqw,26165
99
+ sqlspec/driver/_sync.py,sha256=insadp359bjPjePC2Bm-w1T0K-zkFIsPtUnp2AY9v0U,19059
100
+ sqlspec/driver/mixins/__init__.py,sha256=CJB1sdm8VM-RPyMZlbfNRvWYlLowqNCsFIZBB6EX3z0,254
101
+ sqlspec/driver/mixins/_result_tools.py,sha256=IxPKJzZtovluVzZrzHFLeFlmOm9_pbTT1m0dananA4U,6897
102
+ sqlspec/driver/mixins/_sql_translator.py,sha256=0eQ7NM-QnCM2-E_ixxB4wjqSqcAvE32czuyqbV5vpS0,1527
103
+ sqlspec/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
104
+ sqlspec/extensions/aiosql/__init__.py,sha256=aShS5wKkDEkXuQiLQ_WyK5MKDfu5C4zXhE7EGnQ779w,424
105
+ sqlspec/extensions/aiosql/adapter.py,sha256=OT_OT646_Fj7EqPK5rRRCN0sGyyy-eUTbfqcNoY3Fn0,16470
106
+ sqlspec/extensions/litestar/__init__.py,sha256=F_pw06XhoVuoHcr4f1hRvx0xeZSZ6l1fBIAGQLJkEvw,326
107
+ sqlspec/extensions/litestar/_utils.py,sha256=VOFaDpEfq2PjK3WCX3QW1uzHxsmT9OfJhD21tcNCHqc,2006
108
+ sqlspec/extensions/litestar/cli.py,sha256=dOb2xMTDUPWFkTB2fhfFmw82yi663NsXQO5etFWENvs,1404
109
+ sqlspec/extensions/litestar/config.py,sha256=zES2EC9RXwGBcas-FMzoPT4ncQ23H7l1H5O6k33K5sc,4554
110
+ sqlspec/extensions/litestar/handlers.py,sha256=rmyfp-99O0HIVbbkI35YiP4OdcEMA8YlLZeN2-ui_N0,10253
111
+ sqlspec/extensions/litestar/plugin.py,sha256=lnUgm0_hdzafUc_-7sWg7db5TAV4_mZGLMRMQ5Na_8Q,5782
112
+ sqlspec/extensions/litestar/providers.py,sha256=yliFQhKqK56UkfsdwfXHnolONpQODXTlcWRm3lbim8w,19336
113
+ sqlspec/migrations/__init__.py,sha256=9yAIYX-lVJy6tXUasBJsaQJc1VSRzRES5uFoI-euVCY,1096
114
+ sqlspec/migrations/base.py,sha256=-2VydV2MYZvydeM54qy1PPEniGTleyolkuwH-dPo-V8,13665
115
+ sqlspec/migrations/commands.py,sha256=8jJ_RgI8Wn50VxhLGBAr-MQ4FIlloConUs1o6raWdsE,18933
116
+ sqlspec/migrations/loaders.py,sha256=4ytZXB48i5M9gcRPGe7oiaSQdOSohfVy9gO3PwliWi4,13354
117
+ sqlspec/migrations/runner.py,sha256=xhC6-a8lVik3ypPnWydXz5fWtiIPEM18GUpkp6pwY7c,7543
118
+ sqlspec/migrations/tracker.py,sha256=IqyNquLxz2Kkp-XZ-n6WlJnRqpwLcyWbQGHCyzGt0jI,5153
119
+ sqlspec/migrations/utils.py,sha256=4UOq8DVPzdklJKrFn505JSlx-SuaRt_VVlLFJw0CxYE,3875
120
+ sqlspec/storage/__init__.py,sha256=0UD-Kocd99X3yWRR7VRj4Glgz4kZjE3M1pI3bYU2K00,714
121
+ sqlspec/storage/capabilities.py,sha256=Wn1dhpDzfK7NNOjiP4sgJ3Zk92TbW-4MB0ikzc8dkr0,3147
122
+ sqlspec/storage/registry.py,sha256=P1Pp5iHtD0RhkGNSV-Sv2OcKi-eI6ckqPEWiKtT8Zak,9768
123
+ sqlspec/storage/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
+ sqlspec/storage/backends/base.py,sha256=_w2M6qw5HJnGjUKa3k_-f5HwHd2MeF9JDK5BLO5IA1E,5893
125
+ sqlspec/storage/backends/fsspec.py,sha256=6VivrBjVZnt2MWR4dh6IZXMXni7aj72_W4pVJAO9azw,16436
126
+ sqlspec/storage/backends/obstore.py,sha256=c0KykJMZCJcaSq7GnVBzp6Xr2XAzDdqmbPFolAuM57Y,20323
127
+ sqlspec/utils/__init__.py,sha256=r0c5KKXyXv8oHVd49qjXpBuzzv1zuNDEXyLFIL5aUFw,214
128
+ sqlspec/utils/correlation.py,sha256=5R4KgSLRFCqnr50y5kFFfLVERN1_5qpTssIJwepzI-k,4345
129
+ sqlspec/utils/deprecation.py,sha256=4n4CO2tJLMYofWFRST5jwq9iS0wN8KI1h9RqDrxvI3c,3900
130
+ sqlspec/utils/fixtures.cp310-win_amd64.pyd,sha256=L4TZEwN0F-oT5jyek53FnSDTmZ4hzusWqAv4FCuZvVI,10240
131
+ sqlspec/utils/fixtures.py,sha256=RAFwVmALZjVEHQRIrkiGIlIL0_kcp3ir7DvU_cy4rxY,1865
132
+ sqlspec/utils/logging.py,sha256=xV2dUPyeZip36PqBVl255TOSshoVPnPYqajDN2kkYWw,3835
133
+ sqlspec/utils/module_loader.py,sha256=OjEH7VJvPD_Ek-GNYoo2jG5MvfdrXxbWzRblrpKLRBk,2912
134
+ sqlspec/utils/serializers.py,sha256=3O1Vd5P3ST9x1dfmgBTJhZ9lEzOeE34hkzEXestGf8Y,158
135
+ sqlspec/utils/singleton.py,sha256=5rlRkqdFQSSjDuUJVOp9n1uiNvKupgUgEW-6w22jV-4,1079
136
+ sqlspec/utils/sync_tools.cp310-win_amd64.pyd,sha256=YfXyct77PRJvOTJQlcANi0Dxkmzc2dAlRnlvXt5Qv7w,10240
137
+ sqlspec/utils/sync_tools.py,sha256=n9N8iHlpNUc0dXuZuuRNVe0U8n2I1MdnznW3o3PXZo4,7627
138
+ sqlspec/utils/text.cp310-win_amd64.pyd,sha256=-e1NiY7RXeuTzPBvrRDTqir8eVZaxDugQi-LRaAph-U,10240
139
+ sqlspec/utils/text.py,sha256=AkgZtPazRyTDYhLREiz78bSKQscmwtW1Pb1LFuLsolE,2994
140
+ sqlspec/utils/type_guards.cp310-win_amd64.pyd,sha256=D2YLk23HRmcoJL8kw21CKpufW3fmt_GR2S8QPtmzWhI,10240
141
+ sqlspec/utils/type_guards.py,sha256=ueUdeD6q86mi4JOoXY7bYt9xQe6qVlEW32HmsVyj2cY,31474
142
+ 51ff5a9eadfdefd49f98__mypyc.cp310-win_amd64.pyd,sha256=cC31IDNlgnxYKrehz8CH5VVB6Mkh_YWNe3TippMs2Sc,1176576
143
+ sqlspec-0.16.0.dist-info/METADATA,sha256=YmaZ4D_0DDG-phbhQMQFcP0lEYVPCpTtd7rJdzEL0BU,16822
144
+ sqlspec-0.16.0.dist-info/WHEEL,sha256=gV2QQIehTwdgcZTuYrv3t7xf38GP96yAbc9cM4-HSKA,97
145
+ sqlspec-0.16.0.dist-info/entry_points.txt,sha256=G-ZqY1Nuuw3Iys7nXw23f6ILenk_Lt47VdK2mhJCWHg,53
146
+ sqlspec-0.16.0.dist-info/licenses/LICENSE,sha256=8Fb7VDUZ0a771zLvKIjb2HcCqOsZ2r9EDEy2HJmDXsA,1099
147
+ sqlspec-0.16.0.dist-info/licenses/NOTICE,sha256=Xirxzbu60Y_cjXqIeGk776ZAOV2Zgyx_zgjnUjON7-c,1663
148
+ sqlspec-0.16.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: false
4
+ Tag: cp310-cp310-win_amd64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ sqlspec = sqlspec.__main__:run_cli
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Litestar Organization
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,29 @@
1
+ # Early versions of this utility adapt code from `aoisql`.
2
+ # BSD 2-Clause License
3
+ Copyright (c) 2014-2017, Honza Pokorny
4
+ Copyright (c) 2018, William Vaughn
5
+ All rights reserved.
6
+
7
+ Redistribution and use in source and binary forms, with or without
8
+ modification, are permitted provided that the following conditions are met:
9
+
10
+ 1. Redistributions of source code must retain the above copyright notice, this
11
+ list of conditions and the following disclaimer.
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ The views and conclusions contained in the software and documentation are those
28
+ of the authors and should not be interpreted as representing official policies,
29
+ either expressed or implied, of the aiosql Project.