Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlserver

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexedProperty

type IndexedProperty struct {
	ColumnName string `json:"column"`
	Property   string `json:"property"`
	Type       string `json:"type"`
}

IndexedProperty defines a indexed property.

type KeyType

type KeyType string

KeyType defines type of the table identifier.

const (
	// StringKeyType defines a key of type string.
	StringKeyType KeyType = "string"

	// UUIDKeyType defines a key of type UUID/GUID.
	UUIDKeyType KeyType = "uuid"

	// IntegerKeyType defines a key of type integer.
	IntegerKeyType KeyType = "integer"

	// InvalidKeyType defines an invalid key type.
	InvalidKeyType KeyType = "invalid"
)

func KeyTypeFromString

func KeyTypeFromString(k string) (KeyType, error)

KeyTypeFromString tries to create a KeyType from a string value.

type SQLServer

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

SQLServer defines a Ms SQL Server based state store.

func NewSQLServerStateStore

func NewSQLServerStateStore(logger logger.Logger) *SQLServer

NewSQLServerStateStore creates a new instance of a Sql Server transaction store.

func (*SQLServer) BulkDelete

func (s *SQLServer) BulkDelete(req []state.DeleteRequest) error

BulkDelete removes multiple entries from the store.

func (*SQLServer) BulkGet added in v1.0.0

func (s *SQLServer) BulkGet(req []state.GetRequest) (bool, []state.BulkGetResponse, error)

BulkGet performs a bulks get operations.

func (*SQLServer) BulkSet

func (s *SQLServer) BulkSet(req []state.SetRequest) error

BulkSet adds/updates multiple entities on store.

func (*SQLServer) Delete

func (s *SQLServer) Delete(req *state.DeleteRequest) error

Delete removes an entity from the store.

func (*SQLServer) Features added in v1.1.1

func (s *SQLServer) Features() []state.Feature

Features returns the features available in this state store.

func (*SQLServer) Get

func (s *SQLServer) Get(req *state.GetRequest) (*state.GetResponse, error)

Get returns an entity from store.

func (*SQLServer) Init

func (s *SQLServer) Init(metadata state.Metadata) error

Init initializes the SQL server state store.

func (*SQLServer) Multi

func (s *SQLServer) Multi(request *state.TransactionalStateRequest) error

Multi performs multiple updates on a Sql server store.

func (*SQLServer) Ping added in v1.4.4

func (s *SQLServer) Ping() error

func (*SQLServer) Set

func (s *SQLServer) Set(req *state.SetRequest) error

Set adds/updates an entity on store.

type TvpDeleteTableStringKey

type TvpDeleteTableStringKey struct {
	ID         string
	RowVersion []byte
}

TvpDeleteTableStringKey defines a table type with string key.

Jump to

Keyboard shortcuts

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