table

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package table provides a simple way of checking access to a table

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

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

Access holds a database and table name and information on whether the table is reachable

func NewAccess

func NewAccess(database, table string) Access

NewAccess returns a new Access type

func (*Access) CheckSelectError added in v0.7.5

func (ta *Access) CheckSelectError(dbh *sql.DB) error

CheckSelectError returns whether SELECT works on the table

func (Access) Database

func (ta Access) Database() string

Database returns the database name

func (Access) Name

func (ta Access) Name() string

Name returns the fully qualified table name

func (Access) SelectError added in v0.7.5

func (ta Access) SelectError() error

SelectError returns the result of ta.selectError

func (Access) Table

func (ta Access) Table() string

Table returns the table name

Jump to

Keyboard shortcuts

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