Documentation ¶
Index ¶
Constants ¶
View Source
const ( FormatText = 1 FormatDate = 2 FormatNumber = 3 FormatFloat = 4 )
View Source
const InMemoryDb = "file::memory:" //?cache=shared"
Variables ¶
View Source
var ErrNoMoreRowsFound = errors.New("no rows to read from")
ErrNoMoreRowsFound will be raised if no (or no more) rows can be read from an Excel file.
Functions ¶
func LoadFromExcel ¶
LoadFromExcel will load all rows from the first sheet in the Excel workbook into a newly created SQLite database. You may specify how data in specific columns is interpreted by supplying Column definitons. For those you don't, they will be treated as TEXT.
Types ¶
type Column ¶
type Column struct { // Name of the column (usually contained in the first row) Name string // Column format (e.g. FormatNumber) Format int // Converter function to convert cell content (string) to native value (Go type) Func Converter }
Column describes all values in a column in an Excel sheet.
Click to show internal directories.
Click to hide internal directories.