Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corestoreio/pkg
/ functions
Functions
7,620 in github.com/corestoreio/pkg
⨍
Functions
7,620
◇
Types & classes
965
↓ 925 callers
Method
String
String returns the name of the handler
sql/mycanal/handler.go:33
↓ 850 callers
Method
Errorf
(format string, args ...interface{})
util/assert/assertions.go:28
↓ 477 callers
Method
Column
Column returns the current column name after calling `Next`.
sql/dml/mapper.go:297
↓ 459 callers
Function
Column
Column adds a new condition.
sql/dml/condition.go:324
↓ 447 callers
Method
Pln
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 callers
Method
Where
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 callers
Method
WithID
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 callers
Method
WriteString
WriteString converts a string into []bytes and outputs it. No formatting feature available.
net/response/response.go:127
↓ 297 callers
Method
From
From sets the table for the SELECT FROM part.
sql/dml/select.go:155
↓ 296 callers
Method
Fatal
(args ...interface{})
net/cors/backendcors/options_test.go:84
↓ 258 callers
Method
ExecContext
ExecContext executes a query that doesn't return rows.
sql/dml/interfaces.go:40
↓ 247 callers
Method
Fatalf
(format string, args ...interface{})
util/cstesting/helpers.go:25
↓ 244 callers
Method
Lock
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 callers
Method
PlaceHolder
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 callers
Method
In
()
sql/dml/condition.go:376
↓ 227 callers
Method
WithCacheKey
WithCacheKey allows to set a custom cache key in generated code to change the underlying SQL query.
sql/dml/dbr.go:297
↓ 221 callers
Function
NewSelect
NewSelect creates a new Select object.
sql/dml/select.go:55
↓ 206 callers
Method
New
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 callers
Method
WriteByte
(c byte)
sql/dml/builder.go:39
↓ 196 callers
Method
MustTable
MustTable same as Table function but panics when the table cannot be found or any other error occurs.
sql/ddl/tables.go:488
↓ 194 callers
Method
Close
()
sql/dml/interfaces.go:81
↓ 189 callers
Method
WithDBR
(db QueryExecPreparer)
sql/dml/dbr.go:248
↓ 188 callers
Method
Error
()
sql/dml/errors.go:31
↓ 180 callers
Method
Get
(p Path)
config/service.go:499
↓ 178 callers
Method
AddColumns
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 callers
Method
Err
Err returns the delayed error from one of the scans and parsings. Function is idempotent.
sql/dml/mapper.go:292
↓ 170 callers
Method
Get
Get must return an errors.NotFound if a key does not exists.
net/geoip/maxmindwebservice/webservice.go:36
↓ 158 callers
Method
ServeHTTP
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 callers
Method
Int
(i int)
sql/dml/interpolate.go:202
↓ 145 callers
Function
maybePanic
(err error)
storage/null/encoding_test.go:21
↓ 142 callers
Method
Debug
Debug writes the column names with their values into `w`. The output format might change.
sql/dml/mapper.go:1071
↓ 140 callers
Method
Len
()
eav/attribute.go:113
↓ 137 callers
Function
compareToSQL2
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 callers
Function
compareToSQL
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 callers
Method
Unmarshal
([]byte)
storage/objcache/service.go:318
↓ 125 callers
Method
Equal
Equal hashes data and compares it with MAC for equality without leaking timing information.
util/hashpool/hashpool.go:80
↓ 122 callers
Method
WithQueryBuilder
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 callers
Method
Int64
(i int64)
sql/dml/interpolate.go:204
↓ 119 callers
Method
Select
Select gets used in the top level statement.
sql/dml/with.go:85
↓ 114 callers
Function
sl
(s ...string)
config/observer/validator_test.go:136
↓ 109 callers
Method
TestWithArgs
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 callers
Method
Context
()
net/csgrpc/scope/runmode_test.go:161
↓ 107 callers
Method
Header
()
net/compress/compress.go:53
↓ 106 callers
Method
Str
(s string)
sql/dml/interpolate.go:210
↓ 104 callers
Method
Bytes
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 callers
Method
Next
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 callers
Function
bindataRead
(data []byte, name string)
util/pseudo/bindata.go:122
↓ 102 callers
Method
Equal
()
sql/dml/condition.go:416
↓ 100 callers
Function
NewAMD
NewAMD NewAttributeModelDef NewAttributeModelDef creates a new attribute model definition
_codegen/config.go:163
↓ 99 callers
Method
Equal
Equal compares the scope and the route
config/path.go:457
↓ 96 callers
Method
FakeData
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 callers
Method
Write
(p []byte)
sql/dml/builder.go:41
↓ 92 callers
Method
Uint32
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 callers
Method
Marshal
()
storage/objcache/service.go:249
↓ 90 callers
Method
Empty
Empty empties all the fields of the current object. Also known as Reset.
store/entities_gen.go:35
↓ 89 callers
Method
Start
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 callers
Method
Error
Error implements error interface and returns the last error.
config/value.go:570
↓ 87 callers
Method
IsNull
IsNull checks if column can have null values
sql/ddl/columns.go:492
↓ 87 callers
Function
NewValue
NewValue makes a new non-pointer value type.
config/value.go:73
↓ 86 callers
Method
EntityName
()
sql/dmlgen/table.go:89
↓ 86 callers
Method
OrderBy
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 callers
Method
Status
Status returns the HTTP status of the request, or 0 if one has not yet been sent.
net/responseproxy/tee_writer.go:16
↓ 82 callers
Function
Fail
Fail reports a failure through
util/assert/assertions.go:206
↓ 75 callers
Method
Close
Close closes the underlying object
net/geoip/country.go:39
↓ 73 callers
Method
Alias
Alias sets the aliased name for the `Name` field.
sql/dml/naming.go:68
↓ 73 callers
Method
Int64s
(i ...int64)
sql/dml/interpolate.go:205
↓ 73 callers
Method
NewToken
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 callers
Method
Set
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 callers
Method
Load
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 callers
Method
Put
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 callers
Method
NullString
(nv null.String)
sql/dml/interpolate.go:222
↓ 68 callers
Method
ToSQL
()
sql/dml/builder.go:48
↓ 67 callers
Method
Errorf
(format string, args ...interface{})
util/cstesting/assert.go:23
↓ 66 callers
Method
WithPrepare
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 callers
Method
Contains
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 callers
Function
NewBackend
NewBackend initializes the global Backend variable. See init()
config/_pkgtpl/config_ui_backend.go:31
↓ 64 callers
Method
hasFeature
(g *Generator, f FeatureToggle)
sql/dmlgen/table.go:97
↓ 63 callers
Method
Equal
Equal compares another Decimal object for equality. Equality can only succeed when both `Valid` fields are true.
storage/null/decimal.go:202
↓ 63 callers
Function
Expr
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 callers
Method
Size
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 callers
Method
WriteRune
(r rune)
sql/dml/builder.go:40
↓ 61 callers
Method
MarshalJSON
()
util/conv/caste.go:392
↓ 60 callers
Method
FromAlias
FromAlias sets the table and its alias name for a `SELECT ... FROM table AS alias` query.
sql/dml/select.go:162
↓ 59 callers
Method
CollectionName
()
sql/dmlgen/table.go:85
↓ 59 callers
Method
Helper
()
util/assert/assertions.go:1551
↓ 58 callers
Method
Join
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 callers
Method
Name
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 callers
Method
Intn
Intn returns a non-negative pseudo-random int.
util/pseudo/general.go:113
↓ 55 callers
Method
BuildValues
BuildValues see IsBuildValues.
sql/dml/insert.go:143
↓ 55 callers
Method
Load
(ctx context.Context, dbm *DBM, primaryKey int32, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated/output_gen.go:3153
↓ 54 callers
Method
Replace
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 callers
Method
QueryContext
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 callers
Method
C
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 callers
Method
Set
Write writes a configuration entry and may return an error
config/service.go:41
↓ 52 callers
Method
UnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
sql/dmlgen/dmltestgenerated/dmltestgenerated_easyjson.go:1378
↓ 50 callers
Method
AddColumnsAliases
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 callers
Function
assertJSONEquals
(t *testing.T, data []byte, cmp string, from string)
storage/null/string_test.go:285
↓ 47 callers
Method
BindStore
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 callers
Method
Like
Like sets the comparisons LIKE condition. Either WHERE or LIKE can be used. Only the first argument supported.
sql/dml/show.go:112
↓ 45 callers
Function
NewInsert
NewInsert creates a new Insert object.
sql/dml/insert.go:115
next →
1–100 of 7,620, ranked by callers