Refactor split_statements + UI dependent field improvements #13

Merged
haedong merged 5 commits from development_c into development 2026-07-24 14:53:55 +09:00
Owner

Summary

  • Consolidated duplicate _split_statements (checker.py) / _split_sql_statements (validator.py) into shared core/__init__.py:split_statements()
  • Moved local import json as _json to module-level in app.py
  • Parent option reset clears all dependent child fields (values + tags)
  • UI: dep-active (blue highlight), dep-disabled (dim), PK rows highlighted

Test plan

  • DDL with semicolons in COMMENT strings parsed correctly
  • Partition type → default: child fields cleared
  • EXT table → default: child fields cleared
  • PK check: row highlighted, FK/Null disabled+dimmed
## Summary - Consolidated duplicate `_split_statements` (checker.py) / `_split_sql_statements` (validator.py) into shared `core/__init__.py:split_statements()` - Moved local `import json as _json` to module-level in app.py - Parent option reset clears all dependent child fields (values + tags) - UI: dep-active (blue highlight), dep-disabled (dim), PK rows highlighted ## Test plan - [ ] DDL with semicolons in COMMENT strings parsed correctly - [ ] Partition type → default: child fields cleared - [ ] EXT table → default: child fields cleared - [ ] PK check: row highlighted, FK/Null disabled+dimmed
When parent field (e.g. partition_type, ext_table) is set to default:
- Child text inputs cleared
- Child selects reset to first option
- Child tags removed
Applies to all depends_on relationships across all dialects.
- Dialect options: dep-active (blue bg + bold label), dep-disabled (dim 0.35)
- Column table: PK rows highlighted (blue bg), disabled checkboxes dim (0.25)
- Consistent visual feedback for all parent-child field relationships
- Merged _split_statements (checker.py) and _split_sql_statements (validator.py)
  into shared core/__init__.py:split_statements()
- Moved local `import json as _json` to module-level in app.py
- Updated codec.md
haedong merged commit 123bbd4e71 into development 2026-07-24 14:53:55 +09:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
haedong/table_generator!13
No description provided.