Skip to content

Commit

Permalink
feat(loader): add command to load JSON dumps into ArangoDB collections
Browse files Browse the repository at this point in the history
The new command "load-arangodb" allows users to filter and load JSON
dumps into ArangoDB collections.
  • Loading branch information
cybersiddhu committed Nov 1, 2024
1 parent 41579df commit 46f05f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/loader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"

arangodbcli "github.com/dictyBase/modware-import/internal/arangodb/cli"
contentcli "github.com/dictyBase/modware-import/internal/content/cli"
"github.com/dictyBase/modware-import/internal/content/client"
"github.com/dictyBase/modware-import/internal/logger"
Expand Down Expand Up @@ -48,6 +49,13 @@ func main() {
Flags: uniprotcli.UniprotFlags(),
Before: uniprotclient.SetRedisClient,
},
{
Name: "load-arangodb",
Usage: "filter and load JSON dumps into ArangoDB collections",
Action: arangodbcli.LoadArangodb,
Flags: arangodbcli.ArangodbLoaderFlags(),
Before: client.SetS3Client,
},

Check warning on line 58 in cmd/loader/main.go

View check run for this annotation

Codecov / codecov/patch

cmd/loader/main.go#L52-L58

Added lines #L52 - L58 were not covered by tests
},
}

Expand Down

0 comments on commit 46f05f4

Please sign in to comment.