driver

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

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

Catalog manages a collection of tables.

func NewCatalog

func NewCatalog(conn driver.Conn) *Catalog

NewCatalog creates a new Catalog with the given connection.

func (*Catalog) Table

func (c *Catalog) Table(name string) (schema.Table, error)

Table retrieves the table for the given name.

type Table

type Table[T meta.Meta] struct {
	// contains filtered or unexported fields
}

Table represents a schema.Table backed by a driver.Store.

func NewTable

func NewTable[T meta.Meta](store driver.Store) *Table[T]

NewTable creates a new instance of Table with the provided driver.Store.

func (*Table[T]) Scan

func (t *Table[T]) Scan(ctx context.Context) (schema.Cursor, error)

Scan retrieves rows from the store and returns them as a schema.Cursor.

Jump to

Keyboard shortcuts

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