sql2avro

package module
v0.0.0-...-62832d0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

go-sql2avro

database/sql.Rows -> AVRO records(e.g, SQLite -> AVRO records)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedInputValue error = errors.New("unexpected input value")
)

Functions

func SqlRowsToMaps

func SqlRowsToMaps(r *sql.Rows) iter.Seq2[map[string]any, error]

Converts the *sql.Rows to an iterator and closes it.

Types

type AnyColumn

type AnyColumn struct {
	Value       any
	Name        string
	RawTypeName string
}

func (*AnyColumn) Scan

func (a *AnyColumn) Scan(src any) error

func (AnyColumn) String

func (a AnyColumn) String() string

type AnyRow

type AnyRow []*AnyColumn

func (AnyRow) ToMap

func (a AnyRow) ToMap(m map[string]any)

Directories

Path Synopsis
avro
cmd
common
rdb

Jump to

Keyboard shortcuts

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