sqlspec 0.11.0__tar.gz → 0.12.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.
Potentially problematic release.
This version of sqlspec might be problematic. Click here for more details.
- {sqlspec-0.11.0 → sqlspec-0.12.0}/.gitignore +12 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/.pre-commit-config.yaml +2 -2
- {sqlspec-0.11.0 → sqlspec-0.12.0}/PKG-INFO +100 -26
- {sqlspec-0.11.0 → sqlspec-0.12.0}/README.md +78 -23
- {sqlspec-0.11.0 → sqlspec-0.12.0}/pyproject.toml +72 -15
- sqlspec-0.12.0/sqlspec/__init__.py +29 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/_serialization.py +3 -10
- sqlspec-0.12.0/sqlspec/_sql.py +1147 -0
- sqlspec-0.12.0/sqlspec/_typing.py +544 -0
- sqlspec-0.12.0/sqlspec/adapters/adbc/__init__.py +4 -0
- sqlspec-0.12.0/sqlspec/adapters/adbc/config.py +532 -0
- sqlspec-0.12.0/sqlspec/adapters/adbc/driver.py +388 -0
- sqlspec-0.12.0/sqlspec/adapters/aiosqlite/__init__.py +4 -0
- sqlspec-0.12.0/sqlspec/adapters/aiosqlite/config.py +188 -0
- sqlspec-0.12.0/sqlspec/adapters/aiosqlite/driver.py +294 -0
- sqlspec-0.12.0/sqlspec/adapters/asyncmy/__init__.py +4 -0
- sqlspec-0.12.0/sqlspec/adapters/asyncmy/config.py +286 -0
- sqlspec-0.12.0/sqlspec/adapters/asyncmy/driver.py +244 -0
- sqlspec-0.12.0/sqlspec/adapters/asyncpg/__init__.py +6 -0
- sqlspec-0.12.0/sqlspec/adapters/asyncpg/config.py +374 -0
- sqlspec-0.12.0/sqlspec/adapters/asyncpg/driver.py +461 -0
- sqlspec-0.12.0/sqlspec/adapters/bigquery/__init__.py +4 -0
- sqlspec-0.12.0/sqlspec/adapters/bigquery/config.py +407 -0
- sqlspec-0.12.0/sqlspec/adapters/bigquery/driver.py +668 -0
- sqlspec-0.12.0/sqlspec/adapters/duckdb/__init__.py +11 -0
- sqlspec-0.12.0/sqlspec/adapters/duckdb/config.py +490 -0
- sqlspec-0.12.0/sqlspec/adapters/duckdb/driver.py +411 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/adapters/oracledb/__init__.py +3 -8
- sqlspec-0.12.0/sqlspec/adapters/oracledb/config.py +625 -0
- sqlspec-0.12.0/sqlspec/adapters/oracledb/driver.py +581 -0
- sqlspec-0.12.0/sqlspec/adapters/psqlpy/__init__.py +6 -0
- sqlspec-0.12.0/sqlspec/adapters/psqlpy/config.py +419 -0
- sqlspec-0.12.0/sqlspec/adapters/psqlpy/driver.py +214 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/adapters/psycopg/__init__.py +3 -8
- sqlspec-0.12.0/sqlspec/adapters/psycopg/config.py +741 -0
- sqlspec-0.12.0/sqlspec/adapters/psycopg/driver.py +789 -0
- sqlspec-0.12.0/sqlspec/adapters/sqlite/__init__.py +4 -0
- sqlspec-0.12.0/sqlspec/adapters/sqlite/config.py +174 -0
- sqlspec-0.12.0/sqlspec/adapters/sqlite/driver.py +263 -0
- sqlspec-0.12.0/sqlspec/base.py +475 -0
- sqlspec-0.12.0/sqlspec/config.py +354 -0
- sqlspec-0.12.0/sqlspec/driver/__init__.py +22 -0
- sqlspec-0.12.0/sqlspec/driver/_async.py +252 -0
- sqlspec-0.12.0/sqlspec/driver/_common.py +338 -0
- sqlspec-0.12.0/sqlspec/driver/_sync.py +261 -0
- sqlspec-0.12.0/sqlspec/driver/mixins/__init__.py +17 -0
- sqlspec-0.12.0/sqlspec/driver/mixins/_pipeline.py +523 -0
- sqlspec-0.12.0/sqlspec/driver/mixins/_result_utils.py +122 -0
- sqlspec-0.12.0/sqlspec/driver/mixins/_sql_translator.py +35 -0
- sqlspec-0.12.0/sqlspec/driver/mixins/_storage.py +993 -0
- sqlspec-0.12.0/sqlspec/driver/mixins/_type_coercion.py +131 -0
- sqlspec-0.12.0/sqlspec/exceptions.py +432 -0
- sqlspec-0.12.0/sqlspec/extensions/aiosql/__init__.py +10 -0
- sqlspec-0.12.0/sqlspec/extensions/aiosql/adapter.py +474 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/extensions/litestar/__init__.py +1 -6
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/extensions/litestar/_utils.py +1 -5
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/extensions/litestar/config.py +5 -6
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/extensions/litestar/handlers.py +13 -12
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/extensions/litestar/plugin.py +22 -24
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/extensions/litestar/providers.py +37 -55
- sqlspec-0.12.0/sqlspec/loader.py +528 -0
- sqlspec-0.12.0/sqlspec/service/__init__.py +3 -0
- sqlspec-0.12.0/sqlspec/service/base.py +24 -0
- sqlspec-0.12.0/sqlspec/service/pagination.py +26 -0
- sqlspec-0.12.0/sqlspec/statement/__init__.py +21 -0
- sqlspec-0.12.0/sqlspec/statement/builder/__init__.py +54 -0
- sqlspec-0.12.0/sqlspec/statement/builder/_ddl_utils.py +119 -0
- sqlspec-0.12.0/sqlspec/statement/builder/_parsing_utils.py +135 -0
- sqlspec-0.12.0/sqlspec/statement/builder/base.py +328 -0
- sqlspec-0.12.0/sqlspec/statement/builder/ddl.py +1379 -0
- sqlspec-0.12.0/sqlspec/statement/builder/delete.py +80 -0
- sqlspec-0.12.0/sqlspec/statement/builder/insert.py +274 -0
- sqlspec-0.12.0/sqlspec/statement/builder/merge.py +95 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/__init__.py +65 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_aggregate_functions.py +151 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_case_builder.py +91 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_common_table_expr.py +91 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_delete_from.py +34 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_from.py +61 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_group_by.py +119 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_having.py +35 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_insert_from_select.py +48 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_insert_into.py +36 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_insert_values.py +69 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_join.py +110 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_limit_offset.py +53 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_merge_clauses.py +405 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_order_by.py +46 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_pivot.py +82 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_returning.py +37 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_select_columns.py +60 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_set_ops.py +122 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_unpivot.py +80 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_update_from.py +54 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_update_set.py +91 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_update_table.py +29 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_where.py +374 -0
- sqlspec-0.12.0/sqlspec/statement/builder/mixins/_window_functions.py +86 -0
- sqlspec-0.12.0/sqlspec/statement/builder/protocols.py +20 -0
- sqlspec-0.12.0/sqlspec/statement/builder/select.py +206 -0
- sqlspec-0.12.0/sqlspec/statement/builder/update.py +178 -0
- sqlspec-0.12.0/sqlspec/statement/filters.py +571 -0
- sqlspec-0.12.0/sqlspec/statement/parameters.py +736 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/__init__.py +67 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/analyzers/__init__.py +9 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/analyzers/_analyzer.py +649 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/base.py +315 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/context.py +119 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/result_types.py +41 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/transformers/__init__.py +8 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/transformers/_expression_simplifier.py +256 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/transformers/_literal_parameterizer.py +623 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/transformers/_remove_comments.py +66 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/transformers/_remove_hints.py +81 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/validators/__init__.py +23 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/validators/_dml_safety.py +275 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/validators/_parameter_style.py +297 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/validators/_performance.py +703 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/validators/_security.py +990 -0
- sqlspec-0.12.0/sqlspec/statement/pipelines/validators/base.py +67 -0
- sqlspec-0.12.0/sqlspec/statement/result.py +527 -0
- sqlspec-0.12.0/sqlspec/statement/splitter.py +701 -0
- sqlspec-0.12.0/sqlspec/statement/sql.py +1198 -0
- sqlspec-0.12.0/sqlspec/storage/__init__.py +15 -0
- sqlspec-0.12.0/sqlspec/storage/backends/base.py +166 -0
- sqlspec-0.12.0/sqlspec/storage/backends/fsspec.py +315 -0
- sqlspec-0.12.0/sqlspec/storage/backends/obstore.py +464 -0
- sqlspec-0.12.0/sqlspec/storage/protocol.py +170 -0
- sqlspec-0.12.0/sqlspec/storage/registry.py +315 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/typing.py +157 -36
- sqlspec-0.12.0/sqlspec/utils/correlation.py +155 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/utils/deprecation.py +3 -6
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/utils/fixtures.py +6 -11
- sqlspec-0.12.0/sqlspec/utils/logging.py +135 -0
- sqlspec-0.12.0/sqlspec/utils/module_loader.py +94 -0
- sqlspec-0.12.0/sqlspec/utils/serializers.py +4 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/utils/singleton.py +6 -8
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/utils/sync_tools.py +15 -27
- sqlspec-0.12.0/sqlspec/utils/text.py +140 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/conftest.py +11 -0
- sqlspec-0.12.0/tests/fixtures/ddls-mysql-collection.sql +257 -0
- sqlspec-0.12.0/tests/fixtures/ddls-postgres-collection.sql +913 -0
- sqlspec-0.12.0/tests/fixtures/init.sql +25 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-config.sql +570 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-data_types.sql +42 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-database_details.sql +182 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-engines.sql +34 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-hostname.sql +17 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-plugins.sql +44 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-process_list.sql +38 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-resource-groups.sql +50 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-schema_objects.sql +197 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-table_details.sql +134 -0
- sqlspec-0.12.0/tests/fixtures/mysql/collection-users.sql +52 -0
- sqlspec-0.12.0/tests/fixtures/mysql/init.sql +39 -0
- sqlspec-0.12.0/tests/fixtures/oracle.ddl.sql +206 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-applications.sql +26 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-aws_extension_dependency.sql +406 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-aws_oracle_exists.sql +25 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-bg_writer_stats.sql +63 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-calculated_metrics.sql +245 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-data_types.sql +72 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-database_details.sql +386 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-extensions.sql +41 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-index_details.sql +75 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-pglogical-details.sql +28 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-privileges.sql +152 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-replication_slots.sql +131 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-replication_stats.sql +63 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-schema_details.sql +77 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-schema_objects.sql +205 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-settings.sql +56 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-source_details.sql +63 -0
- sqlspec-0.12.0/tests/fixtures/postgres/collection-table_details.sql +496 -0
- sqlspec-0.12.0/tests/fixtures/postgres/extended-collection-all-databases.sql +36 -0
- sqlspec-0.12.0/tests/fixtures/postgres/init.sql +24 -0
- sqlspec-0.12.0/tests/fixtures/readiness-check.sql +35 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_adbc/conftest.py +4 -4
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_arrow_functionality.py +199 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_bigquery_driver.py +289 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_connection.py +85 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_data_types.py +261 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_driver.py +954 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_duckdb_driver.py +371 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_execute_many.py +195 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_execute_script.py +255 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_parameter_styles.py +176 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_postgres_driver.py +1153 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_returning.py +129 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_adbc/test_sqlite_driver.py +491 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_aiosqlite/__init__.py +1 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_aiosqlite/test_driver.py +503 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_asyncmy/test_config.py +154 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_asyncpg/__init__.py +1 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_asyncpg/conftest.py +50 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_asyncpg/test_arrow_functionality.py +200 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_asyncpg/test_connection.py +5 -6
- sqlspec-0.12.0/tests/integration/test_adapters/test_asyncpg/test_driver.py +683 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_asyncpg/test_execute_many.py +321 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_asyncpg/test_parameter_styles.py +410 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_bigquery/conftest.py +5 -7
- sqlspec-0.12.0/tests/integration/test_adapters/test_bigquery/test_arrow_functionality.py +356 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_bigquery/test_connection.py +5 -2
- sqlspec-0.12.0/tests/integration/test_adapters/test_bigquery/test_driver.py +543 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_duckdb/test_arrow_functionality.py +440 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_duckdb/test_connection.py +252 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_duckdb/test_driver.py +735 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_duckdb/test_execute_many.py +315 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_duckdb/test_parameter_styles.py +510 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_oracledb/test_connection.py +19 -21
- sqlspec-0.12.0/tests/integration/test_adapters/test_oracledb/test_driver_async.py +385 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_oracledb/test_driver_sync.py +292 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_psqlpy/test_arrow_functionality.py +418 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_psqlpy/test_connection.py +22 -16
- sqlspec-0.12.0/tests/integration/test_adapters/test_psqlpy/test_driver.py +499 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_psycopg/test_connection.py +14 -24
- sqlspec-0.12.0/tests/integration/test_adapters/test_psycopg/test_driver.py +603 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_psycopg/test_execute_many.py +393 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_psycopg/test_parameter_styles.py +471 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_sqlite/__init__.py +1 -0
- sqlspec-0.12.0/tests/integration/test_adapters/test_sqlite/test_driver.py +593 -0
- sqlspec-0.12.0/tests/integration/test_dialect_propagation.py +288 -0
- sqlspec-0.12.0/tests/integration/test_sql_file_loader.py +620 -0
- sqlspec-0.12.0/tests/integration/test_storage/__init__.py +1 -0
- sqlspec-0.12.0/tests/integration/test_storage/test_driver_storage_integration.py +387 -0
- sqlspec-0.12.0/tests/integration/test_storage/test_end_to_end_workflows.py +557 -0
- sqlspec-0.12.0/tests/integration/test_storage/test_storage_mixins.py +387 -0
- sqlspec-0.12.0/tests/unit/test_adapters/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_adbc/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_adbc/test_config.py +127 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_adbc/test_driver.py +529 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_aiosqlite/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_aiosqlite/test_config.py +105 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_aiosqlite/test_driver.py +189 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_asyncmy/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_asyncmy/test_driver.py +276 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_asyncpg/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_asyncpg/test_config.py +586 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_asyncpg/test_driver.py +559 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_bigquery/__init__.py +1 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_bigquery/test_config.py +434 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_bigquery/test_driver.py +687 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_duckdb/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_duckdb/test_config.py +518 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_duckdb/test_driver.py +665 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_oracledb/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_oracledb/test_config.py +145 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_oracledb/test_driver.py +128 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_psqlpy/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_psqlpy/test_config.py +151 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_psqlpy/test_driver.py +146 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_psycopg/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_psycopg/test_config.py +740 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_psycopg/test_driver.py +751 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_sqlite/__init__.py +3 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_sqlite/test_config.py +341 -0
- sqlspec-0.12.0/tests/unit/test_adapters/test_sqlite/test_driver.py +519 -0
- sqlspec-0.12.0/tests/unit/test_base.py +538 -0
- sqlspec-0.12.0/tests/unit/test_config.py +523 -0
- sqlspec-0.12.0/tests/unit/test_config_dialect.py +407 -0
- sqlspec-0.12.0/tests/unit/test_driver.py +711 -0
- sqlspec-0.12.0/tests/unit/test_exceptions.py +862 -0
- sqlspec-0.12.0/tests/unit/test_extensions/test_aiosql/test_adapter.py +409 -0
- sqlspec-0.12.0/tests/unit/test_loader.py +431 -0
- sqlspec-0.12.0/tests/unit/test_statement/__init__.py +0 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_base.py +510 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_builder/__init__.py +0 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_builder/test_base.py +767 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_builder/test_builder_mixins.py +1011 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_builder/test_delete.py +336 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_builder/test_insert.py +477 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_builder/test_merge.py +579 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_builder/test_select.py +682 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_builder/test_update.py +537 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_config.py +515 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_filters.py +510 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_mixins.py +364 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_oracle_numeric_parameters.py +336 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_parameter_normalization.py +127 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_parameter_preservation.py +158 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_parameters.py +515 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/__init__.py +0 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_analyzer.py +566 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_analyzer_subquery_detection.py +377 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_base.py +408 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_expression_simplifier.py +479 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_transformers_literal_parameterizer.py +611 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_transformers_remove_comments.py +550 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_validators_dml_safety.py +496 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_validators_parameter_style.py +440 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_validators_performance.py +580 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_pipelines/test_validators_security.py +598 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_result.py +506 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_splitter.py +450 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_sql.py +483 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_sql_translator_mixin.py +290 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_sqlfactory.py +95 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_storage.py +235 -0
- sqlspec-0.12.0/tests/unit/test_statement/test_transformers/test_expression_simplifier_parameter_tracking.py +129 -0
- sqlspec-0.12.0/tests/unit/test_storage/__init__.py +1 -0
- sqlspec-0.12.0/tests/unit/test_storage/test_backends/__init__.py +1 -0
- sqlspec-0.12.0/tests/unit/test_storage/test_backends/test_fsspec_backend.py +624 -0
- sqlspec-0.12.0/tests/unit/test_storage/test_backends/test_obstore_backend.py +671 -0
- sqlspec-0.12.0/tests/unit/test_storage/test_base.py +431 -0
- sqlspec-0.12.0/tests/unit/test_storage/test_registry.py +413 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/unit/test_typing.py +2 -11
- sqlspec-0.12.0/tests/unit/test_utils/__init__.py +0 -0
- sqlspec-0.12.0/tests/unit/test_utils/test_deprecation.py +365 -0
- sqlspec-0.12.0/tests/unit/test_utils/test_fixtures.py +305 -0
- sqlspec-0.12.0/tests/unit/test_utils/test_module_loader.py +359 -0
- sqlspec-0.12.0/tests/unit/test_utils/test_singleton.py +324 -0
- sqlspec-0.12.0/tests/unit/test_utils/test_sync_tools.py +474 -0
- sqlspec-0.12.0/tests/unit/test_utils/test_text.py +315 -0
- sqlspec-0.12.0/tools/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tools/sphinx_ext/changelog.py +2 -7
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tools/sphinx_ext/missing_references.py +1 -4
- {sqlspec-0.11.0 → sqlspec-0.12.0}/uv.lock +1661 -932
- sqlspec-0.11.0/sqlspec/__init__.py +0 -16
- sqlspec-0.11.0/sqlspec/_typing.py +0 -242
- sqlspec-0.11.0/sqlspec/adapters/adbc/__init__.py +0 -8
- sqlspec-0.11.0/sqlspec/adapters/adbc/config.py +0 -207
- sqlspec-0.11.0/sqlspec/adapters/adbc/driver.py +0 -702
- sqlspec-0.11.0/sqlspec/adapters/aiosqlite/__init__.py +0 -8
- sqlspec-0.11.0/sqlspec/adapters/aiosqlite/config.py +0 -102
- sqlspec-0.11.0/sqlspec/adapters/aiosqlite/driver.py +0 -487
- sqlspec-0.11.0/sqlspec/adapters/asyncmy/__init__.py +0 -9
- sqlspec-0.11.0/sqlspec/adapters/asyncmy/config.py +0 -241
- sqlspec-0.11.0/sqlspec/adapters/asyncmy/driver.py +0 -478
- sqlspec-0.11.0/sqlspec/adapters/asyncpg/__init__.py +0 -9
- sqlspec-0.11.0/sqlspec/adapters/asyncpg/config.py +0 -221
- sqlspec-0.11.0/sqlspec/adapters/asyncpg/driver.py +0 -541
- sqlspec-0.11.0/sqlspec/adapters/bigquery/__init__.py +0 -4
- sqlspec-0.11.0/sqlspec/adapters/bigquery/config/__init__.py +0 -3
- sqlspec-0.11.0/sqlspec/adapters/bigquery/config/_common.py +0 -40
- sqlspec-0.11.0/sqlspec/adapters/bigquery/config/_sync.py +0 -87
- sqlspec-0.11.0/sqlspec/adapters/bigquery/driver.py +0 -710
- sqlspec-0.11.0/sqlspec/adapters/duckdb/__init__.py +0 -8
- sqlspec-0.11.0/sqlspec/adapters/duckdb/config.py +0 -379
- sqlspec-0.11.0/sqlspec/adapters/duckdb/driver.py +0 -454
- sqlspec-0.11.0/sqlspec/adapters/oracledb/config/__init__.py +0 -9
- sqlspec-0.11.0/sqlspec/adapters/oracledb/config/_asyncio.py +0 -186
- sqlspec-0.11.0/sqlspec/adapters/oracledb/config/_common.py +0 -131
- sqlspec-0.11.0/sqlspec/adapters/oracledb/config/_sync.py +0 -186
- sqlspec-0.11.0/sqlspec/adapters/oracledb/driver.py +0 -974
- sqlspec-0.11.0/sqlspec/adapters/psqlpy/__init__.py +0 -9
- sqlspec-0.11.0/sqlspec/adapters/psqlpy/config.py +0 -250
- sqlspec-0.11.0/sqlspec/adapters/psqlpy/driver.py +0 -567
- sqlspec-0.11.0/sqlspec/adapters/psycopg/config/__init__.py +0 -19
- sqlspec-0.11.0/sqlspec/adapters/psycopg/config/_async.py +0 -169
- sqlspec-0.11.0/sqlspec/adapters/psycopg/config/_common.py +0 -56
- sqlspec-0.11.0/sqlspec/adapters/psycopg/config/_sync.py +0 -168
- sqlspec-0.11.0/sqlspec/adapters/psycopg/driver.py +0 -790
- sqlspec-0.11.0/sqlspec/adapters/sqlite/__init__.py +0 -8
- sqlspec-0.11.0/sqlspec/adapters/sqlite/config.py +0 -109
- sqlspec-0.11.0/sqlspec/adapters/sqlite/driver.py +0 -446
- sqlspec-0.11.0/sqlspec/base.py +0 -1080
- sqlspec-0.11.0/sqlspec/exceptions.py +0 -140
- sqlspec-0.11.0/sqlspec/filters.py +0 -330
- sqlspec-0.11.0/sqlspec/mixins.py +0 -306
- sqlspec-0.11.0/sqlspec/statement.py +0 -378
- sqlspec-0.11.0/sqlspec/utils/module_loader.py +0 -92
- sqlspec-0.11.0/sqlspec/utils/text.py +0 -108
- sqlspec-0.11.0/tests/integration/test_adapters/test_adbc/test_connection.py +0 -31
- sqlspec-0.11.0/tests/integration/test_adapters/test_adbc/test_driver_bigquery.py +0 -227
- sqlspec-0.11.0/tests/integration/test_adapters/test_adbc/test_driver_duckdb.py +0 -444
- sqlspec-0.11.0/tests/integration/test_adapters/test_adbc/test_driver_postgres.py +0 -201
- sqlspec-0.11.0/tests/integration/test_adapters/test_adbc/test_driver_sqlite.py +0 -302
- sqlspec-0.11.0/tests/integration/test_adapters/test_aiosqlite/__init__.py +0 -5
- sqlspec-0.11.0/tests/integration/test_adapters/test_aiosqlite/test_connection.py +0 -28
- sqlspec-0.11.0/tests/integration/test_adapters/test_aiosqlite/test_driver.py +0 -168
- sqlspec-0.11.0/tests/integration/test_adapters/test_asyncmy/test_connection.py +0 -54
- sqlspec-0.11.0/tests/integration/test_adapters/test_asyncmy/test_driver.py +0 -218
- sqlspec-0.11.0/tests/integration/test_adapters/test_asyncpg/test_driver.py +0 -395
- sqlspec-0.11.0/tests/integration/test_adapters/test_bigquery/test_driver.py +0 -288
- sqlspec-0.11.0/tests/integration/test_adapters/test_duckdb/test_connection.py +0 -28
- sqlspec-0.11.0/tests/integration/test_adapters/test_duckdb/test_driver.py +0 -169
- sqlspec-0.11.0/tests/integration/test_adapters/test_oracledb/test_driver_async.py +0 -201
- sqlspec-0.11.0/tests/integration/test_adapters/test_oracledb/test_driver_sync.py +0 -197
- sqlspec-0.11.0/tests/integration/test_adapters/test_psqlpy/test_driver.py +0 -315
- sqlspec-0.11.0/tests/integration/test_adapters/test_psycopg/test_driver.py +0 -408
- sqlspec-0.11.0/tests/integration/test_adapters/test_sqlite/__init__.py +0 -5
- sqlspec-0.11.0/tests/integration/test_adapters/test_sqlite/test_connection.py +0 -27
- sqlspec-0.11.0/tests/integration/test_adapters/test_sqlite/test_driver.py +0 -178
- sqlspec-0.11.0/tests/unit/test_adapters/test_adbc/__init__.py +0 -1
- sqlspec-0.11.0/tests/unit/test_adapters/test_adbc/test_config.py +0 -91
- sqlspec-0.11.0/tests/unit/test_adapters/test_aiosqlite/__init__.py +0 -1
- sqlspec-0.11.0/tests/unit/test_adapters/test_aiosqlite/test_config.py +0 -107
- sqlspec-0.11.0/tests/unit/test_adapters/test_asyncmy/__init__.py +0 -1
- sqlspec-0.11.0/tests/unit/test_adapters/test_asyncmy/test_config.py +0 -152
- sqlspec-0.11.0/tests/unit/test_adapters/test_asyncpg/__init__.py +0 -1
- sqlspec-0.11.0/tests/unit/test_adapters/test_asyncpg/test_config.py +0 -153
- sqlspec-0.11.0/tests/unit/test_adapters/test_duckdb/test_config.py +0 -137
- sqlspec-0.11.0/tests/unit/test_adapters/test_oracledb/__init__.py +0 -1
- sqlspec-0.11.0/tests/unit/test_adapters/test_oracledb/test_async_config.py +0 -135
- sqlspec-0.11.0/tests/unit/test_adapters/test_oracledb/test_sync_config.py +0 -129
- sqlspec-0.11.0/tests/unit/test_adapters/test_psycopg/__init__.py +0 -1
- sqlspec-0.11.0/tests/unit/test_adapters/test_psycopg/test_async_config.py +0 -179
- sqlspec-0.11.0/tests/unit/test_adapters/test_psycopg/test_sync_config.py +0 -160
- sqlspec-0.11.0/tests/unit/test_adapters/test_sqlite/__init__.py +0 -1
- sqlspec-0.11.0/tests/unit/test_adapters/test_sqlite/test_config.py +0 -89
- sqlspec-0.11.0/tests/unit/test_base.py +0 -300
- sqlspec-0.11.0/tests/unit/test_statement.py +0 -287
- sqlspec-0.11.0/tests/unit/test_utils/test_module_loader.py +0 -46
- sqlspec-0.11.0/tests/unit/test_utils/test_sync_tools.py +0 -76
- sqlspec-0.11.0/tests/unit/test_utils/test_text.py +0 -57
- {sqlspec-0.11.0 → sqlspec-0.12.0}/CONTRIBUTING.rst +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/LICENSE +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/Makefile +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/NOTICE +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/__metadata__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/adapters/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/extensions/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/py.typed +0 -0
- {sqlspec-0.11.0/tests → sqlspec-0.12.0/sqlspec/storage/backends}/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/sqlspec/utils/__init__.py +0 -0
- {sqlspec-0.11.0/tests/integration/test_adapters/test_asyncpg → sqlspec-0.12.0/tests}/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/fixtures/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/fixtures/example_usage.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/fixtures/sql_utils.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_adbc/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_asyncmy/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_bigquery/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_duckdb/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_oracledb/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_psqlpy/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tests/integration/test_adapters/test_psycopg/__init__.py +0 -0
- {sqlspec-0.11.0/tests/unit → sqlspec-0.12.0/tests/integration/test_extensions}/__init__.py +0 -0
- {sqlspec-0.11.0/tests/unit/test_adapters → sqlspec-0.12.0/tests/integration/test_extensions/test_aiosql}/__init__.py +0 -0
- {sqlspec-0.11.0/tests/unit/test_adapters/test_duckdb → sqlspec-0.12.0/tests/integration/test_extensions/test_litestar}/__init__.py +0 -0
- {sqlspec-0.11.0/tests/unit/test_utils → sqlspec-0.12.0/tests/unit}/__init__.py +0 -0
- {sqlspec-0.11.0/tools → sqlspec-0.12.0/tests/unit/test_extensions}/__init__.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tools/build_docs.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tools/pypi_readme.py +0 -0
- {sqlspec-0.11.0 → sqlspec-0.12.0}/tools/sphinx_ext/__init__.py +0 -0
|
@@ -17,7 +17,9 @@ site/
|
|
|
17
17
|
target/
|
|
18
18
|
.idea/
|
|
19
19
|
.vscode/
|
|
20
|
+
.claude/
|
|
20
21
|
.cursor/
|
|
22
|
+
.zed/
|
|
21
23
|
|
|
22
24
|
# files
|
|
23
25
|
**/*.so
|
|
@@ -31,3 +33,13 @@ target/
|
|
|
31
33
|
/docs/_build/
|
|
32
34
|
coverage.*
|
|
33
35
|
setup.py
|
|
36
|
+
tmp/
|
|
37
|
+
*.log
|
|
38
|
+
.bugs
|
|
39
|
+
.tmp
|
|
40
|
+
.todos
|
|
41
|
+
todo/
|
|
42
|
+
CLAUDE.md
|
|
43
|
+
CLAUDE.*.md
|
|
44
|
+
TODO*
|
|
45
|
+
.claudedocs
|
|
@@ -17,7 +17,7 @@ repos:
|
|
|
17
17
|
- id: mixed-line-ending
|
|
18
18
|
- id: trailing-whitespace
|
|
19
19
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
20
|
-
rev: "v0.
|
|
20
|
+
rev: "v0.12.0"
|
|
21
21
|
hooks:
|
|
22
22
|
- id: ruff
|
|
23
23
|
args: ["--fix"]
|
|
@@ -29,7 +29,7 @@ repos:
|
|
|
29
29
|
additional_dependencies:
|
|
30
30
|
- tomli
|
|
31
31
|
- repo: https://github.com/python-formate/flake8-dunder-all
|
|
32
|
-
rev: v0.
|
|
32
|
+
rev: v0.5.0
|
|
33
33
|
hooks:
|
|
34
34
|
- id: ensure-dunder-all
|
|
35
35
|
exclude: "test*|tools"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sqlspec
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: SQL Experiments in Python
|
|
5
5
|
Project-URL: Discord, https://discord.gg/litestar
|
|
6
6
|
Project-URL: Issue, https://github.com/litestar-org/sqlspec/issues/
|
|
@@ -11,14 +11,17 @@ License-Expression: MIT
|
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
License-File: NOTICE
|
|
13
13
|
Requires-Python: <4.0,>=3.9
|
|
14
|
+
Requires-Dist: click
|
|
14
15
|
Requires-Dist: eval-type-backport; python_version < '3.10'
|
|
15
|
-
Requires-Dist: sqlglot
|
|
16
|
+
Requires-Dist: sqlglot>=19.9.0
|
|
16
17
|
Requires-Dist: typing-extensions
|
|
17
18
|
Provides-Extra: adbc
|
|
18
19
|
Requires-Dist: adbc-driver-manager; extra == 'adbc'
|
|
19
20
|
Requires-Dist: pyarrow; extra == 'adbc'
|
|
20
21
|
Provides-Extra: aioodbc
|
|
21
22
|
Requires-Dist: aioodbc; extra == 'aioodbc'
|
|
23
|
+
Provides-Extra: aiosql
|
|
24
|
+
Requires-Dist: aiosql; extra == 'aiosql'
|
|
22
25
|
Provides-Extra: aiosqlite
|
|
23
26
|
Requires-Dist: aiosqlite; extra == 'aiosqlite'
|
|
24
27
|
Provides-Extra: asyncmy
|
|
@@ -27,25 +30,41 @@ Provides-Extra: asyncpg
|
|
|
27
30
|
Requires-Dist: asyncpg; extra == 'asyncpg'
|
|
28
31
|
Provides-Extra: bigquery
|
|
29
32
|
Requires-Dist: google-cloud-bigquery; extra == 'bigquery'
|
|
33
|
+
Provides-Extra: cli
|
|
34
|
+
Requires-Dist: rich-click; extra == 'cli'
|
|
30
35
|
Provides-Extra: duckdb
|
|
31
36
|
Requires-Dist: duckdb; extra == 'duckdb'
|
|
32
37
|
Provides-Extra: fastapi
|
|
33
38
|
Requires-Dist: fastapi; extra == 'fastapi'
|
|
34
39
|
Provides-Extra: flask
|
|
35
40
|
Requires-Dist: flask; extra == 'flask'
|
|
41
|
+
Provides-Extra: fsspec
|
|
42
|
+
Requires-Dist: fsspec; extra == 'fsspec'
|
|
36
43
|
Provides-Extra: litestar
|
|
37
44
|
Requires-Dist: litestar; extra == 'litestar'
|
|
38
45
|
Provides-Extra: msgspec
|
|
39
46
|
Requires-Dist: msgspec; extra == 'msgspec'
|
|
40
47
|
Provides-Extra: nanoid
|
|
41
48
|
Requires-Dist: fastnanoid>=0.4.1; extra == 'nanoid'
|
|
49
|
+
Provides-Extra: obstore
|
|
50
|
+
Requires-Dist: obstore; extra == 'obstore'
|
|
51
|
+
Provides-Extra: opentelemetry
|
|
52
|
+
Requires-Dist: opentelemetry-instrumentation; extra == 'opentelemetry'
|
|
42
53
|
Provides-Extra: oracledb
|
|
43
54
|
Requires-Dist: oracledb; extra == 'oracledb'
|
|
44
55
|
Provides-Extra: orjson
|
|
45
56
|
Requires-Dist: orjson; extra == 'orjson'
|
|
57
|
+
Provides-Extra: pandas
|
|
58
|
+
Requires-Dist: pandas; extra == 'pandas'
|
|
59
|
+
Requires-Dist: pyarrow; extra == 'pandas'
|
|
46
60
|
Provides-Extra: performance
|
|
47
61
|
Requires-Dist: msgspec; extra == 'performance'
|
|
48
62
|
Requires-Dist: sqlglot[rs]; extra == 'performance'
|
|
63
|
+
Provides-Extra: polars
|
|
64
|
+
Requires-Dist: polars; extra == 'polars'
|
|
65
|
+
Requires-Dist: pyarrow; extra == 'polars'
|
|
66
|
+
Provides-Extra: prometheus
|
|
67
|
+
Requires-Dist: prometheus-client; extra == 'prometheus'
|
|
49
68
|
Provides-Extra: psqlpy
|
|
50
69
|
Requires-Dist: psqlpy; extra == 'psqlpy'
|
|
51
70
|
Provides-Extra: psycopg
|
|
@@ -60,7 +79,7 @@ Requires-Dist: pymysql; extra == 'pymysql'
|
|
|
60
79
|
Provides-Extra: spanner
|
|
61
80
|
Requires-Dist: google-cloud-spanner; extra == 'spanner'
|
|
62
81
|
Provides-Extra: uuid
|
|
63
|
-
Requires-Dist: uuid-utils
|
|
82
|
+
Requires-Dist: uuid-utils; extra == 'uuid'
|
|
64
83
|
Description-Content-Type: text/markdown
|
|
65
84
|
|
|
66
85
|
# SQLSpec
|
|
@@ -69,18 +88,26 @@ Description-Content-Type: text/markdown
|
|
|
69
88
|
|
|
70
89
|
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.
|
|
71
90
|
|
|
72
|
-
**Note**: SQLSpec is currently under active development and the API is subject to change.
|
|
91
|
+
**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!
|
|
73
92
|
|
|
74
|
-
## Core Features (
|
|
93
|
+
## Core Features (Current and Planned)
|
|
94
|
+
|
|
95
|
+
### Currently Implemented
|
|
75
96
|
|
|
76
97
|
- **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.
|
|
77
|
-
- **Emphasis on RAW SQL and Minimal Abstractions
|
|
98
|
+
- **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.
|
|
78
99
|
- **Type-Safe Queries**: Quickly map SQL queries to typed objects using libraries such as Pydantic, Msgspec, Attrs, etc.
|
|
79
|
-
- **Extensible Design**: Easily add support for new database dialects or extend existing functionality to meet your specific needs.
|
|
80
|
-
- **Minimal Dependencies**: SQLSpec is designed to be lightweight and can run on
|
|
81
|
-
- **Dynamic Query Manipulation**: Easily apply filters to pre-defined queries with a fluent, Pythonic API. Safely manipulate queries without the risk of SQL injection.
|
|
82
|
-
- **Dialect Validation and Conversion**: Use `sqlglot` to validate your SQL against specific dialects and seamlessly convert between them.
|
|
100
|
+
- **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.
|
|
101
|
+
- **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!)
|
|
83
102
|
- **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.
|
|
103
|
+
|
|
104
|
+
### Experimental Features (API will change rapidly)
|
|
105
|
+
|
|
106
|
+
- **SQL Builder API**: Type-safe query builder with method chaining (experimental and subject to significant changes)
|
|
107
|
+
- **Dynamic Query Manipulation**: Apply filters to pre-defined queries with a fluent API. Safely manipulate queries without SQL injection risk.
|
|
108
|
+
- **Dialect Validation and Conversion**: Use `sqlglot` to validate your SQL against specific dialects and seamlessly convert between them.
|
|
109
|
+
- **Storage Operations**: Direct export to Parquet, CSV, JSON with Arrow integration
|
|
110
|
+
- **Instrumentation**: OpenTelemetry and Prometheus metrics support
|
|
84
111
|
- **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.
|
|
85
112
|
|
|
86
113
|
## What SQLSpec Is Not (Yet)
|
|
@@ -91,16 +118,60 @@ SQLSpec is a work in progress. While it offers a solid foundation for modern SQL
|
|
|
91
118
|
|
|
92
119
|
We've talked about what SQLSpec is not, so let's look at what it can do.
|
|
93
120
|
|
|
94
|
-
These are just a few
|
|
121
|
+
These are just a few examples that demonstrate SQLSpec's flexibility. Each of the bundled adapters offers the same config and driver interfaces.
|
|
122
|
+
|
|
123
|
+
### Basic Usage
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
from sqlspec import SQLSpec
|
|
127
|
+
from sqlspec.adapters.sqlite import SqliteConfig
|
|
128
|
+
from pydantic import BaseModel
|
|
129
|
+
# Create SQLSpec instance and configure database
|
|
130
|
+
sql = SQLSpec()
|
|
131
|
+
config = sql.add_config(SqliteConfig(database=":memory:"))
|
|
132
|
+
|
|
133
|
+
# Execute queries with automatic result mapping
|
|
134
|
+
with sql.provide_session(config) as session:
|
|
135
|
+
# Simple query
|
|
136
|
+
result = session.execute("SELECT 'Hello, SQLSpec!' as message")
|
|
137
|
+
print(result.get_first()) # {'message': 'Hello, SQLSpec!'}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### SQL Builder Example (Experimental)
|
|
141
|
+
|
|
142
|
+
**Warning**: The SQL Builder API is highly experimental and will change significantly.
|
|
143
|
+
|
|
144
|
+
```python
|
|
145
|
+
from sqlspec import sql
|
|
146
|
+
|
|
147
|
+
# Build a simple query
|
|
148
|
+
query = sql.select("id", "name", "email").from_("users").where("active = ?", True)
|
|
149
|
+
print(query.build().sql) # SELECT id, name, email FROM users WHERE active = ?
|
|
150
|
+
|
|
151
|
+
# More complex example with joins
|
|
152
|
+
query = (
|
|
153
|
+
sql.select("u.name", "COUNT(o.id) as order_count")
|
|
154
|
+
.from_("users u")
|
|
155
|
+
.left_join("orders o", "u.id = o.user_id")
|
|
156
|
+
.where("u.created_at > ?", "2024-01-01")
|
|
157
|
+
.group_by("u.name")
|
|
158
|
+
.having("COUNT(o.id) > ?", 5)
|
|
159
|
+
.order_by("order_count", desc=True)
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
# Execute the built query
|
|
163
|
+
with sql.provide_session(config) as session:
|
|
164
|
+
results = session.execute(query.build())
|
|
165
|
+
```
|
|
95
166
|
|
|
96
167
|
### DuckDB LLM
|
|
97
168
|
|
|
98
|
-
This is a quick implementation using some of the built
|
|
169
|
+
This is a quick implementation using some of the built-in Secret and Extension management features of SQLSpec's DuckDB integration.
|
|
99
170
|
|
|
100
|
-
It allows you to communicate with any compatible OpenAPI conversations endpoint (such as Ollama).
|
|
171
|
+
It allows you to communicate with any compatible OpenAPI conversations endpoint (such as Ollama). This example:
|
|
101
172
|
|
|
102
173
|
- auto installs the `open_prompt` DuckDB extensions
|
|
103
|
-
- automatically creates the correct `open_prompt`
|
|
174
|
+
- automatically creates the correct `open_prompt` compatible secret required to use the extension
|
|
104
175
|
|
|
105
176
|
```py
|
|
106
177
|
# /// script
|
|
@@ -145,12 +216,12 @@ with sql.provide_session(etl_config) as session:
|
|
|
145
216
|
|
|
146
217
|
### DuckDB Gemini Embeddings
|
|
147
218
|
|
|
148
|
-
In this example, we are again using DuckDB.
|
|
219
|
+
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.
|
|
149
220
|
|
|
150
|
-
This example will
|
|
221
|
+
This example will:
|
|
151
222
|
|
|
152
223
|
- auto installs the `http_client` and `vss` (vector similarity search) DuckDB extensions
|
|
153
|
-
- when a connection is created, it ensures that the `generate_embeddings` macro exists in the DuckDB database
|
|
224
|
+
- when a connection is created, it ensures that the `generate_embeddings` macro exists in the DuckDB database
|
|
154
225
|
- Execute a simple query to call the Google API
|
|
155
226
|
|
|
156
227
|
```py
|
|
@@ -196,8 +267,8 @@ etl_config = sql.add_config(
|
|
|
196
267
|
)
|
|
197
268
|
)
|
|
198
269
|
with sql.provide_session(etl_config) as session:
|
|
199
|
-
result = session.
|
|
200
|
-
print(result) # result is a dictionary when `schema_type` is omitted.
|
|
270
|
+
result = session.execute("SELECT generate_embedding('example text')")
|
|
271
|
+
print(result.get_first()) # result is a dictionary when `schema_type` is omitted.
|
|
201
272
|
```
|
|
202
273
|
|
|
203
274
|
### Basic Litestar Integration
|
|
@@ -212,11 +283,10 @@ In this example we are going to demonstrate how to create a basic configuration
|
|
|
212
283
|
# ]
|
|
213
284
|
# ///
|
|
214
285
|
|
|
215
|
-
from aiosqlite import Connection
|
|
216
286
|
from litestar import Litestar, get
|
|
217
287
|
|
|
218
288
|
from sqlspec.adapters.aiosqlite import AiosqliteConfig, AiosqliteDriver
|
|
219
|
-
from sqlspec.extensions.litestar import SQLSpec
|
|
289
|
+
from sqlspec.extensions.litestar import DatabaseConfig, SQLSpec
|
|
220
290
|
|
|
221
291
|
|
|
222
292
|
@get("/")
|
|
@@ -224,15 +294,18 @@ async def simple_sqlite(db_session: AiosqliteDriver) -> dict[str, str]:
|
|
|
224
294
|
return await db_session.select_one("SELECT 'Hello, world!' AS greeting")
|
|
225
295
|
|
|
226
296
|
|
|
227
|
-
sqlspec = SQLSpec(
|
|
228
|
-
config=
|
|
297
|
+
sqlspec = SQLSpec(
|
|
298
|
+
config=DatabaseConfig(
|
|
299
|
+
config=AiosqliteConfig(),
|
|
300
|
+
commit_mode="autocommit"
|
|
301
|
+
)
|
|
229
302
|
)
|
|
230
303
|
app = Litestar(route_handlers=[simple_sqlite], plugins=[sqlspec])
|
|
231
304
|
```
|
|
232
305
|
|
|
233
306
|
## Inspiration and Future Direction
|
|
234
307
|
|
|
235
|
-
SQLSpec originally drew inspiration from features found in the `aiosql` library.
|
|
308
|
+
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.
|
|
236
309
|
|
|
237
310
|
## Current Focus: Universal Connectivity
|
|
238
311
|
|
|
@@ -272,9 +345,10 @@ This list is not final. If you have a driver you'd like to see added, please ope
|
|
|
272
345
|
- `litestar/`: Litestar framework integration ✅
|
|
273
346
|
- `fastapi/`: Future home of `fastapi` integration.
|
|
274
347
|
- `flask/`: Future home of `flask` integration.
|
|
275
|
-
- `*/`: Future home of your favorite framework integration
|
|
348
|
+
- `*/`: Future home of your favorite framework integration
|
|
276
349
|
- `base.py`: Contains base protocols for database configurations.
|
|
277
|
-
- `
|
|
350
|
+
- `statement/`: Contains the SQL statement system with builders, validation, and transformation.
|
|
351
|
+
- `storage/`: Contains unified storage operations for data import/export.
|
|
278
352
|
- `utils/`: Contains utility functions used throughout the project.
|
|
279
353
|
- `exceptions.py`: Contains custom exceptions for SQLSpec.
|
|
280
354
|
- `typing.py`: Contains type hints, type guards and several facades for optional libraries that are not required for the core functionality of SQLSpec.
|
|
@@ -4,18 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
7
|
-
**Note**: SQLSpec is currently under active development and the API is subject to change.
|
|
7
|
+
**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!
|
|
8
8
|
|
|
9
|
-
## Core Features (
|
|
9
|
+
## Core Features (Current and Planned)
|
|
10
|
+
|
|
11
|
+
### Currently Implemented
|
|
10
12
|
|
|
11
13
|
- **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.
|
|
12
|
-
- **Emphasis on RAW SQL and Minimal Abstractions
|
|
14
|
+
- **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.
|
|
13
15
|
- **Type-Safe Queries**: Quickly map SQL queries to typed objects using libraries such as Pydantic, Msgspec, Attrs, etc.
|
|
14
|
-
- **Extensible Design**: Easily add support for new database dialects or extend existing functionality to meet your specific needs.
|
|
15
|
-
- **Minimal Dependencies**: SQLSpec is designed to be lightweight and can run on
|
|
16
|
-
- **Dynamic Query Manipulation**: Easily apply filters to pre-defined queries with a fluent, Pythonic API. Safely manipulate queries without the risk of SQL injection.
|
|
17
|
-
- **Dialect Validation and Conversion**: Use `sqlglot` to validate your SQL against specific dialects and seamlessly convert between them.
|
|
16
|
+
- **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.
|
|
17
|
+
- **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!)
|
|
18
18
|
- **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.
|
|
19
|
+
|
|
20
|
+
### Experimental Features (API will change rapidly)
|
|
21
|
+
|
|
22
|
+
- **SQL Builder API**: Type-safe query builder with method chaining (experimental and subject to significant changes)
|
|
23
|
+
- **Dynamic Query Manipulation**: Apply filters to pre-defined queries with a fluent API. Safely manipulate queries without SQL injection risk.
|
|
24
|
+
- **Dialect Validation and Conversion**: Use `sqlglot` to validate your SQL against specific dialects and seamlessly convert between them.
|
|
25
|
+
- **Storage Operations**: Direct export to Parquet, CSV, JSON with Arrow integration
|
|
26
|
+
- **Instrumentation**: OpenTelemetry and Prometheus metrics support
|
|
19
27
|
- **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.
|
|
20
28
|
|
|
21
29
|
## What SQLSpec Is Not (Yet)
|
|
@@ -26,16 +34,60 @@ SQLSpec is a work in progress. While it offers a solid foundation for modern SQL
|
|
|
26
34
|
|
|
27
35
|
We've talked about what SQLSpec is not, so let's look at what it can do.
|
|
28
36
|
|
|
29
|
-
These are just a few
|
|
37
|
+
These are just a few examples that demonstrate SQLSpec's flexibility. Each of the bundled adapters offers the same config and driver interfaces.
|
|
38
|
+
|
|
39
|
+
### Basic Usage
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from sqlspec import SQLSpec
|
|
43
|
+
from sqlspec.adapters.sqlite import SqliteConfig
|
|
44
|
+
from pydantic import BaseModel
|
|
45
|
+
# Create SQLSpec instance and configure database
|
|
46
|
+
sql = SQLSpec()
|
|
47
|
+
config = sql.add_config(SqliteConfig(database=":memory:"))
|
|
48
|
+
|
|
49
|
+
# Execute queries with automatic result mapping
|
|
50
|
+
with sql.provide_session(config) as session:
|
|
51
|
+
# Simple query
|
|
52
|
+
result = session.execute("SELECT 'Hello, SQLSpec!' as message")
|
|
53
|
+
print(result.get_first()) # {'message': 'Hello, SQLSpec!'}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### SQL Builder Example (Experimental)
|
|
57
|
+
|
|
58
|
+
**Warning**: The SQL Builder API is highly experimental and will change significantly.
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
from sqlspec import sql
|
|
62
|
+
|
|
63
|
+
# Build a simple query
|
|
64
|
+
query = sql.select("id", "name", "email").from_("users").where("active = ?", True)
|
|
65
|
+
print(query.build().sql) # SELECT id, name, email FROM users WHERE active = ?
|
|
66
|
+
|
|
67
|
+
# More complex example with joins
|
|
68
|
+
query = (
|
|
69
|
+
sql.select("u.name", "COUNT(o.id) as order_count")
|
|
70
|
+
.from_("users u")
|
|
71
|
+
.left_join("orders o", "u.id = o.user_id")
|
|
72
|
+
.where("u.created_at > ?", "2024-01-01")
|
|
73
|
+
.group_by("u.name")
|
|
74
|
+
.having("COUNT(o.id) > ?", 5)
|
|
75
|
+
.order_by("order_count", desc=True)
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
# Execute the built query
|
|
79
|
+
with sql.provide_session(config) as session:
|
|
80
|
+
results = session.execute(query.build())
|
|
81
|
+
```
|
|
30
82
|
|
|
31
83
|
### DuckDB LLM
|
|
32
84
|
|
|
33
|
-
This is a quick implementation using some of the built
|
|
85
|
+
This is a quick implementation using some of the built-in Secret and Extension management features of SQLSpec's DuckDB integration.
|
|
34
86
|
|
|
35
|
-
It allows you to communicate with any compatible OpenAPI conversations endpoint (such as Ollama).
|
|
87
|
+
It allows you to communicate with any compatible OpenAPI conversations endpoint (such as Ollama). This example:
|
|
36
88
|
|
|
37
89
|
- auto installs the `open_prompt` DuckDB extensions
|
|
38
|
-
- automatically creates the correct `open_prompt`
|
|
90
|
+
- automatically creates the correct `open_prompt` compatible secret required to use the extension
|
|
39
91
|
|
|
40
92
|
```py
|
|
41
93
|
# /// script
|
|
@@ -80,12 +132,12 @@ with sql.provide_session(etl_config) as session:
|
|
|
80
132
|
|
|
81
133
|
### DuckDB Gemini Embeddings
|
|
82
134
|
|
|
83
|
-
In this example, we are again using DuckDB.
|
|
135
|
+
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.
|
|
84
136
|
|
|
85
|
-
This example will
|
|
137
|
+
This example will:
|
|
86
138
|
|
|
87
139
|
- auto installs the `http_client` and `vss` (vector similarity search) DuckDB extensions
|
|
88
|
-
- when a connection is created, it ensures that the `generate_embeddings` macro exists in the DuckDB database
|
|
140
|
+
- when a connection is created, it ensures that the `generate_embeddings` macro exists in the DuckDB database
|
|
89
141
|
- Execute a simple query to call the Google API
|
|
90
142
|
|
|
91
143
|
```py
|
|
@@ -131,8 +183,8 @@ etl_config = sql.add_config(
|
|
|
131
183
|
)
|
|
132
184
|
)
|
|
133
185
|
with sql.provide_session(etl_config) as session:
|
|
134
|
-
result = session.
|
|
135
|
-
print(result) # result is a dictionary when `schema_type` is omitted.
|
|
186
|
+
result = session.execute("SELECT generate_embedding('example text')")
|
|
187
|
+
print(result.get_first()) # result is a dictionary when `schema_type` is omitted.
|
|
136
188
|
```
|
|
137
189
|
|
|
138
190
|
### Basic Litestar Integration
|
|
@@ -147,11 +199,10 @@ In this example we are going to demonstrate how to create a basic configuration
|
|
|
147
199
|
# ]
|
|
148
200
|
# ///
|
|
149
201
|
|
|
150
|
-
from aiosqlite import Connection
|
|
151
202
|
from litestar import Litestar, get
|
|
152
203
|
|
|
153
204
|
from sqlspec.adapters.aiosqlite import AiosqliteConfig, AiosqliteDriver
|
|
154
|
-
from sqlspec.extensions.litestar import SQLSpec
|
|
205
|
+
from sqlspec.extensions.litestar import DatabaseConfig, SQLSpec
|
|
155
206
|
|
|
156
207
|
|
|
157
208
|
@get("/")
|
|
@@ -159,15 +210,18 @@ async def simple_sqlite(db_session: AiosqliteDriver) -> dict[str, str]:
|
|
|
159
210
|
return await db_session.select_one("SELECT 'Hello, world!' AS greeting")
|
|
160
211
|
|
|
161
212
|
|
|
162
|
-
sqlspec = SQLSpec(
|
|
163
|
-
config=
|
|
213
|
+
sqlspec = SQLSpec(
|
|
214
|
+
config=DatabaseConfig(
|
|
215
|
+
config=AiosqliteConfig(),
|
|
216
|
+
commit_mode="autocommit"
|
|
217
|
+
)
|
|
164
218
|
)
|
|
165
219
|
app = Litestar(route_handlers=[simple_sqlite], plugins=[sqlspec])
|
|
166
220
|
```
|
|
167
221
|
|
|
168
222
|
## Inspiration and Future Direction
|
|
169
223
|
|
|
170
|
-
SQLSpec originally drew inspiration from features found in the `aiosql` library.
|
|
224
|
+
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.
|
|
171
225
|
|
|
172
226
|
## Current Focus: Universal Connectivity
|
|
173
227
|
|
|
@@ -207,9 +261,10 @@ This list is not final. If you have a driver you'd like to see added, please ope
|
|
|
207
261
|
- `litestar/`: Litestar framework integration ✅
|
|
208
262
|
- `fastapi/`: Future home of `fastapi` integration.
|
|
209
263
|
- `flask/`: Future home of `flask` integration.
|
|
210
|
-
- `*/`: Future home of your favorite framework integration
|
|
264
|
+
- `*/`: Future home of your favorite framework integration
|
|
211
265
|
- `base.py`: Contains base protocols for database configurations.
|
|
212
|
-
- `
|
|
266
|
+
- `statement/`: Contains the SQL statement system with builders, validation, and transformation.
|
|
267
|
+
- `storage/`: Contains unified storage operations for data import/export.
|
|
213
268
|
- `utils/`: Contains utility functions used throughout the project.
|
|
214
269
|
- `exceptions.py`: Contains custom exceptions for SQLSpec.
|
|
215
270
|
- `typing.py`: Contains type hints, type guards and several facades for optional libraries that are not required for the core functionality of SQLSpec.
|