Skip to content

parse dependecy order of ddl - to be used to benchmark of firebird db

Notifications You must be signed in to change notification settings

2xic-speedrun/ddl-firebird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DDL dependency graph solver for Firebird

Disclaimer: This tool is made for a VERY spesific usecase. Most likely your problems will be solved by using isql -x -a -o output.ddl datbase.fdb instead of using this tool.

Simple parser to parse (parts of the) Firebird DDL format from DBeaver to solve order of the dependency.

Context: When exporting from DBeaver it does not follow an order to allow me to import to another database. This code is just a simple parser to resolve that dependency order.

Example graph from ./src/examples/DependencyGraph.sql

dependency

TODO (??)

  • Complete the necessary parts of the parser
    • Will use reference counting for procedures - This is not a true parser, it's just to handle the order.
  • Put the tables in a graph, and make it possible to get the DDL for connected nodes.
  • Output the code in correct order based on the graph
  • ̃Make the parser output the full objects (i.e that they can be used to reconstruct the tables)
    • Dropped, don't need the full object for my use case.

About

parse dependecy order of ddl - to be used to benchmark of firebird db

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages