Add index methods on engine transaction interface

This commit is contained in:
Asdine El Hrychy
2019-02-11 14:30:49 -05:00
parent 2c555477d5
commit 81a5a0c823
3 changed files with 62 additions and 3 deletions

View File

@@ -3,6 +3,8 @@ package engine
import (
"errors"
"github.com/asdine/genji/index"
"github.com/asdine/genji/table"
)
@@ -21,4 +23,6 @@ type Transaction interface {
Commit() error
Table(name string) (table.Table, error)
CreateTable(name string) (table.Table, error)
Index(name string) (index.Index, error)
CreateIndex(name string) (index.Index, error)
}