BREAKING CHANGE: V2 of thr SDK #12

Merged
fenpaws merged 124 commits from develop/postgresql into main 2024-07-01 20:46:28 +00:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit c1df01d113 - Show all commits

View File

@ -1,8 +1,9 @@
package database
package graph
import (
"context"
"git.dragse.it/anthrove/otter-space-sdk/internal/graph"
"git.dragse.it/anthrove/otter-space-sdk/pkg/database"
"git.dragse.it/anthrove/otter-space-sdk/pkg/models"
"github.com/neo4j/neo4j-go-driver/v5/neo4j"
@ -14,7 +15,7 @@ type graphConnection struct {
graphDebug bool
}
func NewGraphConnection(graphDebug bool) OtterSpace {
func NewGraphConnection(graphDebug bool) database.OtterSpace {
return &graphConnection{
driver: nil,
graphDebug: graphDebug,

View File

@ -1,8 +1,9 @@
package database
package postgres
import (
"context"
"fmt"
"git.dragse.it/anthrove/otter-space-sdk/pkg/database"
"git.dragse.it/anthrove/otter-space-sdk/pkg/models"
"gorm.io/driver/postgres"
"gorm.io/gorm"
@ -12,7 +13,7 @@ type postgresqlConnection struct {
db *gorm.DB
}
func NewPostgresqlConnection() OtterSpace {
func NewPostgresqlConnection() database.OtterSpace {
return &postgresqlConnection{
db: nil,
}