client

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConnection

func CreateConnection(ctx api.StreamContext) modules.Connection

func ParseDBUrl

func ParseDBUrl(urlstr string) (string, string, error)

func ParseDriver

func ParseDriver(url string) (string, error)

Types

type SQLConnection

type SQLConnection struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*SQLConnection) Close

func (s *SQLConnection) Close(ctx api.StreamContext) error

func (*SQLConnection) DetachSub

func (s *SQLConnection) DetachSub(ctx api.StreamContext, props map[string]any)

func (*SQLConnection) Dial

func (s *SQLConnection) Dial(ctx api.StreamContext) error

func (*SQLConnection) GetDB

func (s *SQLConnection) GetDB() *sql.DB

func (*SQLConnection) GetId

func (s *SQLConnection) GetId(ctx api.StreamContext) string

func (*SQLConnection) Ping

func (s *SQLConnection) Ping(ctx api.StreamContext) error

func (*SQLConnection) Provision

func (s *SQLConnection) Provision(ctx api.StreamContext, conId string, props map[string]any) error

func (*SQLConnection) Reconnect

func (s *SQLConnection) Reconnect() error

Jump to

Keyboard shortcuts

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