oxid-sql 0.2.0__py3-none-win_arm64.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.
oxid_sql/__init__.py ADDED
@@ -0,0 +1,21 @@
1
+ """Locate the bundled sql-gen compiler (installed as the `sql` script)."""
2
+
3
+ import os
4
+ import sys
5
+ import sysconfig
6
+
7
+
8
+ def find_sql_bin() -> str:
9
+ """Return the path of the `sql` executable installed with this package."""
10
+ exe = "sql" + (sysconfig.get_config_var("EXE") or "")
11
+ scheme = None
12
+ if sys.version_info >= (3, 10):
13
+ scheme = sysconfig.get_preferred_scheme("user")
14
+ candidates = [sysconfig.get_path("scripts")]
15
+ if scheme:
16
+ candidates.append(sysconfig.get_path("scripts", scheme=scheme))
17
+ for folder in candidates:
18
+ path = os.path.join(folder, exe)
19
+ if os.path.isfile(path):
20
+ return path
21
+ raise FileNotFoundError(exe)
oxid_sql/__main__.py ADDED
@@ -0,0 +1,11 @@
1
+ import os
2
+ import subprocess
3
+ import sys
4
+
5
+ from oxid_sql import find_sql_bin
6
+
7
+ if __name__ == "__main__":
8
+ binary = find_sql_bin()
9
+ if sys.platform == "win32":
10
+ sys.exit(subprocess.call([binary, *sys.argv[1:]]))
11
+ os.execv(binary, [binary, *sys.argv[1:]])
Binary file
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: oxid-sql
3
+ Version: 0.2.0
4
+ Summary: Typed Python APIs generated from SQL (native compiler)
5
+ Author: Optersoft, S.L.
6
+ License-Expression: LicenseRef-Optersoft-Proprietary
7
+ License-File: LICENSE.txt
8
+ License-File: THIRD_PARTY_NOTICES.txt
9
+ License-File: licenses/rust/Apache-2.0.txt
10
+ License-File: licenses/rust/BSD-2-Clause.txt
11
+ License-File: licenses/rust/CC-BY-SA-4.0.txt
12
+ License-File: licenses/rust/COPYRIGHT-library.html
13
+ License-File: licenses/rust/GCC-exception-3.1.txt
14
+ License-File: licenses/rust/GPL-2.0-only.txt
15
+ License-File: licenses/rust/GPL-3.0-or-later.txt
16
+ License-File: licenses/rust/ISC.txt
17
+ License-File: licenses/rust/LLVM-exception.txt
18
+ License-File: licenses/rust/MIT.txt
19
+ License-File: licenses/rust/NCSA.txt
20
+ License-File: licenses/rust/OFL-1.1.txt
21
+ License-File: licenses/rust/Unicode-3.0.txt
22
+ Classifier: Environment :: Console
23
+ Classifier: Programming Language :: Rust
24
+ Classifier: Programming Language :: SQL
25
+ Classifier: Topic :: Database
26
+ Classifier: Topic :: Software Development :: Code Generators
27
+ Requires-Python: >=3.8
28
+ Description-Content-Type: text/markdown
29
+
30
+ # oxid-sql
31
+
32
+ Typed Python APIs generated from SQL (`.sq` files).
33
+ This package installs the native `sql-gen` compiler as the `sql` command; no Python
34
+ dependencies, no JVM.
35
+
36
+ ```sh
37
+ pip install oxid-sql # or: uv tool install oxid-sql
38
+ sql python --input Dog.sq --output queries.py
39
+ sql schema --input Dog.sq --migration 1.sqm --output-dir databases
40
+ ```
41
+
42
+ Success exits 0; unsupported SQL, bad arguments and I/O errors exit 2 with a diagnostic on
43
+ stderr (SQL errors as JSON with path and byte span). Editor support: the "SQL X" VS Code
44
+ extension (`optersoft.sqlxx`).
45
+
46
+ Copyright (c) 2026 Optersoft, S.L. The compiler binary may be installed and used; no licence
47
+ to its source is granted. Bundled third-party components keep their own licences
48
+ (`THIRD_PARTY_NOTICES.txt`).
@@ -0,0 +1,21 @@
1
+ oxid_sql/__init__.py,sha256=_yigVMXP1ckIPhfcPDmoS1s6dciRz0LgQaOuinmyX2k,687
2
+ oxid_sql/__main__.py,sha256=TcYvAW57HUi9gIVc5ColSTKTQ68ED_qLhmcJSVNNWa4,267
3
+ oxid_sql-0.2.0.data/scripts/sql.exe,sha256=XXP0V7v7mXpzqqmAFYRsiolMx5bzRmkkXv936JbB1Rg,6177280
4
+ oxid_sql-0.2.0.dist-info/METADATA,sha256=y_bUoNEF2NLtUy-Q4dlbFQArPr7cBLqDGMxzRhSH5Io,1861
5
+ oxid_sql-0.2.0.dist-info/WHEEL,sha256=byVEpZRf9DS-slwOGKXL_-T1PYaX8i2NdsF5o5uDcU8,97
6
+ oxid_sql-0.2.0.dist-info/licenses/LICENSE.txt,sha256=OlaI2e2odhNZBv80-dGE2OmrTvCHa1vZpqHOtBZkFaw,309
7
+ oxid_sql-0.2.0.dist-info/licenses/THIRD_PARTY_NOTICES.txt,sha256=G7Tb59JaQCZwvSBYg8_UzrGVepp3hLlOk6wZxJyqkTc,449804
8
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/Apache-2.0.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
9
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/BSD-2-Clause.txt,sha256=8y-ztBehlBZ8-tBoIj_JdbqWxZYFE6EPZqPChyCuwd8,1267
10
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/CC-BY-SA-4.0.txt,sha256=I-54yLrknPCOovDISUXGa5h-vkUgiB-1Gz2tT7Q9B8I,20137
11
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/COPYRIGHT-library.html,sha256=eMFj_OxQ5kv9hf7bhQwnNZVgL6-itB8w911OQQuA7oM,425651
12
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/GCC-exception-3.1.txt,sha256=o5ZslBDvlKHvv6nsBOnBmUAmpwYj-_CIXONnN7-6O1Q,3320
13
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/GPL-2.0-only.txt,sha256=VLISuh-X9pSPpUhiOatQXdggsC5Qy_0pa0BiyGCacK8,17642
14
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/GPL-3.0-or-later.txt,sha256=BTFfzmw195uKNUVIKJlfomM28jWJWsZFV6vAKPT_zqI,34795
15
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/ISC.txt,sha256=D_YXabI4Y04EKrdZ3d_RBKjmnQkeNgCuNBDkAaYWQ4E,730
16
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/LLVM-exception.txt,sha256=40xYM4vYnUPnCeImYQ2PMrPjxH9K2amajcHUrHhCSI4,919
17
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/MIT.txt,sha256=uF3NPkU9BZglUsUrX8ngvdbSPG-OhEuYSoivMlcLDMA,1078
18
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/NCSA.txt,sha256=OcsCNAZckrnmzuODDLtSsaoomqj-m6LmZzD-xc8FxjA,1676
19
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/OFL-1.1.txt,sha256=juqCh-WHa1OWcMrbgumfmnr93sb2cwgRvh2vJdLpvP0,4016
20
+ oxid_sql-0.2.0.dist-info/licenses/licenses/rust/Unicode-3.0.txt,sha256=9QYsmhiNgd_ma1bbQYLc-eSxfA2bDTEajiCzobB1xEM,1995
21
+ oxid_sql-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: sql scripts/pypi.py
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_arm64
@@ -0,0 +1,7 @@
1
+ kotlin-sql native compiler (sql-gen)
2
+ Copyright (c) 2026 Optersoft, S.L. All rights reserved.
3
+
4
+ Permission is granted to install and use this compiler binary.
5
+ No licence to the private compiler source is granted.
6
+ Third-party components retain their own licences; see THIRD_PARTY_NOTICES.txt
7
+ and licenses/rust/.