Documentation ¶
Index ¶
- Constants
- func AlarmExist(opts ...Option) bool
- func Filter(filter func(opt Option) bool, opts ...Option)
- func FullSqlExist(opts ...Option) bool
- func MaxColumnExist(opts ...Option) int
- func NameKeyExist(opts ...Option) (string, bool)
- func Select[T any](t int, defValue T, opts ...Option) (T, bool)
- func SubQueryExist(opts ...Option) (string, bool)
- func TimeOutExist(opts ...Option) (int64, bool)
- type ColumnConvertFunc
- type Opt
- type Option
- func Exist(ty int, opts ...Option) (Option, bool)
- func SqlColumnConvert(f func(col string) string) Option
- func WithAlarmKey() Option
- func WithFullSQL() Option
- func WithMaxColumn(c int) Option
- func WithNameKey(name string) Option
- func WithOpt[T any](v T, desc string, t int) Option
- func WithQuery() Option
- func WithSubQuerySQL(as string) Option
- func WithTimeOutKey(timeout int64) Option
- 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 NameKeyExist ¶
func SubQueryExist ¶
func TimeOutExist ¶ added in v1.9.28
Types ¶
type ColumnConvertFunc ¶ added in v1.9.15
func SqlColumnConvertExist ¶
func SqlColumnConvertExist(opts ...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{}
type Option ¶
func SqlColumnConvert ¶
func WithAlarmKey ¶ added in v1.9.28
func WithAlarmKey() Option
func WithFullSQL ¶
func WithFullSQL() Option
func WithMaxColumn ¶
func WithNameKey ¶
func WithSubQuerySQL ¶
func WithTimeOutKey ¶ added in v1.9.28
Click to show internal directories.
Click to hide internal directories.