tosql

package
v0.0.0-...-6dd71d7 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVToSQLOpts

type CSVToSQLOpts struct {
	Strict bool
	Comma  rune
}

type ColumnDefinition

type ColumnDefinition struct {
	Name string
	Type string
}

type DBDefinition

type DBDefinition struct {
	TableName         string
	ColumnDefinitions []*ColumnDefinition
	ExpectedRowCount  uint64
}

type JSONCatToSQLOpts

type JSONCatToSQLOpts struct {
	Strict bool
}

type ToSQLer

type ToSQLer interface {
	ToSQL(dst, src string) error
}

func NewCSVToSQLer

func NewCSVToSQLer(opts CSVToSQLOpts) ToSQLer

func NewJSONCatToSQLer

func NewJSONCatToSQLer(opts JSONCatToSQLOpts) ToSQLer

Jump to

Keyboard shortcuts

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