package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Mar 4, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Clause contains SQL conditions
Build generate the final SQL and SQLVars
提供一个Get方法,用于获取Clause中的sql和sqlVars
Get returns the sql and sqlVars of specific type
func (c *Clause) Set(name Type, vars ...interface{})
Set adds a sub clause of specific type
Type is the type of Clause
const (
INSERT Type = iota
VALUES
SELECT
LIMIT
OFFSET
WHERE
OR
GROUPBY
ORDERBY
HAVING
UPDATE
DELETE
COUNT
JOIN
)
Support types for Clause
Source Files
¶
Click to show internal directories.
Click to hide internal directories.