Documentation
¶
Index ¶
- Variables
- func DetectFileType(filename string) (f *os.File, typ string, e error)
- func Value[T any](row TableRow, columnName string) (T, error)
- func ValueOrFallback[T any](row TableRow, columnName string, fallback T, tryConvert bool) (T, error)
- func VisitTableRows(db *sqlite3.DbFile, tableName string, columnNameMappings map[string]string, ...) error
- type TableRow
- func (row TableRow) Bool(columnName string) (bool, error)
- func (row TableRow) BytesOrFallback(columnName string, fallback []byte) ([]byte, error)
- func (row TableRow) BytesStringOrFallback(columnName string, fallback []byte) ([]byte, error)
- func (row TableRow) Int64(columnName string) (int64, error)
- func (row TableRow) String(columnName string) (string, error)
- func (row TableRow) Value(columnName string) (any, error)
- func (row TableRow) ValueOrFallback(columnName string, fallback any) any
Constants ¶
This section is empty.
Variables ¶
View Source
var OpenFile = openFile
OpenFile is like os.Open but might be able to open some locked files. The windows implementation sets FILE_SHARE_DELETE in addition.
Functions ¶
func ValueOrFallback ¶ added in v0.2.2
Types ¶
type TableRow ¶
type TableRow struct {
// contains filtered or unexported fields
}
func (TableRow) BytesOrFallback ¶
func (TableRow) BytesStringOrFallback ¶
Click to show internal directories.
Click to hide internal directories.