Documentation ¶
Index ¶
- func CreateConnection(ctx api.StreamContext) modules.Connection
- func ParseDBUrl(urlstr string) (string, string, error)
- func ParseDriver(url string) (string, error)
- type SQLConnection
- func (s *SQLConnection) Close(ctx api.StreamContext) error
- func (s *SQLConnection) DetachSub(ctx api.StreamContext, props map[string]any)
- func (s *SQLConnection) Dial(ctx api.StreamContext) error
- func (s *SQLConnection) GetDB() *sql.DB
- func (s *SQLConnection) GetId(ctx api.StreamContext) string
- func (s *SQLConnection) Ping(ctx api.StreamContext) error
- func (s *SQLConnection) Provision(ctx api.StreamContext, conId string, props map[string]any) error
- func (s *SQLConnection) Reconnect() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConnection ¶
func CreateConnection(ctx api.StreamContext) modules.Connection
func ParseDriver ¶
Types ¶
type SQLConnection ¶
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
Click to show internal directories.
Click to hide internal directories.