Documentation
¶
Index ¶
- Variables
- func SetName(name string) options.Option
- func SetPath(path string) options.Option
- type CreateCursorError
- type CreateExistIndexError
- type File
- func (f *File) Close() error
- func (f *File) CreateIndex(query *v1.Query) error
- func (f *File) CreateTable(q *query.Query) error
- func (f *File) Delete(query *v1.Query) error
- func (f *File) DropIndex(name string) error
- func (f *File) DropTable(name string) error
- func (f *File) Exec(query *v1.Query) (any, error)
- func (f *File) Insert(query *v1.Query) error
- func (f *File) Select(query *v1.Query) ([]*page.Row, error)
- func (f *File) Update(query *v1.Query) error
- type IncorrectNameFieldsError
- type IncorrectTypeFieldsError
- type NotExistTableError
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCreateCursor = fmt.Errorf("at INSERT INTO: error create a new cursor")
View Source
var ErrCreatePage = fmt.Errorf("at INSERT INTO: error create a new page")
View Source
var ErrExistTable = fmt.Errorf("at CREATE TABLE: exist table")
View Source
var ErrIncorrectNameFields = fmt.Errorf("at SELECT: expected field to SELECT")
View Source
var ErrIncorrectType = fmt.Errorf("exec: incorret type")
View Source
var ErrInvalidType = errors.New("invalid type")
Functions ¶
Types ¶
type CreateCursorError ¶
type CreateCursorError struct {
Type string
}
CreateCursorError is an error type returned when the cursor cannot be created
func (*CreateCursorError) Error ¶
func (e *CreateCursorError) Error() string
type CreateExistIndexError ¶
type CreateExistIndexError struct {
Name string
}
CreateExistIndexError is an error type returned when the index already exists
func (*CreateExistIndexError) Error ¶
func (e *CreateExistIndexError) Error() string
type IncorrectNameFieldsError ¶
IncorrectNameFieldsError is an error type returned when the name of the field is incorrect
func (*IncorrectNameFieldsError) Error ¶
func (e *IncorrectNameFieldsError) Error() string
type IncorrectTypeFieldsError ¶
IncorrectTypeFieldsError is an error type returned when the type of the field is incorrect
func (*IncorrectTypeFieldsError) Error ¶
func (e *IncorrectTypeFieldsError) Error() string
type NotExistTableError ¶
NotExistTableError is an error type returned when the table does not exist
func (*NotExistTableError) Error ¶
func (e *NotExistTableError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.