spanner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(project, instance, database string, port int) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) CountRows

func (c *Client) CountRows(tableName string) (int, error)

func (*Client) QueryRows

func (c *Client) QueryRows(tableName string, columns []string) ([]Row, error)

func (*Client) QueryRowsWithOrder

func (c *Client) QueryRowsWithOrder(tableName string, columns []string, orderBy string) ([]Row, error)

func (*Client) TableExists

func (c *Client) TableExists(tableName string) (bool, error)

type Row

type Row map[string]interface{}

Jump to

Keyboard shortcuts

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