Init resets the schema state, setting the underlying DB to the given pointer.
(ps *badger.DB)
| 523 | |
| 524 | // Init resets the schema state, setting the underlying DB to the given pointer. |
| 525 | func Init(ps *badger.DB) { |
| 526 | pstore = ps |
| 527 | reset() |
| 528 | } |
| 529 | |
| 530 | // Load reads the latest schema for the given predicate from the DB. |
| 531 | func Load(predicate string) error { |
searching dependent graphs…