MCPcopy Create free account

hub / github.com/corestoreio/pkg / functions

Functions7,620 in github.com/corestoreio/pkg

↓ 925 callersMethodString
String returns the name of the handler
sql/mycanal/handler.go:33
↓ 850 callersMethodErrorf
(format string, args ...interface{})
util/assert/assertions.go:28
↓ 477 callersMethodColumn
Column returns the current column name after calling `Next`.
sql/dml/mapper.go:297
↓ 459 callersFunctionColumn
Column adds a new condition.
sql/dml/condition.go:324
↓ 447 callersMethodPln
Pln prints the arguments to the generated output. It tries to convert all kind of types to a string. It adds a line break at the end IF there are strs
util/codegen/common.go:109
↓ 436 callersMethodWhere
Where appends a WHERE clause to the statement for the given string and args or map of column/value pairs. Either WHERE or LIKE can be used.
sql/dml/show.go:105
↓ 402 callersMethodWithID
WithID calls MakeTypeID for your convenience. It packs the id into a new value containing the Type and its ID ;-).
store/scope/type.go:115
↓ 368 callersMethodWriteString
WriteString converts a string into []bytes and outputs it. No formatting feature available.
net/response/response.go:127
↓ 297 callersMethodFrom
From sets the table for the SELECT FROM part.
sql/dml/select.go:155
↓ 296 callersMethodFatal
(args ...interface{})
net/cors/backendcors/options_test.go:84
↓ 258 callersMethodExecContext
ExecContext executes a query that doesn't return rows.
sql/dml/interfaces.go:40
↓ 247 callersMethodFatalf
(format string, args ...interface{})
util/cstesting/helpers.go:25
↓ 244 callersMethodLock
Lock runs the functions within the acquired table locks. On error or success the lock gets automatically released. The Options do not support the Exec
sql/ddl/tables.go:717
↓ 240 callersMethodPlaceHolder
PlaceHolder treats a condition as a placeholder. Sets the database specific placeholder character "?". Mostly used in prepared statements and for inte
sql/dml/condition.go:503
↓ 228 callersMethodIn
()
sql/dml/condition.go:376
↓ 227 callersMethodWithCacheKey
WithCacheKey allows to set a custom cache key in generated code to change the underlying SQL query.
sql/dml/dbr.go:297
↓ 221 callersFunctionNewSelect
NewSelect creates a new Select object.
sql/dml/select.go:55
↓ 206 callersMethodNew
Creates a new attribute to the corresponding entity. @todo options? The return type must embed eav.Attributer interface and of course its custom attri
eav/entity_type.go:54
↓ 198 callersMethodWriteByte
(c byte)
sql/dml/builder.go:39
↓ 196 callersMethodMustTable
MustTable same as Table function but panics when the table cannot be found or any other error occurs.
sql/ddl/tables.go:488
↓ 194 callersMethodClose
()
sql/dml/interfaces.go:81
↓ 189 callersMethodWithDBR
(db QueryExecPreparer)
sql/dml/dbr.go:248
↓ 188 callersMethodError
()
sql/dml/errors.go:31
↓ 180 callersMethodGet
(p Path)
config/service.go:499
↓ 178 callersMethodAddColumns
AddColumns adds columns whose values gets later derived from a ColumnMapper. Those columns will get passed to the ColumnMapper implementation.
sql/dml/update.go:63
↓ 176 callersMethodErr
Err returns the delayed error from one of the scans and parsings. Function is idempotent.
sql/dml/mapper.go:292
↓ 170 callersMethodGet
Get must return an errors.NotFound if a key does not exists.
net/geoip/maxmindwebservice/webservice.go:36
↓ 158 callersMethodServeHTTP
ServeHTTP starts the testing and the request gets called with http.Handler. You might run into a race condition when trying to add a request body (an
util/cstesting/http_users.go:128
↓ 147 callersMethodInt
(i int)
sql/dml/interpolate.go:202
↓ 145 callersFunctionmaybePanic
(err error)
storage/null/encoding_test.go:21
↓ 142 callersMethodDebug
Debug writes the column names with their values into `w`. The output format might change.
sql/dml/mapper.go:1071
↓ 140 callersMethodLen
()
eav/attribute.go:113
↓ 137 callersFunctioncompareToSQL2
compareToSQL2 This function also exists in file dml_public_test.go to avoid import cycles when using a single package dedicated for testing.
sql/dml/dml_test.go:329
↓ 134 callersFunctioncompareToSQL
compareToSQL compares a SQL object with a placeholder string and an optional interpolated string. This function also exists in file dml_public_test.go
sql/dml/dml_test.go:290
↓ 130 callersMethodUnmarshal
([]byte)
storage/objcache/service.go:318
↓ 125 callersMethodEqual
Equal hashes data and compares it with MAC for equality without leaking timing information.
util/hashpool/hashpool.go:80
↓ 122 callersMethodWithQueryBuilder
WithQueryBuilder creates a new DBR for handling the arguments with the assigned connection and builds the SQL string. The returned arguments and error
sql/dml/connection.go:1079
↓ 121 callersMethodInt64
(i int64)
sql/dml/interpolate.go:204
↓ 119 callersMethodSelect
Select gets used in the top level statement.
sql/dml/with.go:85
↓ 114 callersFunctionsl
(s ...string)
config/observer/validator_test.go:136
↓ 109 callersMethodTestWithArgs
TestWithArgs returns a QueryBuilder with resolved arguments. Mostly used for testing and in examples to skip the calls to ExecContext or QueryContext.
sql/dml/dbr.go:373
↓ 108 callersMethodContext
()
net/csgrpc/scope/runmode_test.go:161
↓ 107 callersMethodHeader
()
net/compress/compress.go:53
↓ 106 callersMethodStr
(s string)
sql/dml/interpolate.go:210
↓ 104 callersMethodBytes
Bytes uses a byte slice for comparison. Providing a nil value returns a NULL type. Detects between valid UTF-8 strings and binary data. Later gets hex
sql/dml/interpolate.go:218
↓ 104 callersMethodNext
Next moves the internal index to the next position. It may return false if during RawBytes scanning an error has occurred.
sql/dml/mapper.go:309
↓ 104 callersFunctionbindataRead
(data []byte, name string)
util/pseudo/bindata.go:122
↓ 102 callersMethodEqual
()
sql/dml/condition.go:416
↓ 100 callersFunctionNewAMD
NewAMD NewAttributeModelDef NewAttributeModelDef creates a new attribute model definition
_codegen/config.go:163
↓ 99 callersMethodEqual
Equal compares the scope and the route
config/path.go:457
↓ 96 callersMethodFakeData
FakeData is the main function. Will generate a fake data based on your struct. You can use this for automation testing, or anything that need automat
util/pseudo/fake.go:387
↓ 96 callersMethodWrite
(p []byte)
sql/dml/builder.go:41
↓ 92 callersMethodUint32
Uint32 reads an uint32 value and appends it to the arguments slice or assigns the uint32 value stored in sql.RawBytes to the pointer. See the document
sql/dml/mapper.go:1010
↓ 91 callersMethodMarshal
()
storage/objcache/service.go:249
↓ 90 callersMethodEmpty
Empty empties all the fields of the current object. Also known as Reset.
store/entities_gen.go:35
↓ 89 callersMethodStart
Start starts the sync process in the background as a goroutine. You can stop the goroutine via the context.
sql/mycanal/canal.go:412
↓ 87 callersMethodError
Error implements error interface and returns the last error.
config/value.go:570
↓ 87 callersMethodIsNull
IsNull checks if column can have null values
sql/ddl/columns.go:492
↓ 87 callersFunctionNewValue
NewValue makes a new non-pointer value type.
config/value.go:73
↓ 86 callersMethodEntityName
()
sql/dmlgen/table.go:89
↓ 86 callersMethodOrderBy
OrderBy appends columns to the ORDER BY statement for ascending sorting. A column gets always quoted if it is a valid identifier otherwise it will be
sql/dml/dbr.go:323
↓ 86 callersMethodStatus
Status returns the HTTP status of the request, or 0 if one has not yet been sent.
net/responseproxy/tee_writer.go:16
↓ 82 callersFunctionFail
Fail reports a failure through
util/assert/assertions.go:206
↓ 75 callersMethodClose
Close closes the underlying object
net/geoip/country.go:39
↓ 73 callersMethodAlias
Alias sets the aliased name for the `Name` field.
sql/dml/naming.go:68
↓ 73 callersMethodInt64s
(i ...int64)
sql/dml/interpolate.go:205
↓ 73 callersMethodNewToken
NewToken creates a new signed JSON web token based on the predefined scoped based template token function (WithTemplateToken) and merges the optional
net/jwt/service.go:84
↓ 71 callersMethodSet
Set adds the token ID (The jti (JWT ID) claim provides a unique identifier for the JWT) to the blocklist and may perform a purge operation. Set should
net/jwt/blacklist.go:28
↓ 70 callersMethodLoad
Load loads data from a query into an object. Load can load a single row or multiple-rows. It checks on top if ColumnMapper `s` implements io.Closer, t
sql/dml/dbr.go:1075
↓ 70 callersMethodPut
Put empties the hash and returns it back to the pool. hp := New(fnv.New64) hsh := hp.Get() defer hp.Put(hsh) // your code return hsh.Sum([]
util/hashpool/hashpool.go:154
↓ 69 callersMethodNullString
(nv null.String)
sql/dml/interpolate.go:222
↓ 68 callersMethodToSQL
()
sql/dml/builder.go:48
↓ 67 callersMethodErrorf
(format string, args ...interface{})
util/cstesting/assert.go:23
↓ 66 callersMethodWithPrepare
WithPrepare executes the statement represented by the Select to create a prepared statement. It returns a custom statement type or an error if there w
sql/dml/connection.go:1070
↓ 64 callersMethodContains
add more functions if needed Contains return true if the Path p can be found within the slice. It must match ID, Scope and Route.
config/path.go:761
↓ 64 callersFunctionNewBackend
NewBackend initializes the global Backend variable. See init()
config/_pkgtpl/config_ui_backend.go:31
↓ 64 callersMethodhasFeature
(g *Generator, f FeatureToggle)
sql/dmlgen/table.go:97
↓ 63 callersMethodEqual
Equal compares another Decimal object for equality. Equality can only succeed when both `Valid` fields are true.
storage/null/decimal.go:202
↓ 63 callersFunctionExpr
Expr adds an unquoted SQL expression to a column, WHERE, HAVING, SET or ON DUPLICATE KEY statement. Each item of an expression gets written into the b
sql/dml/condition.go:333
↓ 63 callersMethodSize
Size returns how big this value is. If you want to just track the cache by number of objects, you may return the size as 1.
storage/lru/lru_cache.go:53
↓ 63 callersMethodWriteRune
(r rune)
sql/dml/builder.go:40
↓ 61 callersMethodMarshalJSON
()
util/conv/caste.go:392
↓ 60 callersMethodFromAlias
FromAlias sets the table and its alias name for a `SELECT ... FROM table AS alias` query.
sql/dml/select.go:162
↓ 59 callersMethodCollectionName
()
sql/dmlgen/table.go:85
↓ 59 callersMethodHelper
()
util/assert/assertions.go:1551
↓ 58 callersMethodJoin
Join creates an INNER join construct. By default, the onConditions are glued together with AND. Same Source and Target Table: Until MariaDB 10.3.1, de
sql/dml/delete.go:85
↓ 57 callersMethodName
Name quotes securely a name. Name("tableName") => `tableName` Name("table`Name") => `tableName` https://dev.mysql.com/doc/refman/5.7/en/identifier
sql/dml/naming.go:295
↓ 56 callersMethodIntn
Intn returns a non-negative pseudo-random int.
util/pseudo/general.go:113
↓ 55 callersMethodBuildValues
BuildValues see IsBuildValues.
sql/dml/insert.go:143
↓ 55 callersMethodLoad
(ctx context.Context, dbm *DBM, primaryKey int32, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated/output_gen.go:3153
↓ 54 callersMethodReplace
Replace instead of INSERT to overwrite old rows. REPLACE is the counterpart to INSERT IGNORE in the treatment of new rows that contain unique key valu
sql/dml/insert.go:137
↓ 53 callersMethodQueryContext
QueryContext executes a query that returns rows, typically a SELECT. The args are for any placeholder parameters in the query.
sql/dml/interfaces.go:55
↓ 52 callersMethodC
Writes a multiline comment and formats it to a max width of 80 chars. It adds automatically the comment prefix `//`. It converts all types to string,
util/codegen/common.go:62
↓ 52 callersMethodSet
Write writes a configuration entry and may return an error
config/service.go:41
↓ 52 callersMethodUnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
sql/dmlgen/dmltestgenerated/dmltestgenerated_easyjson.go:1378
↓ 50 callersMethodAddColumnsAliases
AddColumnsAliases expects a balanced slice of "Column1, Alias1, Column2, Alias2" and adds both to the Columns slice. An imbalanced slice will cause a
sql/dml/select.go:183
↓ 50 callersFunctionassertJSONEquals
(t *testing.T, data []byte, cmp string, from string)
storage/null/string_test.go:285
↓ 47 callersMethodBindStore
BindStore binds a path to a store scope and its ID. Returns a new Path pointer and does not apply the changes to the current Path. Convenience helper
config/path.go:246
↓ 46 callersMethodLike
Like sets the comparisons LIKE condition. Either WHERE or LIKE can be used. Only the first argument supported.
sql/dml/show.go:112
↓ 45 callersFunctionNewInsert
NewInsert creates a new Insert object.
sql/dml/insert.go:115
next →1–100 of 7,620, ranked by callers