utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, util TailUtil)

Register new Tail Util - name should be the same as the corresponding driver

Types

type TailUtil

type TailUtil interface {
	// Returns Info about connection
	// example: connected to HOST/INSTANCE (VERSION) -- [139.584µs]
	ConnectionInfo(db *sql.DB) (string, error)
	// Returns the placeholder marker to use - f.e. :
	PlaceHolderMarker() string
}

TailUtil provides an interface for additional information specific to the driver

func Get

func Get(name string) (TailUtil, error)

Get Tail Util

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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