Separate DB access into several repos (#28)
* Separate files for InMemory * Start using separate repos for collaborating objects * Before Updating schema * Separate various repos
This commit is contained in:
+2
-2
@@ -24,11 +24,11 @@ func LoadConfig(environment string) config.Config {
|
||||
}
|
||||
|
||||
func LoadPostgres(database config.Database, node core.Node) postgres.DB {
|
||||
repository, err := postgres.NewDB(database, node)
|
||||
db, err := postgres.NewDB(database, node)
|
||||
if err != nil {
|
||||
log.Fatalf("Error loading postgres\n%v", err)
|
||||
}
|
||||
return *repository
|
||||
return *db
|
||||
}
|
||||
|
||||
func ReadAbiFile(abiFilepath string) string {
|
||||
|
||||
Reference in New Issue
Block a user