Skip to content

Commit a6a3e2a

Browse files
fix(readme): remove false PyPI badge and broken install commands (#35)
* cowork-bot: emit valid SQL for mixed-type columns and empty/nested-only roots Type inference now collapses a column whose values mix incompatible types (e.g. a string and an integer) to TEXT instead of keeping the first-seen numeric type. Previously this produced INSERT statements with a quoted string literal in a numeric column, which Postgres/MySQL reject as invalid SQL. A NULL value is treated as "unset" so a column that first sees NULL can still take a concrete type when a non-NULL value arrives (e.g. [null, 42] -> INTEGER), and an all-NULL column resolves to TEXT. convert()/generate_schema() no longer emit an invalid `CREATE TABLE "x" ();` or `INSERT INTO "x" () VALUES ();` for an empty object or a root whose only content is nested arrays (flatten). They now emit only the valid child tables, or an explicit comment when nothing can be generated, instead of a silent green no-op. - src/json2sql/converter.py: add _infer_type/_merge_type; skip empty root tables - tests/test_edge_cases.py: correct the two tests that encoded the old buggy widening behavior - tests/test_type_inference.py: regression tests for mixed-type, NULL, and empty/nested-only-root cases across all three dialects - .github/workflows/cowork-auto-pr.yml: seed server-side PR opener * fix: remove false PyPI badge and broken json2sql-cli install commands
1 parent 4fe4bbe commit a6a3e2a

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ Convert JSON files and datasets to SQL INSERT statements. Supports nested JSON,
1010
![Python](https://img.shields.io/badge/python-3.10%2B-blue)
1111
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Coding-Dev-Tools/json2sql/blob/main/LICENSE)
1212
|[![Open Source Alternative](https://img.shields.io/badge/Open_Source_Alternative-%E2%87%92-blue?logo=opensourceinitiative)](https://www.opensourcealternative.to/project/json2sql)
13-
[![CI](https://github.com/Coding-Dev-Tools/json2sql/actions/workflows/ci.yml/badge.svg)](https://github.com/Coding-Dev-Tools/json2sql/actions/workflows/ci.yml)
14-
[![PyPI](https://img.shields.io/pypi/v/json2sql-cli)](https://pypi.org/project/json2sql-cli/)
13+
|[![CI](https://github.com/Coding-Dev-Tools/json2sql/actions/workflows/ci.yml/badge.svg)](https://github.com/Coding-Dev-Tools/json2sql/actions/workflows/ci.yml)
1514

1615

1716

@@ -23,11 +22,7 @@ Real-world scenarios:
2322

2423
## Installation
2524

26-
```bash
27-
pip install json2sql-cli
28-
```
29-
30-
Or install directly from GitHub:
25+
> **Note:** json2sql is not yet on public PyPI. Install via GitHub directly:
3126
3227
```bash
3328
pip install git+https://github.com/Coding-Dev-Tools/json2sql.git
@@ -47,7 +42,7 @@ scoop install json2sql
4742

4843
**npm (Node.js wrapper):**
4944
```bash
50-
npm install -g json2sql-cli
45+
npm install -g json2sql
5146
```
5247
Then run: `json2sql --help`
5348

@@ -124,7 +119,7 @@ json2sql is one of eleven CLI tools in the Revenue Holdings suite. One license c
124119
---
125120

126121
<p align="center">
127-
<sub>Part of <a href="https://coding-dev-tools.github.io/revenueholdings.dev/">Revenue Holdings</a> — CLI tools built by autonomous AI.</sub>
122+
<sub>Part of <a href="https://revenueholdings.dev/">Revenue Holdings</a> — CLI tools built by autonomous AI.</sub>
128123
</p>
129124

130125
## License

0 commit comments

Comments
 (0)