Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion cmd/dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/pgschema/pgschema/cmd/util"
"github.com/pgschema/pgschema/internal/diff"
"github.com/pgschema/pgschema/internal/dump"
"github.com/pgschema/pgschema/internal/ignore"
"github.com/pgschema/pgschema/internal/ir"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -79,8 +80,14 @@ func runDump(cmd *cobra.Command, args []string) error {

ctx := context.Background()

// Load ignore configuration
ignoreConfig, err := ignore.LoadIgnoreFileWithStructure()
if err != nil {
return fmt.Errorf("failed to load .pgschemaignore: %w", err)
}

// Build IR using the IR system
inspector := ir.NewInspector(dbConn)
inspector := ir.NewInspector(dbConn, ignoreConfig)
schemaIR, err := inspector.BuildIR(ctx, schema)
if err != nil {
return fmt.Errorf("failed to build IR: %w", err)
Expand Down
Loading