Documentation ¶
Index ¶
- Constants
- func BcryptEncode(value string) string
- func CamelString(s string) string
- func DecodeEntityInnerId(id uint64) uint64
- func EncodeBaseId(entityInnerId uint64) uint64
- func FirstLower(s string) string
- func FirstUpper(s string) string
- func MapStringKeys(m map[string]interface{}, wapper string) []string
- func MapValues(m map[string]interface{}, wapper string) []interface{}
- func PrintErrorStack()
- func SnakeString(s string) string
- func StringFilter(arr []string, f func(value string) bool) []string
- func StringValue(value interface{}) string
- func Uint64Value(value interface{}) uint64
- type ID
- type JSON
- type Object
Constants ¶
View Source
const ( ONE = "one" QUERY = "query" MUTATION = "mutation" SUBMETHOD = "subMethod" AGGREGATE = "aggregate" LIST = "list" FIELDS = "Fields" NODES = "nodes" TOTAL = "total" INPUT = "Input" SET_INPUT = "Set" UPSERT = "upsert" UPSERT_ONE = "upsertOne" INSERT = "insert" INSERT_ONE = "insertOne" UPDATE = "update" UPDATE_ONE = "updateOne" DELETE = "delete" BY_ID = "ById" SET = "set" HAS_MANY = "HasMany" HAS_ONE = "HasOne" ENTITY = "Entity" ARG_DISTINCTON string = "distinctOn" ARG_LIMIT string = "limit" ARG_OFFSET string = "offset" ARG_ORDERBY string = "orderBy" ARG_WHERE string = "where" ARG_ADD string = "add" ARG_DELETE string = "delete" ARG_UPDATE string = "update" ARG_SYNC string = "sync" ARG_CASCADE string = "cascade" ARG_CLEAR string = "clear" ARG_AND string = "_and" ARG_NOT string = "_not" ARG_OR string = "_or" )
View Source
const ( ARG_EQ string = "_eq" ARG_GT string = "_gt" ARG_GTE string = "_gte" ARG_IN string = "_in" ARG_ISNULL string = "_isNull" ARG_ISNOTNUL string = "_isNotNull" ARG_LT string = "_lt" ARG_LTE string = "_lte" ARG_NOTEQ string = "_notEq" ARG_NOTIN string = "_notIn" ARG_ILIKE string = "_iLike" // ARG_IREGEX string = "_iregex" ARG_LIKE string = "_like" ARG_NOTILIKE string = "_notILike" // ARG_NOTIREGEX string = "_notIRegex" ARG_NOTLIKE string = "_notLike" ARG_NOTREGEX string = "_notRegexp" // ARG_NOTSIMILAR string = "_notSimilar" ARG_REGEX string = "_regexp" )
EQ("="), GTE(">="), GT(">"), LT("<"), LTE("<=");
View Source
const ( ARG_COUNT string = "count" ARG_COLUMNS string = "columns" ARG_DISTINCT string = "distinct" )
View Source
const ( ARG_OBJECT string = "object" ARG_OBJECTS string = "objects" RESPONSE_RETURNING string = "returning" RESPONSE_AFFECTEDROWS string = "affectedRows" ARG_SET string = "set" ARG_FILE string = "file" ARG_FOLDER string = "folder" )
View Source
const ( UUID string = "uuid" INNERID string = "innerId" TYPE string = "type" )
View Source
const ( ID_SUFFIX string = "_id" PIVOT string = "pivot" INDEX_SUFFIX string = "_idx" SUFFIX_SOURCE string = "_source" SUFFIX_TARGET string = "_target" )
View Source
const ( ID_NAME string = "id" OF string = "Of" )
View Source
const ( BOOLEXP string = "BoolExp" ORDERBY string = "OrderBy" DISTINCTEXP string = "DistinctExp" MUTATION_RESPONSE string = "MutationResponse" )
View Source
const ( META_ID string = "id" META_APP_UUID string = "appUuid" META_STATUS string = "status" META_CONTENT string = "content" META_PUBLISHEDAT string = "publishedAt" META_CREATEDAT string = "createdAt" META_UPDATEDAT string = "updatedAt" META_CLASSES string = "classes" META_RELATIONS string = "relations" )
* * Meta实体用到的常量 *
View Source
const ( SERVICE_BITS = 52 //暂时未用 ENTITY_ID_BITS = 32 )
View Source
const ASSOCIATION_OWNER_ID = "owner__rx__id"
View Source
const (
DELETED_AT string = "deletedAt"
)
View Source
const LOADERS = "loaders"
View Source
const METAID = "metaId"
View Source
const TABLE_PREFIX = "a"
Variables ¶
This section is empty.
Functions ¶
func BcryptEncode ¶
func CamelString ¶
*
- 蛇形转驼峰
- @description xx_yy to XxYx xx_y_y to XxYY
- @date 2020/7/30
- @param s要转换的字符串
- @return string *
func DecodeEntityInnerId ¶
func EncodeBaseId ¶
func MapStringKeys ¶
func PrintErrorStack ¶
func PrintErrorStack()
func SnakeString ¶
*
- 驼峰转蛇形 snake string
- @description XxYy to xx_yy , XxYY to xx_y_y
- @date 2020/7/30
- @param s 需要转换的字符串
- @return string *
func StringValue ¶
func StringValue(value interface{}) string
func Uint64Value ¶
func Uint64Value(value interface{}) uint64
Types ¶
Click to show internal directories.
Click to hide internal directories.