MCPcopy Index your code

hub / github.com/crestonbunch/godata / functions

Functions141 in github.com/crestonbunch/godata

↓ 111 callersMethodError
()
errors.go:8
↓ 51 callersMethodDefineOperator
Add an operator to the language. Provide the token, a precedence, and whether the operator is left, right, or not associative.
parser.go:122
↓ 45 callersMethodDefineFunction
Add a function to the language
parser.go:127
↓ 37 callersMethodExposePrimitive
Expose an OData primitive property on an entity. You must provide a corresponding table column in the database.
providers/mysql.go:319
↓ 32 callersFunctionBadRequestError
(message string)
errors.go:12
↓ 31 callersMethodAdd
(pattern string, token int)
parser.go:39
↓ 15 callersMethodExposeEntity
Expose a table in the MySQL database as an entity with the given name in the OData service.
providers/mysql.go:235
↓ 15 callersMethodExposeEntitySet
Expose a queryable collection of entities
providers/mysql.go:243
↓ 15 callersMethodExposeKey
Expose a key on an entity returned by MySQLGoDataProvider.ExposeEntity. This is a necessary step for every entity. You must provide a column in the da
providers/mysql.go:311
↓ 14 callersMethodEmpty
()
parser.go:276
↓ 13 callersMethodEnqueue
(t *Token)
parser.go:301
↓ 13 callersMethodTokenize
(target string)
parser.go:83
↓ 12 callersMethodBindProperty
Adds a NavigationPropertyBinding to two entity sets that are mapped together by a relationship. This SHOULD be done for any entity sets for whom their
providers/mysql.go:300
↓ 12 callersMethodGet
Return the first key in the map. This is how you should get the identifier for single values, e.g. when the path is Employee(1), etc.
request_model.go:127
↓ 12 callersFunctionNotImplementedError
(message string)
errors.go:36
↓ 11 callersMethodInfixToPostfix
Parse the input string of tokens using the given definitions of operators and functions. (Everything else is assumed to be a literal.) Uses the Shunti
parser.go:134
↓ 10 callersMethodDequeue
()
parser.go:314
↓ 9 callersMethodExposeManyToOne
Adds the necessary NavigationProperty tags to an entity to expose a many-to-one relationship from a (Many) -> b (One). A column name must be provided
providers/mysql.go:269
↓ 8 callersFunctionEmptyParser
()
parser.go:116
↓ 8 callersMethodPop
()
parser.go:264
↓ 7 callersFunctionFilterTokenizer
Create a tokenizer capable of tokenizing filter statements
filter_parser.go:50
↓ 7 callersMethodPeek
()
parser.go:272
↓ 7 callersMethodPostfixToTree
Convert a Postfix token queue to a parse tree
parser.go:207
↓ 6 callersFunctionBuildService
Create a new service from a given provider. This step builds lookups for all parts of the data model, so constant time lookups can be performed. This
service.go:71
↓ 6 callersFunctionCompareTokens
Check if two slices of tokens are the same.
filter_parser_test.go:161
↓ 6 callersMethodJson
Serialize the result as JSON for sending to the client. If an error occurs during the serialization, it will be returned.
response_model.go:16
↓ 6 callersFunctionParseExpandString
(expand string)
expand_parser.go:46
↓ 6 callersFunctionParseRequest
Parse a request from the HTTP server and format it into a GoDaataRequest type to be passed to a provider to produce a result.
url_parser.go:10
↓ 5 callersMethodBytes
()
metadata_model.go:28
↓ 5 callersMethodEmpty
()
parser.go:364
↓ 5 callersMethodPush
(t *Token)
parser.go:257
↓ 5 callersFunctionSemanticizeRequest
Compare a request to a given service, and validate the semantics and update the request with semantics included
url_parser.go:26
↓ 4 callersMethodPop
()
parser.go:354
↓ 4 callersMethodString
()
parser.go:280
↓ 3 callersMethodExposeManyToMany
Adds the necessary NavigationProperty tags to entities to expose a many-to-many relationship from a (Many) -> b (Many). A third table must be provided
providers/mysql.go:290
↓ 3 callersMethodLookupEntityType
Lookup an entity type from the service metadata. Accepts a fully qualified name, e.g., ODataService.EntityTypeName or, if unambiguous, accepts a simpl
service.go:327
↓ 3 callersMethodPush
(n *ParseNode)
parser.go:349
↓ 3 callersFunctionSemanticizeExpandQuery
( expand *GoDataExpandQuery, service *GoDataService, entity *GoDataEntityType, )
expand_parser.go:240
↓ 3 callersFunctionSemanticizeSelectQuery
(sel *GoDataSelectQuery, service *GoDataService, entity *GoDataEntityType)
select_parser.go:28
↓ 2 callersMethodBuildMetadata
Build the $metadata file from the entities in the builder. It creates a schema with the given namespace name.
providers/mysql.go:200
↓ 2 callersFunctionBuildMySQLProvider
Build an empty MySQL provider. Provide the connection parameters and the namespace name.
providers/mysql.go:113
↓ 2 callersMethodExposeProperty
Expose an OData property on an entity. You must provide a corresponding table column in the database.
providers/mysql.go:325
↓ 2 callersMethodGetCount
Request the number of entities in a collection, disregarding any filter query parameters.
service.go:27
↓ 2 callersMethodGetMetadata
Get the object model representation from the provider.
service.go:29
↓ 2 callersMethodIgnore
(pattern string, token int)
parser.go:45
↓ 2 callersFunctionInternalServerError
(message string)
errors.go:32
↓ 2 callersFunctionParseExpandItem
(input tokenQueue)
expand_parser.go:98
↓ 2 callersFunctionParseExpandOption
(queue *tokenQueue, item *ExpandItem)
expand_parser.go:158
↓ 2 callersFunctionParseFilterString
Convert an input string from the $filter part of the URL into a parse tree that can be used by providers to create a response.
filter_parser.go:32
↓ 2 callersFunctionParseIdentifiers
(segment string)
url_parser.go:293
↓ 2 callersFunctionParseName
(segment string)
url_parser.go:315
↓ 2 callersFunctionParseOrderByString
(orderby string)
orderby_parser.go:17
↓ 2 callersFunctionParseSearchString
Convert an input string from the $filter part of the URL into a parse tree that can be used by providers to create a response.
search_parser.go:16
↓ 2 callersFunctionParseSelectString
(sel string)
select_parser.go:12
↓ 2 callersFunctionParseSkipString
(skip string)
topskip_parser.go:13
↓ 2 callersFunctionParseTopString
(top string)
topskip_parser.go:7
↓ 2 callersMethodPeek
()
parser.go:360
↓ 2 callersFunctionSearchTokenizer
Create a tokenizer capable of tokenizing filter statements
search_parser.go:33
↓ 2 callersFunctionSemanticizeFilterQuery
( filter *GoDataFilterQuery, service *GoDataService, entity *GoDataEntityType, )
filter_parser.go:139
↓ 2 callersFunctionSemanticizeOrderByQuery
(orderby *GoDataOrderByQuery, service *GoDataService, entity *GoDataEntityType)
orderby_parser.go:41
↓ 2 callersFunctionprepareJsonDict
(d map[string]*GoDataResponseField)
response_model.go:64
↓ 2 callersFunctionprepareJsonString
(s []byte)
response_model.go:54
↓ 1 callersMethodBuildFromClause
Build the from clause in the query, and also return the values to send to the prepared statement.
providers/mysql.go:154
↓ 1 callersMethodBuildSelectClause
Build the select clause to begin the query, and also return the values to send to a prepared statement.
providers/mysql.go:148
↓ 1 callersMethodEmpty
()
parser.go:326
↓ 1 callersFunctionExpandTokenizer
()
expand_parser.go:33
↓ 1 callersFunctionFilterParser
()
filter_parser.go:79
↓ 1 callersMethodGetEntity
Request a single entity from the provider. Should return a response field that contains the value mapping properties to values for the entity.
service.go:20
↓ 1 callersMethodGetEntityCollection
Request a collection of entities from the provider. Should return a response field that contains the value of a slice of every entity in the collectio
service.go:24
↓ 1 callersMethodListenAndServe
Start the service listening on the given address.
service.go:319
↓ 1 callersMethodLookupEntitySet
Lookup an entity set from the service metadata. Accepts a fully qualified name, e.g., ODataService.ContainerName.EntitySetName, ContainerName.EntitySe
service.go:372
↓ 1 callersFunctionParseApplyString
(apply string)
apply_parser.go:3
↓ 1 callersFunctionParseCountString
(count string)
count_parser.go:7
↓ 1 callersFunctionParseInlineCountString
(inlinecount string)
inlinecount_parser.go:8
↓ 1 callersFunctionParseUrlPath
(path string)
url_parser.go:85
↓ 1 callersFunctionParseUrlQuery
(query url.Values)
url_parser.go:207
↓ 1 callersFunctionSearchParser
()
search_parser.go:45
↓ 1 callersFunctionSemanticizePathSegment
(segment *GoDataSegment, service *GoDataService)
url_parser.go:108
↓ 1 callersMethodTokenizeBytes
(target []byte)
parser.go:51
↓ 1 callersMethodbuildCollectionResponse
(request *GoDataRequest)
service.go:198
↓ 1 callersMethodbuildCountResponse
(request *GoDataRequest)
service.go:294
↓ 1 callersMethodbuildEntityResponse
(request *GoDataRequest)
service.go:246
↓ 1 callersMethodbuildMetadataResponse
(request *GoDataRequest)
service.go:189
↓ 1 callersMethodbuildPropertyResponse
(request *GoDataRequest)
service.go:284
↓ 1 callersMethodbuildPropertyValueResponse
(request *GoDataRequest)
service.go:289
↓ 1 callersMethodbuildRefResponse
(request *GoDataRequest)
service.go:313
↓ 1 callersMethodbuildServiceResponse
(request *GoDataRequest)
service.go:193
↓ 1 callersFunctionprepareJsonList
(l []*GoDataResponseField)
response_model.go:87
↓ 1 callersFunctionsemanticizeExpandItem
( item *ExpandItem, service *GoDataService, entity *GoDataEntityType, )
expand_parser.go:303
FunctionAuthorizationMiddleware
()
example/main.go:15
FunctionBenchmarkBuildProvider
(b *testing.B)
service_test.go:239
FunctionBenchmarkBuildTree
(b *testing.B)
parser_test.go:268
FunctionBenchmarkCoffeeDatabase
(b *testing.B)
providers/mysql_test.go:160
FunctionBenchmarkFilterTokenizer
(b *testing.B)
filter_parser_test.go:152
FunctionBenchmarkPEMDAS
(b *testing.B)
parser_test.go:62
FunctionBenchmarkTypicalParseSemanticizeRequest
(b *testing.B)
service_test.go:252
FunctionBenchmarkWildcardParseSemanticizeRequest
(b *testing.B)
service_test.go:289
MethodBuildQuery
(r *GoDataRequest)
providers/mysql.go:121
MethodBuildWhereClause
Build a where clause that can be appended to an SQL query, and also return the values to send to a prepared statement.
providers/mysql.go:160
FunctionCacheMiddleware
()
example/main.go:11
next →1–100 of 141, ranked by callers