h2database / h2database/h2database

'script' view exporting order

Open
#2,391 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.6k
Forks
1.3k
Avg merge
1d 2h
Merged PRs (30d)
9

Description

Issue #2390 is about dump order of views and tables. It currently happens that views are exported before the tables they are dependent upon are exported. This leads to issues during import.

But views may depend on other views. So an export via 'script' should sort all views in a way that allows hassle-free import. This may be resolved using a sort-by-dependency scheme.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the H2 'script' export path and reading issue #2390 for the related table/view ordering behavior. The work is done when exported views are ordered by their dependencies so an import can recreate them without dependency errors; add or update tests for dependent views if the export path already has coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.