xlsx

package
v0.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package xlsx implements the sq driver for Microsoft Excel.

Index

Constants

View Source
const (
	// Type is the sq source driver type for XLSX.
	Type = source.Type("xlsx")
)

Variables

This section is empty.

Functions

func DetectXLSX

func DetectXLSX(ctx context.Context, log lg.Log, openFn source.FileOpenFunc) (detected source.Type, score float32,
	err error,
)

DetectXLSX implements source.TypeDetectFunc, returning TypeXLSX and a score of 1.0 valid XLSX.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver implements driver.Driver.

func (*Driver) DriverMetadata

func (d *Driver) DriverMetadata() driver.Metadata

DriverMetadata implements driver.Driver.

func (*Driver) Open

func (d *Driver) Open(ctx context.Context, src *source.Source) (driver.Database, error)

Open implements driver.Driver.

func (*Driver) Ping

func (d *Driver) Ping(ctx context.Context, src *source.Source) (err error)

Ping implements driver.Driver.

func (*Driver) Truncate

func (d *Driver) Truncate(ctx context.Context, src *source.Source, tbl string, reset bool) (affected int64, err error)

Truncate implements driver.Driver.

func (*Driver) ValidateSource

func (d *Driver) ValidateSource(src *source.Source) (*source.Source, error)

ValidateSource implements driver.Driver.

type Provider

type Provider struct {
	Log       lg.Log
	Files     *source.Files
	Scratcher driver.ScratchDatabaseOpener
}

Provider implements driver.Provider.

func (*Provider) DriverFor

func (p *Provider) DriverFor(typ source.Type) (driver.Driver, error)

DriverFor implements driver.Provider.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL