client

package
v2.0.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 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, props map[string]any) (modules.Connection, error)

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 CreateClient

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

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) GetDB

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

func (*SQLConnection) Ping

func (s *SQLConnection) Ping(ctx api.StreamContext) 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