Database_Integration: separate import and export examples per language - #8
Merged
Merged
Conversation
Per request: import and export are now separate standalone programs (not one combined file), so a developer lifts exactly the direction they need. - python/ import_fundsxml.py + export_fundsxml.py (was fundsxml_db.py) - java/ ImportFundsXml.java + ExportFundsXml.java (was FundsXmlDb.java) - javascript/ import_fundsxml.mjs + export_fundsxml.mjs (was fundsxml_db.mjs) - csharp/import/ + csharp/export/ (separate .csproj each; was one project) Each is self-contained (own copy of the small kind/qty maps) and heavily commented. Import creates the schema in a fresh SQLite DB then loads; export reads it back. CLI: <import> <db> <xml> ; <export> <db> <docId> <out.xml>. README + CI updated to run import then export then xml_equiv + XSD for all four languages on the multi-fund fixture (cross-language identical) plus the single-fund sample. Verified locally end-to-end: every language's export is xml_equiv-equal to the input and to each other, and XSD-valid. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #7 (merged). Per request: import and export are now separate standalone programs, not one combined file — a developer can lift exactly the direction they need.
python/import_fundsxml.pypython/export_fundsxml.pyjava/ImportFundsXml.javajava/ExportFundsXml.javajavascript/import_fundsxml.mjsjavascript/export_fundsxml.mjscsharp/import/(own .csproj)csharp/export/(own .csproj)(The combined
fundsxml_db.*/ singlecsharpproject are removed.)<import> <db> <xml>;<export> <db> <docId> <out.xml>.xml_equiv+ XSD, for all four languages on the multi-fund fixture (cross-language identical) plus the single-fund sample.Verified locally end-to-end (Python, Java, JavaScript, C#): every language's exported file is
xml_equiv-equal to the original input and to every other language's export, and XSD-valid; the single-fundMixed-Fund_Positions.xmlstill round-trips XSD-valid.🤖 Generated with Claude Code