generated from alecodes/base-template
wip: implementing db initialization
This commit is contained in:
parent
ffd3c2014e
commit
89d7b8130a
18 changed files with 745 additions and 0 deletions
14
pkg/relationship.go
Normal file
14
pkg/relationship.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package synchronizator
|
||||
|
||||
type RelationshipClass interface {
|
||||
ToRelationship() (string, []byte, error)
|
||||
FromRelationship(string, []byte) error
|
||||
}
|
||||
|
||||
type Relationship struct {
|
||||
_conn *db
|
||||
_class string
|
||||
From int64
|
||||
To int64
|
||||
Metadata []byte
|
||||
}
|
||||
Reference in a new issue