ingres

package
v0.14.13 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package ingres defines and registers usql's Ingres (Actian X, Vector, VectorH) driver. Requires CGO. Uses platform's Ingres libraries.

See: https://github.com/ildus/ingres Group: base

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIngresReader

func NewIngresReader(db drivers.DB, opts ...metadata.ReaderOption) metadata.Reader

NewMetadataReader creates the metadata reader for clickhouse databases.

func NewIngresWriter

func NewIngresWriter(r md.Reader, opts ...WriterOption) func(db md.DB, w io.Writer) md.Writer

Types

type IngresWriter

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

IngresWriter using an existing db introspector

func (IngresWriter) DescribeFunctions

func (w IngresWriter) DescribeFunctions(u *dburl.URL, funcTypes, pattern string, verbose, showSystem bool) error

DescribeFunctions matching pattern

func (IngresWriter) DescribeTableDetails

func (w IngresWriter) DescribeTableDetails(u *dburl.URL, pattern string, verbose, showSystem bool) error

DescribeTableDetails matching pattern

func (IngresWriter) ListAllDbs

func (w IngresWriter) ListAllDbs(u *dburl.URL, pattern string, verbose bool) error

ListAllDbs matching pattern

func (IngresWriter) ListIndexes

func (w IngresWriter) ListIndexes(u *dburl.URL, pattern string, verbose, showSystem bool) error

ListIndexes matching pattern

func (IngresWriter) ListPrivilegeSummaries

func (w IngresWriter) ListPrivilegeSummaries(u *dburl.URL, pattern string, showSystem bool) error

ListPrivilegeSummaries matching pattern

func (IngresWriter) ListSchemas

func (w IngresWriter) ListSchemas(u *dburl.URL, pattern string, verbose, showSystem bool) error

ListSchemas matching pattern

func (IngresWriter) ListTables

func (w IngresWriter) ListTables(u *dburl.URL, tableTypes, pattern string, verbose, showSystem bool) error

ListTables matching pattern

func (IngresWriter) ShowStats

func (w IngresWriter) ShowStats(u *dburl.URL, statTypes, pattern string, verbose bool, k int) error

ShowStats of columns for tables matching pattern

type MetadataReader

type MetadataReader struct {
	metadata.LoggingReader
}

func (MetadataReader) Columns

func (MetadataReader) ConstraintColumns

func (r MetadataReader) ConstraintColumns(f metadata.Filter) (*metadata.ConstraintColumnSet, error)

func (MetadataReader) Constraints

func (MetadataReader) Functions

func (MetadataReader) IndexColumns

func (MetadataReader) Indexes

func (MetadataReader) Schemas

func (MetadataReader) Sequences

func (MetadataReader) Tables

type WriterOption

type WriterOption func(*IngresWriter)

WriterOption to configure the IngresWriter

func WithListAllDbs

func WithListAllDbs(f func(string, bool) error) WriterOption

WithListAllDbs that lists all catalogs

func WithSystemSchemas

func WithSystemSchemas(schemas []string) WriterOption

WithSystemSchemas that are ignored unless showSystem is true

Jump to

Keyboard shortcuts

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