sql_executor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColumnSql          = "sql"
	ColumnExecutorID   = "executor_id"
	ColumnExecutorName = "executor_name"
	ColumnExecutedTime = "executed_time"
)

Variables

This section is empty.

Functions

func BindSqlExecutor

func BindSqlExecutor(binder *binding.Binder, simple *Simple)

Types

type ExecuteSqlJsonBody

type ExecuteSqlJsonBody struct {
	Sql          string `json:"sql" binding:"required"`
	ExecutorID   string `json:"executorId" binding:"required"`
	ExecutorName string `json:"executorName" binding:"required"`
}

type QuerySqlExecuteLogQueryParams

type QuerySqlExecuteLogQueryParams struct {
	request.BaseQueryParams
	Sql              string `form:"sql"`
	ExecutorID       string `form:"executorId"`
	ExecutorName     string `form:"executorName"`
	StartExecuteTime string `form:"startExecuteTime"`
	EndExecuteTime   string `form:"endExecuteTime"`
}

type Simple

type Simple struct {
	// schema
	Schema string
}

Simple Bind参数

type SqlExecuteLog

type SqlExecuteLog struct {
	value_object.Base
	Sql          string    `sqlmapping:"column:sql;" sqlresult:"column:sql;"`
	ExecutorID   string    `sqlmapping:"column:executor_id;" sqlresult:"column:executor_id;"`
	ExecutorName string    `sqlmapping:"column:executor_name;" sqlresult:"column:executor_name;"`
	ExecutedTime time.Time `sqlmapping:"column:executed_time;" sqlresult:"column:executed_time;"`
}

func (*SqlExecuteLog) DomainCNName

func (e *SqlExecuteLog) DomainCNName() string

func (*SqlExecuteLog) DomainCamelName

func (e *SqlExecuteLog) DomainCamelName() string

func (*SqlExecuteLog) ForCreate

func (e *SqlExecuteLog) ForCreate() error

type SqlExecuteLogInfo

type SqlExecuteLogInfo struct {
	Sql          string `json:"sql" sqlresult:"sql"`
	ExecutorID   string `json:"executorId" sqlresult:"executor_id"`
	ExecutorName string `json:"executorName" sqlresult:"executor_name"`
	ExecutedTime string `json:"executedTime" sqlresult:"executed_time"`
}

Jump to

Keyboard shortcuts

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