Documentation
¶
Overview ¶
Package hana provides backend for SAP HANA.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTableNotExist indicates that there is no such table. ErrTableNotExist = fmt.Errorf("collection/table does not exist") // ErrSchemaNotExist indicates that there is no such schema. ErrSchemaNotExist = fmt.Errorf("database/schema does not exist") // ErrSchemaAlreadyExist indicates that a schema already exists. ErrSchemaAlreadyExist = fmt.Errorf("database/schema already exists") // ErrCollectionAlreadyExist indicates that a collection already exists. ErrCollectionAlreadyExist = fmt.Errorf("collection/table already exists") // ErrInvalidCollectionName indicates that a collection didn't pass name checks. ErrInvalidCollectionName = fmt.Errorf("invalid FerretDB collection name") // ErrInvalidDatabaseName indicates that a database didn't pass name checks. ErrInvalidDatabaseName = fmt.Errorf("invalid FerretDB database name") )
Errors are wrapped with lazyerrors.Error, so the caller needs to use errors.Is to check the error, for example, errors.Is(err, ErrSchemaNotExist).
View Source
var Errors = map[int]error{ 259: ErrTableNotExist, 288: ErrCollectionAlreadyExist, 362: ErrSchemaNotExist, 386: ErrSchemaAlreadyExist, }
Errors from HanaDB.
Functions ¶
func NewBackend ¶
func NewBackend(params *NewBackendParams) (backends.Backend, error)
NewBackend creates a new Backend.
Types ¶
Click to show internal directories.
Click to hide internal directories.