cmd

package
v0.0.0-...-1c5bc17 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecuteCmd = &cobra.Command{
	Use:   "execute",
	Short: "execute",
	RunE: func(cmd *cobra.Command, args []string) error {
		return fmt.Errorf("Command name argument expected.")
	},
}
View Source
var RootCmd = &cobra.Command{
	Use:   "screwdriver",
	Short: "sql to spanner",
	RunE: func(cmd *cobra.Command, args []string) error {
		return nil
	},
}

RootCmd is root command

Functions

func SpannerDatabase

func SpannerDatabase() (string, error)

Types

type SpannerService

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

func NewSpannerService

func NewSpannerService(ctx context.Context, db string) (*SpannerService, error)

func (*SpannerService) ExactStalenessQuery

func (s *SpannerService) ExactStalenessQuery(ctx context.Context, sql string) error

func (*SpannerService) ExecuteUpdateDML

func (s *SpannerService) ExecuteUpdateDML(ctx context.Context, sql string) error

func (*SpannerService) PartitionedDML

func (s *SpannerService) PartitionedDML(ctx context.Context, sql string) (int64, error)

Jump to

Keyboard shortcuts

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