Documentation ¶
Index ¶
- Constants
- func AlarmExist(opts ...option.Option) bool
- func FullSqlExist(opts ...option.Option) bool
- func MaxColumnExist(opts ...option.Option) int
- func NameKeyExist(opts ...option.Option) (string, bool)
- func SqlColumnConvert(f func(col string) string) option.Option
- func SubQueryExist(opts ...option.Option) (string, bool)
- func TimeOutExist(opts ...option.Option) (int64, bool)
- func WithAlarmKey() option.Option
- func WithFullSQL() option.Option
- func WithMaxColumn(c int) option.Option
- func WithNameKey(name string) option.Option
- func WithQuery() option.Option
- func WithSubQuerySQL(as string) option.Option
- func WithTimeOutKey(timeout int64) option.Option
- type ColumnConvertFunc
- type Query
- type QueryFunc
Constants ¶
View Source
const ( TypeMaxColumn = iota TypeFullSql TypeSqlColumnConvert TypeSubQuery TypeQuery TypeNameKey //子查询 TypeTimeOut TypeAlarm TypeSqlDns = 1000 TypeSqlTls = 1001 TypeRedisTls = 1002 TypeSqlServerPubKey = 1003 )
Variables ¶
This section is empty.
Functions ¶
func AlarmExist ¶ added in v1.9.28
func FullSqlExist ¶
func MaxColumnExist ¶
func WithAlarmKey ¶ added in v1.9.28
func WithFullSQL ¶
func WithMaxColumn ¶
func WithNameKey ¶
func WithSubQuerySQL ¶
func WithTimeOutKey ¶ added in v1.9.28
Types ¶
type ColumnConvertFunc ¶ added in v1.9.15
func SqlColumnConvertExist ¶
func SqlColumnConvertExist(opts ...option.Option) ColumnConvertFunc
func (ColumnConvertFunc) String ¶ added in v1.9.15
func (t ColumnConvertFunc) String() string
func (ColumnConvertFunc) Type ¶ added in v1.9.15
func (t ColumnConvertFunc) Type() int
func (ColumnConvertFunc) Value ¶ added in v1.9.15
func (t ColumnConvertFunc) Value() interface{}
Click to show internal directories.
Click to hide internal directories.