Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add SQL parsing and relational object construction
- Implement `read_desired_state` function to read and process SQL files from a directory structure. - Add `build_relational_object` function to construct `RelationalObject` from SQL content. - Introduce `SqlVisitor` struct to visit and extract object names from SQL statements. - Create `Stmt` struct to represent statements with metadata. - Implement `parse_change_stmts` function to parse SQL statements with delimiters. - Add `determine_execution_order` function to determine execution order of relational objects based on dependencies. - Include unit tests for `parse_change_stmts` function to ensure correct parsing behavior. This commit enhances the ability to read, parse, and process SQL files, building a graph representation of database objects and their dependencies. Signed-off-by: Gabriel de Maeztu <[email protected]>
- Loading branch information