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
↓ 7 callers
Method
Find
Find returns a Group pointer or index -1 if group not found. Route must be a single part. E.g. if you have path "a/b/c" route would be in this case "b
config/elements.go:403
↓ 7 callers
Method
First
First returns the first column from the slice. Guaranteed to a non-nil return value.
sql/ddl/columns.go:334
↓ 7 callers
Method
IsAutoIncrement
IsAutoIncrement checks if column has an auto increment property
sql/ddl/columns.go:507
↓ 7 callers
Method
IsDir
()
util/pseudo/bindata.go:180
↓ 7 callers
Method
IsOneToOne
IsOneToOne
sql/ddl/foreign_key.go:332
↓ 7 callers
Method
IsWebSiteOrStore
IsWebSiteOrStore returns true if the type is either Website or Store.
store/scope/type.go:109
↓ 7 callers
Method
LoadNullString
LoadNullString executes the query and returns the first row parsed into the current type. `Found` might be false if there are no matching rows.
sql/dml/dbr.go:1140
↓ 7 callers
Function
MakeDecimalBytes
MakeDecimalBytes parses b to create a new Decimal. b must contain ASCII numbers. If b contains null/NULL the returned object represents that value. Th
storage/null/decimal.go:109
↓ 7 callers
Function
MakeIPRange
MakeIPRange creates a new instance.
net/ranges.go:32
↓ 7 callers
Method
Month
Month generates month name
util/pseudo/dates.go:26
↓ 7 callers
Function
NewColumnMap
NewColumnMap exported for testing reasons.
sql/dml/mapper.go:77
↓ 7 callers
Function
NewConnPool
NewConnPool instantiates a ConnPool for a given database/sql connection and event receiver. An invalid driver name causes a NotImplemented error to be
sql/dml/connection.go:432
↓ 7 callers
Function
ObjectsAreEqual
* Helper functions */ ObjectsAreEqual determines if two objects are considered equal. This function does no assertion of any kind.
util/assert/assertions.go:42
↓ 7 callers
Method
Open
(name string)
sql/dml/connection_callback.go:50
↓ 7 callers
Method
Optimize
Optimize optimizes a table. https://mariadb.com/kb/en/optimize-table/
sql/ddl/table.go:395
↓ 7 callers
Method
ParseFromRequest
ParseFromRequest same as Parse but extracts the token from a request. First it searches for the token bearer in the header HTTPHeaderAuthorization. If
util/csjwt/jwthttp/request.go:60
↓ 7 callers
Method
PutEvent
PutEvent inserts the eo into the trie at the given key, replacing any existing items. It returns true if the put adds a new fm, false if it replaces a
config/route_trie.go:240
↓ 7 callers
Method
Recursive
Recursive common table expressions are one having a subquery that refers to its own name. The WITH clause must begin with WITH RECURSIVE if any CTE in
sql/dml/with.go:116
↓ 7 callers
Method
Reset
()
config/observer/proto.pb.go:73
↓ 7 callers
Method
Scan
Scan implements the Scanner interface. Approx. >3x times faster than database/sql.convertAssign.
storage/null/int64.go:57
↓ 7 callers
Method
Scan
Scan implements the Scanner interface. Approx. >3x times faster than database/sql.convertAssign.
storage/null/float64.go:56
↓ 7 callers
Method
Scan
Scan implements the Scanner interface. Approx. >3x times faster than database/sql.convertAssign.
storage/null/int32.go:58
↓ 7 callers
Method
Scan
Scan implements the Scanner interface. Approx. >3x times faster than database/sql.convertAssign.
storage/null/int8.go:60
↓ 7 callers
Method
Scan
Scan implements the Scanner interface. Approx. >3x times faster than database/sql.convertAssign.
storage/null/int16.go:60
↓ 7 callers
Method
Stores
Stores returns a cached Store slice containing all related websites and groups. You shall not modify the returned slice.
store/service.go:622
↓ 7 callers
Method
StrType
StrType converts the underlying Type to one of the three available type strings from the database table `core_config_data`.
store/scope/type.go:69
↓ 7 callers
Method
String
String returns the string representation of the fixed with decimal. Returns the word `NULL` if the current value is not valid, for now.
storage/null/decimal.go:235
↓ 7 callers
Method
Sum
Sum calculates the hash of data and appends the current hash to appendTo and returns the resulting slice. It does not change the underlying hash state
util/hashpool/hashpool.go:54
↓ 7 callers
Method
ToString
()
sql/dml/example_columnMapper_test.go:56
↓ 7 callers
Function
ToStringSlice
(i interface{})
util/conv/cast.go:80
↓ 7 callers
Method
Update
Update gets used in the top level statement.
sql/dml/with.go:91
↓ 7 callers
Method
Upsert
Upsert adds or updates a new table into the internal cache. If a table already exists, then the new table gets applied. The ListenerBuckets gets merge
sql/ddl/tables.go:525
↓ 7 callers
Method
ViewPrimaryKeys
ViewPrimaryKeys is a special function for views which might be able to figure out the primary key columns. Neither MySQL nor MariaDB do not report whi
sql/ddl/columns.go:226
↓ 7 callers
Method
WithIsCountryAllowedByIP
WithIsCountryAllowedByIP queries the AllowedCountries slice to retrieve a list of countries for a scope and then uses the function IsAllowedFunc to ch
net/geoip/service_mw.go:83
↓ 7 callers
Method
appendFloat64s
(args ...float64)
sql/dml/argument_encoder.go:158
↓ 7 callers
Method
appendInts
(args ...int)
sql/dml/argument_encoder.go:116
↓ 7 callers
Method
appendUint64s
(args ...uint64)
sql/dml/argument_encoder.go:144
↓ 7 callers
Method
applySort
setSort applies to last n items the sort order `sort` in reverse iteration. Usuallay `lastNindexes` is len(object) because we decrement 1 from `lastNi
sql/dml/naming.go:177
↓ 7 callers
Function
assertBool
(t *testing.T, b Bool, from string)
storage/null/bool_test.go:249
↓ 7 callers
Function
assertInt16
(t *testing.T, i Int16, from string)
storage/null/int16_test.go:259
↓ 7 callers
Function
assertInt32
(t *testing.T, i Int32, from string)
storage/null/int32_test.go:258
↓ 7 callers
Function
assertInt8
(t *testing.T, i Int8, from string)
storage/null/int8_test.go:259
↓ 7 callers
Function
assertNullBool
(t *testing.T, b Bool, from string)
storage/null/bool_test.go:267
↓ 7 callers
Function
assertNullInt16
(t *testing.T, i Int16, from string)
storage/null/int16_test.go:268
↓ 7 callers
Function
assertNullInt32
(t *testing.T, i Int32, from string)
storage/null/int32_test.go:267
↓ 7 callers
Function
assertNullInt64
(t *testing.T, i Int64, from string)
storage/null/int64_test.go:271
↓ 7 callers
Function
assertNullInt8
(t *testing.T, i Int8, from string)
storage/null/int8_test.go:268
↓ 7 callers
Function
assertNullUint16
(t *testing.T, i Uint16, from string)
storage/null/uint16_test.go:256
↓ 7 callers
Function
assertNullUint32
(t *testing.T, i Uint32, from string)
storage/null/uint32_test.go:256
↓ 7 callers
Function
assertNullUint64
(t *testing.T, i Uint64, from string)
storage/null/uint64_test.go:251
↓ 7 callers
Function
assertNullUint8
(t *testing.T, i Uint8, from string)
storage/null/uint8_test.go:256
↓ 7 callers
Function
assertTime
(t *testing.T, ti Time, from string)
storage/null/time_test.go:223
↓ 7 callers
Function
assertUint16
(t *testing.T, i Uint16, from string)
storage/null/uint16_test.go:247
↓ 7 callers
Function
assertUint32
(t *testing.T, i Uint32, from string)
storage/null/uint32_test.go:247
↓ 7 callers
Function
assertUint64
(t *testing.T, i Uint64, from string)
storage/null/uint64_test.go:242
↓ 7 callers
Function
assertUint8
(t *testing.T, i Uint8, from string)
storage/null/uint8_test.go:247
↓ 7 callers
Function
astNodeName
(n ast.Node)
sql/dmlgen/proto.go:621
↓ 7 callers
Method
closeWithError
(err error)
sql/myreplicator/binlogstreamer.go:68
↓ 7 callers
Function
columnsIsEligibleForUpsert
columnsIsEligibleForUpsert filters out all current-timestamp, virtual, system versioned and auto_increment columns for update or insert operations.
sql/ddl/columns.go:202
↓ 7 callers
Method
findScopedConfig
findScopedConfig used in functional options to look up if a parent configuration exists and if not creates a newScopedConfig(). The scope.DefaultTypeI
net/geoip/service_generic.go:327
↓ 7 callers
Method
findScopedConfig
findScopedConfig used in functional options to look up if a parent configuration exists and if not creates a newScopedConfig(). The scope.DefaultTypeI
net/ratelimit/service_generic.go:327
↓ 7 callers
Method
fullNameWithPrefix
(gender string)
util/pseudo/names.go:94
↓ 7 callers
Function
indirect
From html/template/content.go Copyright 2011 The Go Authors. All rights reserved. indirect returns the value, after dereferencing as many times as nec
util/conv/caste.go:354
↓ 7 callers
Function
isValidIdentifier
(s string)
sql/dml/naming.go:417
↓ 7 callers
Function
join
(parts ...string)
util/pseudo/fake.go:316
↓ 7 callers
Function
makeArgBytes
()
sql/dml/argument_encoder.go:42
↓ 7 callers
Function
mustGetTestService
(opts ...geoip.Option)
net/geoip/service_integration_test.go:40
↓ 7 callers
Method
mySQLToGoType
mySQLToGoType calculates the data type of the field DataType. For example bigint, smallint, tinyint will result in "int". If withNull is true the retu
sql/dmlgen/typemap.go:419
↓ 7 callers
Function
newMMWS
(t TransCacher, userID, licenseKey string, hc *http.Client)
net/geoip/maxmindwebservice/webservice.go:53
↓ 7 callers
Function
parseHeaderList
parseHeaderList tokenize + normalize a string containing a list of headers
net/cors/utils.go:48
↓ 7 callers
Method
sqlAddShouldWait
(w io.Writer)
sql/ddl/tables.go:73
↓ 7 callers
Function
sqlWriteOrderBy
(w *bytes.Buffer, orderBys ids, br bool)
sql/dml/builder.go:224
↓ 7 callers
Method
updateScopedConfig
updateScopedConfig used in functional options to store a scoped configuration in the internal cache. This function gets called in a function option at
net/geoip/service_generic.go:359
↓ 7 callers
Method
updateScopedConfig
updateScopedConfig used in functional options to store a scoped configuration in the internal cache. This function gets called in a function option at
net/ratelimit/service_generic.go:359
↓ 6 callers
Method
Algorithm
Algorithm returns the supported algorithm but not the bit size. Returns 0 on error, or one of the constants: ES, HS or RS.
util/csjwt/keys.go:83
↓ 6 callers
Method
AppendFQ
AppendFQ validates the Path and appends it to the buffer.
config/path.go:316
↓ 6 callers
Method
BeginTx
BeginTx starts a transaction. The provided context is used until the transaction is committed or rolled back. If the context is canceled, the sql pac
sql/dml/connection.go:950
↓ 6 callers
Method
ConfigByScope
ConfigByScope creates a new scoped configuration depending on the Service.useWebsite flag. If useWebsite==true the scoped configuration contains only
net/geoip/service_generic.go:146
↓ 6 callers
Method
ConfigByScopedGetter
ConfigByScopedGetter returns the internal configuration depending on the ScopedGetter. Mainly used within the middleware. If you have applied the opt
net/internal/scopedservice/service_generic.go:182
↓ 6 callers
Method
Contains
Contains returns true if the target int64 t is in the slice.
util/slices/int64.go:83
↓ 6 callers
Function
DecodeSegment
DecodeSegment decodes JWT specific base64url encoding with padding stripped. Returns a new byte slice. Error behaviour: NotValid.
util/csjwt/encodeDecode.go:134
↓ 6 callers
Method
Drop
Drop drops, if exists, the table or the view. To use a custom connection, call WithDB before.
sql/ddl/table.go:376
↓ 6 callers
Method
Each
Each will run function f on all items in []* CustomerEntity . Auto generated via dmlgen.
sql/dmlgen/dmltestgenerated5/tables_gen.go:1178
↓ 6 callers
Method
Error
()
sql/myreplicator/event.go:56
↓ 6 callers
Method
Exec
(args []driver.Value)
sql/dml/connection_callback.go:254
↓ 6 callers
Method
FmtNumber
FmtNumber formats a number according to the number format. Internal rounding will be applied. Returns the number bytes written or an error. Thread saf
i18n/number.go:222
↓ 6 callers
Method
FromSelect
FromSelect creates an "INSERT INTO `table` SELECT ..." statement from a previously created SELECT statement.
sql/dml/insert.go:212
↓ 6 callers
Method
FromString
FromString parses as string in the format: mysql-bin.000002;236423 means filename;position.
sql/ddl/replication.go:125
↓ 6 callers
Method
FromTables
FromTables specifies additional tables to delete from besides the default table.
sql/dml/delete.go:69
↓ 6 callers
Method
GoCamelMaybePrivate
(fieldName string)
sql/dmlgen/table.go:77
↓ 6 callers
Method
Insert
(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc)
sql/dmlgen/dmltestgenerated4/db_part_query_gen.go:350
↓ 6 callers
Method
Insert
Insert will place a new item at position i. Auto generated via dmlgen.
store/entities_gen.go:145
↓ 6 callers
Method
Int64s
Int64s converts the underlying byte slice into an int64 slice using v.CSVComma as a separator. The result gets append to argument `ret`.
config/value.go:367
↓ 6 callers
Method
Ints
Ints converts the underlying byte slice into an int64 slice using v.CSVComma as a separator. The result gets append to argument `ret`.
config/value.go:314
↓ 6 callers
Method
IsFloat
IsFloat returns true if a column is of one of the types: decimal, double or float.
sql/ddl/columns.go:534
↓ 6 callers
Method
IsOneToMany
IsOneToMany returns true for a oneToMany or switching the tables for a ManyToOne relationship
sql/ddl/foreign_key.go:342
↓ 6 callers
Method
LoadFloat64s
LoadFloat64s executes the query and returns the values appended to slice dest. It ignores and skips NULL values.
sql/dml/dbr.go:1263
↓ 6 callers
Method
LoadNullUint64
LoadNullUint64 executes the query and returns the first row parsed into the current type. `Found` might be false if there are no matching rows. This f
sql/dml/dbr.go:1126
↓ 6 callers
Method
LoadStrings
LoadStrings executes the query and returns the values appended to slice dest. It ignores and skips NULL values.
sql/dml/dbr.go:1298
↓ 6 callers
Method
LoadUint64s
LoadUint64s executes the query and returns the values appended to slice dest. It ignores and skips NULL values.
sql/dml/dbr.go:1226
← previous
next →
501–600 of 7,620, ranked by callers