-
Notifications
You must be signed in to change notification settings - Fork 52
Comparing changes
Open a pull request
base repository: stackrender/stackrender
base: oracle-mssql-support
head repository: stackrender/stackrender
compare: main
- 16 commits
- 49 files changed
- 3 contributors
Commits on Jun 10, 2026
-
Configuration menu - View commit details
-
Copy full SHA for caa2775 - Browse repository at this point
Copy the full SHA caa2775View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cce8cc - Browse repository at this point
Copy the full SHA 5cce8ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb6c804 - Browse repository at this point
Copy the full SHA eb6c804View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1ae2db - Browse repository at this point
Copy the full SHA c1ae2dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8838d1 - Browse repository at this point
Copy the full SHA e8838d1View commit details
Commits on Jun 30, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 4a2f6ae - Browse repository at this point
Copy the full SHA 4a2f6aeView commit details
Commits on Aug 4, 2026
-
docs: fix README typos and Docker Compose syntax
Correct the "Welcome" heading typo and reword "Index Suggestions" in the feature list. The intro now lists all six exportable SQL dialects (adding Oracle and SQL Server) so it matches the Supported Databases section. Add the port 3000 dev-server URL to the local setup instructions, and switch the Docker Compose commands in README and DOCKER.md from the deprecated V1 "docker-compose" to the current V2 "docker compose" syntax.
Configuration menu - View commit details
-
Copy full SHA for 557387a - Browse repository at this point
Copy the full SHA 557387aView commit details -
Merge pull request #6 from albertoarena/docs/fix-readme-docker-docs
docs: fix README typos and Docker Compose syntax
Configuration menu - View commit details
-
Copy full SHA for ae9e052 - Browse repository at this point
Copy the full SHA ae9e052View commit details -
build: raise Node heap for production build
The production build renders thousands of modules and exceeds V8's default heap ceiling, so `npm run build` fails with a JavaScript heap out-of-memory error during "rendering chunks". Set NODE_OPTIONS=--max-old-space-size=8192 on the Vite build step via cross-env (kept portable for Windows), so a fresh clone builds without any manual environment setup. Document the matching Docker memory requirement in DOCKER.md, since the container build hits the same limit when the Docker VM has too little RAM.
Configuration menu - View commit details
-
Copy full SHA for fe84e0d - Browse repository at this point
Copy the full SHA fe84e0dView commit details -
Merge pull request #7 from albertoarena/build/build-oom-heap-flag
PR approved! Thank you, @albertoarena , for your contribution! We really appreciate your support.
Configuration menu - View commit details
-
Copy full SHA for fab51f2 - Browse repository at this point
Copy the full SHA fab51f2View commit details
Commits on Aug 5, 2026
-
test: add Vitest and Phase 1 pure-helper suite
Introduce automated testing to a project that had no test runner, no test script and no CI. Vitest fits the existing Vite setup with near-zero config; a standalone vitest.config.ts wires the @/ alias via vite-tsconfig-paths and runs in the node environment, avoiding the app's Tailwind/React/WASM plugins that pure-logic tests do not need. Cover the cheapest, highest-value surface first: pure helpers with no DOM, WASM or database. getNextSequence and cloneField (field.ts), the charset/collation and SQLite integer-column reordering plus enum naming (render-uttils.ts), and orderTables including the CircularDependencyError cycle path that backs the Foreign Key Cycle Detection feature. The build's tsc step is unaffected (plain tsc no-ops on the root config) and the new files typecheck clean under strict and lint clean.
Configuration menu - View commit details
-
Copy full SHA for d0cd2d8 - Browse repository at this point
Copy the full SHA d0cd2d8View commit details -
test: add Phase 2 SQL import tests for all dialects
Cover getImporter().parseSql across MySQL, MariaDB, PostgreSQL, SQLite, Oracle and SQL Server. Each dialect gets a representative CREATE TABLE + foreign key + index fixture, asserting table and column counts, primary key, NOT NULL, UNIQUE and DEFAULT parsing, data-type mapping, and the captured foreign key (direction, cardinality and ON DELETE action). Also parse the bundled PostgreSQL dump as a realistic case and verify malformed input surfaces errors without dropping valid tables or throwing. Data-type fixtures are built from the seed arrays via the same transform the app uses in seedDataTypes, so tests run without booting the WASM SQLite database. The parser is a WASM module whose init() is async; the importer constructor does not await it, so the suite awaits init() once in beforeAll, after which every synchronous parseSql call resolves.
Configuration menu - View commit details
-
Copy full SHA for 585f5c7 - Browse repository at this point
Copy the full SHA 585f5c7View commit details -
test: add Phase 3 SQL render tests for all dialects
Cover getRenderer().renderDDL across MySQL, MariaDB, PostgreSQL, SQLite, Oracle and SQL Server. A shared DatabaseType fixture (users + posts with a primary key, auto-increment, NOT NULL UNIQUE column with a length, DEFAULT and a posts to users foreign key) is rendered per dialect, asserting the emitted DDL creates both tables and columns and carries the primary key, unique constraint, dialect-specific auto-increment spelling (AUTO_INCREMENT, SERIAL, AUTOINCREMENT, IDENTITY), variable-length text type, DEFAULT value and the foreign key with ON DELETE CASCADE. The fixture is built from the seed data types so field type ids hydrate the way the app hydrates them, and embeds relationship source/target objects because the SQLite renderer orders tables from the raw database before the migration step re-hydrates. Assertions match quote-agnostic patterns rather than exact strings, since identifier quoting and formatting differ by dialect.
Configuration menu - View commit details
-
Copy full SHA for 91fe5d6 - Browse repository at this point
Copy the full SHA 91fe5d6View commit details -
test: add round-trip tests and CI workflow
Add the Phase 4 import -> render -> import round-trip: for each of the six dialects, parse a CREATE TABLE + foreign key schema into a model, render it back to DDL, parse the rendered DDL again, and assert the two models are equal. Comparison is on a normalized model (table and column names, resolved type names, key/constraint flags, relationships), not raw SQL, since formatting and identifier quoting legitimately differ. A small in-memory adapter assembles the DatabaseType the renderer consumes from the importer output, which the app normally reconstructs via the database. Primary keys are canonicalized to non-nullable in the comparison: SQL Server emits its primary key as a table-level constraint and the importer only forces NOT NULL for inline primary keys, so the flag would otherwise differ on the round trip although the schemas are equivalent. Add a GitHub Actions workflow running npm ci + npm test on pushes to main and on pull requests. Typecheck and lint are intentionally left out for now: the current codebase does not pass a strict project typecheck or a clean lint, so gating on them would fail CI on pre-existing, unrelated issues.
Configuration menu - View commit details
-
Copy full SHA for 42e2bcf - Browse repository at this point
Copy the full SHA 42e2bcfView commit details -
Merge pull request #8 from albertoarena/test/automated-tests
test: add automated test suite (Vitest) for the SQL import/render pipeline
Configuration menu - View commit details
-
Copy full SHA for 994c797 - Browse repository at this point
Copy the full SHA 994c797View commit details -
Configuration menu - View commit details
-
Copy full SHA for e169b84 - Browse repository at this point
Copy the full SHA e169b84View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff oracle-mssql-support...main