_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c5600 | train | // Error returns the error message of an ArangoError. | {
"resource": ""
} | ||
c5601 | train | // Timeout returns true when the given error is a timeout error. | {
"resource": ""
} | ||
c5602 | train | // Temporary returns true when the given error is a temporary error. | {
"resource": ""
} | ||
c5603 | train | // newArangoError creates a new ArangoError with given values. | {
"resource": ""
} | ||
c5604 | train | // IsArangoError returns true when the given error is an ArangoError. | {
"resource": ""
} | ||
c5605 | train | // IsArangoErrorWithCode returns true when the given error is an ArangoError and its Code field is equal to the given code. | {
"resource": ""
} | ||
c5606 | train | // IsArangoErrorWithErrorNum returns true when the given error is an ArangoError and its ErrorNum field is equal to one of the given numbers. | {
"resource": ""
} | ||
c5607 | train | // IsNoLeaderOrOngoing return true if the given error is an ArangoError with code 503 and error number 1496 or 1495 | {
"resource": ""
} | ||
c5608 | train | // IsInvalidArgument returns true if the given error is an InvalidArgumentError. | {
"resource": ""
} | ||
c5609 | train | // IsNoMoreDocuments returns true if the given error is an NoMoreDocumentsError. | {
"resource": ""
} | ||
c5610 | train | // IsCanceled returns true if the given error is the result on a cancelled context. | {
"resource": ""
} | ||
c5611 | train | // IsTimeout returns true if the given error is the result on a deadline that has been exceeded. | {
"resource": ""
} | ||
c5612 | train | // isCausedBy returns true if the given error returns true on the given predicate,
// unwrapping various standard library error wrappers. | {
"resource": ""
} | ||
c5613 | train | // FirstNonNil returns the first error in the slice that is not nil.
// If all errors in the slice are nil, nil is returned. | {
"resource": ""
} | ||
c5614 | train | // dial opens a new connection to the server on the given address. | {
"resource": ""
} | ||
c5615 | train | // Close the connection to the server | {
"resource": ""
} | ||
c5616 | train | // sendChunk sends a single chunk to the server. | {
"resource": ""
} | ||
c5617 | train | // readChunkLoop reads chunks from the connection until it is closed. | {
"resource": ""
} | ||
c5618 | train | // processChunk adds the given chunk to its message and notifies the listener
// when the message is complete. | {
"resource": ""
} | ||
c5619 | train | // IsIdle returns true when the last activity was more than the given timeout ago. | {
"resource": ""
} | ||
c5620 | train | // indexStringToType converts a string representation of an index to IndexType | {
"resource": ""
} | ||
c5621 | train | // newIndex creates a new Index implementation. | {
"resource": ""
} | ||
c5622 | train | // Name returns the name of the index. | {
"resource": ""
} | ||
c5623 | train | // Remove removes the entire index.
// If the index does not exist, a NotFoundError is returned. | {
"resource": ""
} | ||
c5624 | train | // NewLock creates a new lock on the given key. | {
"resource": ""
} | ||
c5625 | train | // Lock tries to lock the lock.
// If it is not possible to lock, an error is returned.
// If the lock is already held by me, an error is returned. | {
"resource": ""
} | ||
c5626 | train | // Unlock tries to unlock the lock.
// If it is not possible to unlock, an error is returned.
// If the lock is not held by me, an error is returned. | {
"resource": ""
} | ||
c5627 | train | // IsLocked return true if the lock is held by me. | {
"resource": ""
} | ||
c5628 | train | // renewLock keeps renewing the lock until the given context is canceled. | {
"resource": ""
} | ||
c5629 | train | // User opens a connection to an existing user.
// If no user with given name exists, an NotFoundError is returned. | {
"resource": ""
} | ||
c5630 | train | // UserExists returns true if a database with given name exists. | {
"resource": ""
} | ||
c5631 | train | // Users returns a list of all users found by the client. | {
"resource": ""
} | ||
c5632 | train | // CreateUser creates a new user with given name and opens a connection to it.
// If a user with given name already exists, a DuplicateError is returned. | {
"resource": ""
} | ||
c5633 | train | // newEdgeCollection creates a new EdgeCollection implementation. | {
"resource": ""
} | ||
c5634 | train | // rawCollection returns a standard document implementation of Collection
// for this edge collection. | {
"resource": ""
} | ||
c5635 | train | // Statistics returns the number of documents and additional statistical information about the collection. | {
"resource": ""
} | ||
c5636 | train | // SetBody sets the content of the request.
// The protocol of the connection determines what kinds of marshalling is taking place.
// When multiple bodies are given, they are merged, with fields in the first document prevailing. | {
"resource": ""
} | ||
c5637 | train | // requestType converts method to request type. | {
"resource": ""
} | ||
c5638 | train | // newCursor creates a new Cursor implementation. | {
"resource": ""
} | ||
c5639 | train | // Name returns the name of the collection. | {
"resource": ""
} | ||
c5640 | train | // Close deletes the cursor and frees the resources associated with it. | {
"resource": ""
} | ||
c5641 | train | // ReadDocument reads the next document from the cursor.
// The document data is stored into result, the document meta data is returned.
// If the cursor has no more documents, a NoMoreDocuments error is returned. | {
"resource": ""
} | ||
c5642 | train | // SetQuery sets a single query argument of the request.
// Any existing query argument with the same key is overwritten. | {
"resource": ""
} | ||
c5643 | train | // SetHeader sets a single header arguments of the request.
// Any existing header argument with the same key is overwritten. | {
"resource": ""
} | ||
c5644 | train | // WithAllowNoLeader is used to configure a context to make AreAgentsHealthy
// accept the situation where it finds 0 leaders. | {
"resource": ""
} | ||
c5645 | train | // hasAllowNoLeader returns true when the given context was
// prepared with WithAllowNoLeader. | {
"resource": ""
} | ||
c5646 | train | // AreAgentsHealthy performs a health check on all given agents.
// Of the given agents, 1 must respond as leader and all others must redirect to the leader.
// The function returns nil when all agents are healthy or an error when something is wrong. | {
"resource": ""
} | ||
c5647 | train | // IsSameEndpoint returns true when the 2 given endpoints
// refer to the same server. | {
"resource": ""
} | ||
c5648 | train | // Indexes returns a list of all indexes in the collection. | {
"resource": ""
} | ||
c5649 | train | // newUser creates a new User implementation. | {
"resource": ""
} | ||
c5650 | train | // Remove removes the entire user.
// If the user does not exist, a NotFoundError is returned. | {
"resource": ""
} | ||
c5651 | train | // Update updates individual properties of the user.
// If the user does not exist, a NotFoundError is returned. | {
"resource": ""
} | ||
c5652 | train | // AccessibleDatabases returns a list of all databases that can be accessed by this user. | {
"resource": ""
} | ||
c5653 | train | // SetDatabaseAccess sets the access this user has to the given database.
// Pass a `nil` database to set the default access this user has to any new database.
// This function requires ArangoDB 3.2 and up for access value `GrantReadOnly`. | {
"resource": ""
} | ||
c5654 | train | // GetDatabaseAccess gets the access rights for this user to the given database.
// Pass a `nil` database to get the default access this user has to any new database.
// This function requires ArangoDB 3.2 and up. | {
"resource": ""
} | ||
c5655 | train | // SetCollectionAccess sets the access this user has to a collection.
// If you pass a `Collection`, it will set access for that collection.
// If you pass a `Database`, it will set the default collection access for that database.
// If you pass `nil`, it will set the default collection access for the default database.... | {
"resource": ""
} | ||
c5656 | train | // GetCollectionAccess gets the access rights for this user to the given collection.
// If you pass a `Collection`, it will get access for that collection.
// If you pass a `Database`, it will get the default collection access for that database.
// If you pass `nil`, it will get the default collection access for the de... | {
"resource": ""
} | ||
c5657 | train | // RemoveCollectionAccess removes the access this user has to a collection.
// If you pass a `Collection`, it will removes access for that collection.
// If you pass a `Database`, it will removes the default collection access for that database.
// If you pass `nil`, it will removes the default collection access for the... | {
"resource": ""
} | ||
c5658 | train | // getDatabaseAndCollectionName returns database-name, collection-name from given access target. | {
"resource": ""
} | ||
c5659 | train | // WithQueryCount is used to configure a context that will set the Count of a query request,
// If value is not given it defaults to true. | {
"resource": ""
} | ||
c5660 | train | // WithQueryBatchSize is used to configure a context that will set the BatchSize of a query request, | {
"resource": ""
} | ||
c5661 | train | // WithQueryCache is used to configure a context that will set the Cache of a query request,
// If value is not given it defaults to true. | {
"resource": ""
} | ||
c5662 | train | // WithQueryMemoryLimit is used to configure a context that will set the MemoryList of a query request, | {
"resource": ""
} | ||
c5663 | train | // WithQueryTTL is used to configure a context that will set the TTL of a query request, | {
"resource": ""
} | ||
c5664 | train | // WithQuerySatelliteSyncWait sets the satelliteSyncWait query value on the query cursor request | {
"resource": ""
} | ||
c5665 | train | // WithQueryFullCount is used to configure whether the query returns the full count of results
// before the last LIMIT statement | {
"resource": ""
} | ||
c5666 | train | // applyContextSettings fills fields in the queryRequest from the given context. | {
"resource": ""
} | ||
c5667 | train | // Graph opens a connection to an existing graph within the database.
// If no graph with given name exists, an NotFoundError is returned. | {
"resource": ""
} | ||
c5668 | train | // Graphs returns a list of all graphs in the database. | {
"resource": ""
} | ||
c5669 | train | // CreateGraph creates a new graph with given name and options, and opens a connection to it.
// If a graph with given name already exists within the database, a DuplicateError is returned. | {
"resource": ""
} | ||
c5670 | train | // Clone creates a new request containing the same data as this request | {
"resource": ""
} | ||
c5671 | train | // SetBody sets the content of the request.
// The protocol of the connection determines what kinds of marshalling is taking place. | {
"resource": ""
} | ||
c5672 | train | // Contains returns true if the given protocol is contained in the given set, false otherwise. | {
"resource": ""
} | ||
c5673 | train | // ContainsAny returns true if any of the given protocols is contained in the given set, false otherwise. | {
"resource": ""
} | ||
c5674 | train | // Shutdown a specific server, optionally removing it from its cluster. | {
"resource": ""
} | ||
c5675 | train | // EdgeCollection opens a connection to an existing edge-collection within the graph.
// If no edge-collection with given name exists, an NotFoundError is returned. | {
"resource": ""
} | ||
c5676 | train | // EdgeCollectionExists returns true if an edge-collection with given name exists within the graph. | {
"resource": ""
} | ||
c5677 | train | // EdgeCollections returns all edge collections of this graph | {
"resource": ""
} | ||
c5678 | train | // newView creates a new View implementation. | {
"resource": ""
} | ||
c5679 | train | // ArangoSearchView returns this view as an ArangoSearch view.
// When the type of the view is not ArangoSearch, an error is returned. | {
"resource": ""
} | ||
c5680 | train | // Remove removes the entire view.
// If the view does not exist, a NotFoundError is returned. | {
"resource": ""
} | ||
c5681 | train | // newCluster creates a new Cluster implementation. | {
"resource": ""
} | ||
c5682 | train | // MoveShard moves a single shard of the given collection from server `fromServer` to
// server `toServer`. | {
"resource": ""
} | ||
c5683 | train | // CleanOutServer triggers activities to clean out a DBServers. | {
"resource": ""
} | ||
c5684 | train | // IsCleanedOut checks if the dbserver with given ID has been cleaned out. | {
"resource": ""
} | ||
c5685 | train | // NumberOfServers returns the number of coordinator & dbservers in a clusters and the
// ID's of cleaned out servers. | {
"resource": ""
} | ||
c5686 | train | // RemoveServer is a low-level option to remove a server from a cluster.
// This function is suitable for servers of type coordinator or dbserver.
// The use of `ClientServerAdmin.Shutdown` is highly recommended above this function. | {
"resource": ""
} | ||
c5687 | train | // UnmarshalJSON loads InventoryCollectionParameters from json | {
"resource": ""
} | ||
c5688 | train | // MarshalJSON marshals InventoryCollectionParameters to arangodb json representation | {
"resource": ""
} | ||
c5689 | train | // UnmarshalJSON marshals InventoryCollectionParameters to arangodb json representation | {
"resource": ""
} | ||
c5690 | train | // NewAgency creates an Agency accessor for the given connection.
// The connection must contain the endpoints of one or more agents, and only agents. | {
"resource": ""
} | ||
c5691 | train | // ReadKey reads the value of a given key in the agency. | {
"resource": ""
} | ||
c5692 | train | // WriteKeyIfEmpty writes the given value with the given key only if the key was empty before. | {
"resource": ""
} | ||
c5693 | train | // WriteKeyIfEqualTo writes the given new value with the given key only if the existing value for that key equals
// to the given old value. | {
"resource": ""
} | ||
c5694 | train | // write writes the given value with the given key only if the given condition is fullfilled. | {
"resource": ""
} | ||
c5695 | train | // RemoveKeyIfEqualTo removes the given key only if the existing value for that key equals
// to the given old value. | {
"resource": ""
} | ||
c5696 | train | // Register a URL to receive notification callbacks when the value of the given key changes | {
"resource": ""
} | ||
c5697 | train | // CreateArangodJwtAuthorizationHeader calculates a JWT authorization header, for authorization
// of a request to an arangod server, based on the given secret.
// If the secret is empty, nothing is done.
// Use the result of this function as input for driver.RawAuthentication. | {
"resource": ""
} | ||
c5698 | train | // decodeObjectFields decodes fields from the given body into a objValue of kind struct. | {
"resource": ""
} | ||
c5699 | train | // decodeMapFields decodes fields from the given body into a mapValue of kind map. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.