Skip to content

Add task-focused ETL guides and tool comparisons; broaden How-to section to Guides #82

Open

Description

@ejboy

Goal

Grow Scriptella discovery through practical, task-oriented documentation and honest comparisons with adjacent Java database tools. Developers searching for a specific ETL task should find a complete, runnable Scriptella example; developers evaluating tools should understand when Scriptella is—and is not—a good fit.

This is separate from #81 (six JDBC driver reference pages / 1.7.0 compatibility). Implement website content in scriptella.github.io.

Current status

  • CSV-to-PostgreSQL implemented in local website commit d40eaf1. Publication is pending.
  • The guide includes highlighted SQL and ETL XML, sample data and schema, JDBC setup, and verification steps. It is linked from the Guides landing page, contextual sidebar, and PostgreSQL driver page, and has metadata and a sitemap entry.
  • Verified import, identical reruns, updates by ID, and rollback on an invalid ID with Scriptella 1.7.0, PostgreSQL 17.11, and pgJDBC 42.7.13. Both literal demo credentials and environment-variable substitution were exercised. Internal links passed. Mobile layout received a stylesheet review and still needs a viewport check.
  • The guide and five authenticated driver examples use DEMO_USER and DEMO_PASSWORD and show the environment-variable alternative.
  • PostgreSQL JSON and JSON Lines export guide implemented in local website commit c133100. The guide includes typed placeholders, expected output for both formats, and guidance for stale files and partial failures. It is linked from Guides, the PostgreSQL driver page, and the JSON driver reference, and has metadata and a sitemap entry.
  • Verified both export formats with Scriptella 1.7.0, PostgreSQL 17.11, and pgJDBC 42.7.13. Checks covered typed output, reruns, zero-row behavior with and without an existing file, and partial output on failure. Internal links and the sitemap passed.
  • Both initial how-tos are implemented and verified locally. The three comparisons, their Guides landing-page section, a mobile viewport check, and publication remain open.

1. Practical how-to pages (first priority)

Start with two standalone guides:

  • Import CSV into PostgreSQL with Java / Scriptella — /howto/csv-to-postgresql.html (implemented and verified locally, publication pending)
  • Export PostgreSQL query results to JSON / JSON Lines — /howto/postgresql-to-json.html (implemented and verified locally, publication pending)

The MySQL-to-PostgreSQL migration guide is out of scope for this issue. Revisit it after the Scriptella 1.8.0 migration work is complete.

Follow-ups if the initial guides prove useful: CSV → MariaDB and other concrete import/export workflows. Avoid generating many nearly identical database permutations without genuine added value.

Each how-to should include:

  • A task-focused title and short explanation of prerequisites and expected outcome.
  • Runnable, verified Scriptella 1.7.0 ETL, with sample input/schema, JDBC dependencies/classpath, command, and expected output or verification steps.
  • Appropriate handling of credentials, reruns, transactions, and failure modes.
  • Links to the relevant driver pages, Scriptella download/install, technical documentation, and a sample/reproduction in the ETL repository where available.

For JSON exports, accurately document typed ?{...} placeholders, JSON vs JSON Lines, and the existing limitations around zero-row exports / stale destination files and partial outputs. Reuse docs/json.md and existing examples rather than inventing a new JSON syntax.

2. Tool comparison pages (second priority)

Publish balanced, substantive comparisons—not generic keyword pages:

  • Scriptella vs Flyway — /compare/flyway.html
  • Scriptella vs Liquibase — /compare/liquibase.html
  • Scriptella vs Spring Batch — /compare/spring-batch.html

For each, explain which problem each tool is designed to solve, show a realistic common task or representative workflow, and give clear choose X when… guidance. Flyway/Liquibase have versioned schema migration/change tracking that Scriptella 1.7.0 does not replace; Spring Batch provides mature job/restart infrastructure. Scriptella's angle is lightweight, SQL-first cross-source ETL, data copying/transformation, and script execution. Avoid broad performance claims or unfair comparisons without matching benchmarks.

Other alternatives (e.g. Apache Hop / Pentaho) can be considered later, based on relevant search demand and substance.

3. Rename/extend the documentation section

  • Change the user-facing “How-to guides” sidebar label to “Guides”, an umbrella for how-tos, comparisons, and future explanatory articles.
  • Expand the existing /howto/index.html into the Guides landing page, with clearly separated How-tos and Comparisons sections; add Articles only when there is suitable content.
  • Retain current /howto/ URLs and working deep links. Comparison pages can live under /compare/; don't rename paths or add redirects merely to change a navigation label.
  • Keep sidebar compact: only expand contextual links for the current section, not all guide/driver links on every page. Preserve direct links to Reference, Drivers, FAQ, API, and DTD.
  • Link useful how-tos from their database driver pages and relevant existing content; link comparisons from the homepage's When to use Scriptella area where natural.
  • Add page titles, meta descriptions, canonicals, sitemap entries and test internal links/mobile layout. Reuse existing site styling.

Acceptance

At least the two initial how-tos and three comparisons are published and cross-linked, with honest scope and verified runnable examples where applicable. The sidebar/landing page can accommodate future articles without becoming crowded. Existing documentation URLs and anchors remain intact.

Prefer a small, maintainable content change—no new site generator or broad navigation redesign.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions