Documentation
¶
Index ¶
- func Compile(srcFileName string, outFileName string, opts Options) error
- func Delete(table interface{})
- func ExecProcedure(procName string, args ...interface{})
- func From(table interface{})
- func InsertAll(table interface{})
- func OrderBy(column interface{})
- func OrderByDescending(column interface{})
- func Select(columns ...interface{})
- func SelectAll(table interface{})
- func SetChannelBufferSize(size int)
- func SetPackageName(packageName string)
- func SetReturnType(t ReturnType)
- func Update(column interface{}, value interface{})
- func Where(condition bool)
- type Options
- type ReturnType
- type SQLBinaryExpression
- type SQLBuilder
- type SQLColumnExpression
- type SQLDeleteStatement
- type SQLExpression
- type SQLInsertStatement
- type SQLLiteralExpression
- type SQLOrderExpression
- type SQLParameterExpression
- type SQLParenthesisExpression
- type SQLSelectStatement
- type SQLUpdateStatement
- type TableName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecProcedure ¶
func ExecProcedure(procName string, args ...interface{})
func OrderByDescending ¶
func OrderByDescending(column interface{})
func SetChannelBufferSize ¶
func SetChannelBufferSize(size int)
func SetPackageName ¶
func SetPackageName(packageName string)
func SetReturnType ¶
func SetReturnType(t ReturnType)
Types ¶
type Options ¶
type Options struct {
SQLBuilder SQLBuilder
}
type ReturnType ¶
type ReturnType uint
const ( ReturnDefault ReturnType = iota ReturnExecResult ReturnScalar ReturnScalarSet ReturnRecord ReturnRecordSet ReturnRecordChannel )
type SQLBinaryExpression ¶
type SQLBinaryExpression struct {
// contains filtered or unexported fields
}
type SQLBuilder ¶
type SQLBuilder interface {
Reset()
String() string
Write(code string)
WriteLine()
WriteWhere(where SQLExpression)
WriteDeleteStatement(stmt *SQLDeleteStatement)
WriteUpdateStatement(stmt *SQLUpdateStatement)
WriteInsertStatement(stmt *SQLInsertStatement)
WriteSelectStatement(stmt *SQLSelectStatement)
WriteSQLExpression(expr SQLExpression)
GetInvokeParameterList(paramList []*SQLParameterExpression) []*SQLParameterExpression
}
type SQLColumnExpression ¶
type SQLColumnExpression struct {
// contains filtered or unexported fields
}
type SQLDeleteStatement ¶
type SQLDeleteStatement struct {
// contains filtered or unexported fields
}
type SQLExpression ¶
type SQLExpression interface {
}
type SQLInsertStatement ¶
type SQLInsertStatement struct {
// contains filtered or unexported fields
}
type SQLLiteralExpression ¶
type SQLLiteralExpression struct {
// contains filtered or unexported fields
}
type SQLOrderExpression ¶
type SQLOrderExpression struct {
// contains filtered or unexported fields
}
type SQLParameterExpression ¶
type SQLParameterExpression struct {
// contains filtered or unexported fields
}
type SQLParenthesisExpression ¶
type SQLParenthesisExpression struct {
// contains filtered or unexported fields
}
type SQLSelectStatement ¶
type SQLSelectStatement struct {
// contains filtered or unexported fields
}
type SQLUpdateStatement ¶
type SQLUpdateStatement struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.