spanner

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SourceKind string = "spanner"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name     string          `yaml:"name"`
	Kind     string          `yaml:"kind"`
	Project  string          `yaml:"project"`
	Instance string          `yaml:"instance"`
	Dialect  sources.Dialect `yaml:"dialect"`
	Database string          `yaml:"database"`
}

func (Config) Initialize

func (r Config) Initialize() (sources.Source, error)

func (Config) SourceConfigKind

func (r Config) SourceConfigKind() string

type Source

type Source struct {
	Name    string `yaml:"name"`
	Kind    string `yaml:"kind"`
	Client  *spanner.Client
	Dialect string
}

func (*Source) DatabaseDialect

func (s *Source) DatabaseDialect() string

func (*Source) SourceKind

func (s *Source) SourceKind() string

func (*Source) SpannerClient

func (s *Source) SpannerClient() *spanner.Client

Jump to

Keyboard shortcuts

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