Implement an in-memory databasewqa
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package ramdb
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrNoTable = errors.New("table does not exist")
|
||||
ErrTableExists = errors.New("table already exists")
|
||||
|
||||
ErrNoRecord = errors.New("record does not exist")
|
||||
ErrRecordExists = errors.New("record already exists")
|
||||
|
||||
ErrNoIndex = errors.New("index does not exist")
|
||||
ErrInvalidIndex = errors.New("invalid index column")
|
||||
ErrIndexExists = errors.New("index already exists")
|
||||
)
|
||||
Reference in New Issue
Block a user