Metadata-Version: 2.4
Name: sqlxx
Version: 0.1.0
Summary: Typed Kotlin, Python and Rust APIs generated from SQL (native compiler)
Author: Optersoft, S.L.
License-Expression: LicenseRef-Optersoft-Proprietary
License-File: LICENSE.txt
License-File: THIRD_PARTY_NOTICES.txt
License-File: licenses/rust/Apache-2.0.txt
License-File: licenses/rust/BSD-2-Clause.txt
License-File: licenses/rust/CC-BY-SA-4.0.txt
License-File: licenses/rust/COPYRIGHT-library.html
License-File: licenses/rust/GCC-exception-3.1.txt
License-File: licenses/rust/GPL-2.0-only.txt
License-File: licenses/rust/GPL-3.0-or-later.txt
License-File: licenses/rust/ISC.txt
License-File: licenses/rust/LLVM-exception.txt
License-File: licenses/rust/MIT.txt
License-File: licenses/rust/NCSA.txt
License-File: licenses/rust/OFL-1.1.txt
License-File: licenses/rust/Unicode-3.0.txt
Classifier: Environment :: Console
Classifier: Programming Language :: Rust
Classifier: Programming Language :: SQL
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# sqlxx

Typed Kotlin, Python and Rust APIs generated from SQL (SQLDelight-compatible `.sq` files).
This package installs the native `sql-gen` compiler as the `sqlxx` command; no Python
dependencies, no JVM.

```sh
pip install sqlxx    # or: uv tool install sqlxx
sqlxx python --input Dog.sq --output queries.py
sqlxx rust --input Dog.sq --output src/queries.rs
sqlxx kotlin --input Dog.sq --output Native.kt --package pets.db --database Database
sqlxx schema --input Dog.sq --migration 1.sqm --output-dir databases
```

Success exits 0; unsupported SQL, bad arguments and I/O errors exit 2 with a diagnostic on
stderr (SQL errors as JSON with path and byte span). Editor support: the "SQL X" VS Code
extension (`optersoft.sqlxx`).

Copyright (c) 2026 Optersoft, S.L. The compiler binary may be installed and used; no licence
to its source is granted. Bundled third-party components keep their own licences
(`THIRD_PARTY_NOTICES.txt`).
