graph database for pehpeh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 line
343B

  1. package graph
  2. import (
  3. "github.com/cayleygraph/cayley"
  4. cg "github.com/cayleygraph/cayley/graph"
  5. )
  6. type Store interface {
  7. Create() error
  8. }
  9. func (s *store) Create() error {
  10. cg.InitQuadStore(srv.backend, srv.path, nil)
  11. store, err := cayley.NewGraph(s.backend, s.path, nil)
  12. if err != nil {
  13. return err
  14. }
  15. s.store = store
  16. return nil
  17. }