Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlrows

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package sqlrows reads a database/sql result into a batch: Polars' read_database (step 353). A column's type is its values', their kinds met as Polars meets the values of a column it builds from rows, and then the type its driver names it, where every value fits that type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(rows *sql.Rows, o Options) (*data.Batch, error)

Read reads every row of rows and closes it.

Types

type Options

type Options struct {
	// Overrides types columns by name, as Polars' schema_overrides does: each value
	// is cast to its column's type, and one that does not fit it is an error.
	Overrides map[string]dtype.DataType
}

Options are what a read is told.

Jump to

Keyboard shortcuts

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