sqldump

package
v2.0.0-...-d0150a3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	// column name
	Name string

	// column position in sql database
	Position int

	// column data type with precision or size, eg. VARCHAR(20)
	Type string

	// column data type without precision and size, eg. VARCHAR
	DataType string

	// whether column is nullable or not
	IsNullable types.Boolean

	// default value of the column
	DefaultValue *string

	// text character set encoding
	Charset *string

	// text collation for sorting
	Collation *string

	// column comment
	Comment string

	// extra information
	Extra string
}

Column :

type Dumper

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

Dumper :

func NewDumper

func NewDumper(driver string, conn db.Queryer) *Dumper

NewDumper :

func (*Dumper) BackupTo

func (d *Dumper) BackupTo(ctx context.Context, query any, wr io.Writer) (affected int64, err error)

BackupTo :

func (*Dumper) RegisterParser

func (d *Dumper) RegisterParser(dataType string, parser Parser)

RegisterParser :

type Parser

type Parser func([]byte) string

Parser :

Jump to

Keyboard shortcuts

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