Documentation ¶
Overview ¶
Package xlsx implements the sq driver for Microsoft Excel.
Index ¶
- Constants
- func DetectXLSX(ctx context.Context, openFn source.FileOpenFunc) (detected source.DriverType, score float32, err error)
- type Driver
- func (d *Driver) DriverMetadata() driver.Metadata
- func (d *Driver) Open(ctx context.Context, src *source.Source) (driver.Database, error)
- func (d *Driver) Ping(ctx context.Context, src *source.Source) (err error)
- func (d *Driver) Truncate(_ context.Context, src *source.Source, _ string, _ bool) (affected int64, err error)
- func (d *Driver) ValidateSource(src *source.Source) (*source.Source, error)
- type Provider
Constants ¶
View Source
const ( // Type is the sq source driver type for XLSX. Type = source.DriverType("xlsx") )
Variables ¶
This section is empty.
Functions ¶
func DetectXLSX ¶
func DetectXLSX(ctx context.Context, openFn source.FileOpenFunc) (detected source.DriverType, score float32, err error, )
DetectXLSX implements source.DriverDetectFunc, returning TypeXLSX and a score of 1.0 if valid XLSX.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver implements driver.Driver.
func (*Driver) DriverMetadata ¶
DriverMetadata implements driver.Driver.
Click to show internal directories.
Click to hide internal directories.