Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrQueryTimeout indicates that time for executing query is out. ErrQueryTimeout = errors.New("time for executing query is out") // ErrNotExistColumn indicates that given column doesn't exist. ErrNotExistColumn = errors.New("column doesn't exist") // ErrTableConnection indicates that executor can't connect to the given table. ErrTableConnection = errors.New("can't connect table") // ErrTableDisconnection indicates that executor can't disconnect the table. ErrTableDisconnection = errors.New("can't disconnect table") // ErrTableColumnsRead indicates that executor can't read the table columns. ErrTableColumnsRead = errors.New("can't read table columns") // ErrIncorrectTableRow indicates that executor got incorrect table row. ErrIncorrectTableRow = errors.New("incorrect table row") // ErrIncorrectWhereTree indicates that executor got incorrect where tree. ErrIncorrectWhereTree = errors.New("incorrect where tree") // ErrIncorrectColumnOrder indicates that executor got incorrect column order in tables. ErrIncorrectColumnOrder = errors.New("incorrect column order in tables") // ErrIncorrectColumnCount indicates that executor got incorrect column count. ErrIncorrectColumnCount = errors.New("incorrect column count") )
Functions ¶
Types ¶
type FileTableConnector ¶
type FileTableConnector struct{}
FileTableConnector implements TableConnector interface for working with files.
func (FileTableConnector) Exists ¶
func (c FileTableConnector) Exists(tablePath string) bool
Exists checks whether a file exists.
func (FileTableConnector) GetReader ¶
func (c FileTableConnector) GetReader(tablePath string) (io.ReadCloser, error)
GetReader returns file reader.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table describes table entity.
type TableConnector ¶
TableConnector is the interface that groups the basic GetReader and Exists methods.
Click to show internal directories.
Click to hide internal directories.