_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c5700 | train | // newDatabase creates a new Database implementation. | {
"resource": ""
} | ||
c5701 | train | // Info fetches information about the database. | {
"resource": ""
} | ||
c5702 | train | // Remove removes the entire database.
// If the database does not exist, a NotFoundError is returned. | {
"resource": ""
} | ||
c5703 | train | // Query performs an AQL query, returning a cursor used to iterate over the returned documents. | {
"resource": ""
} | ||
c5704 | train | // ValidateQuery validates an AQL query.
// When the query is valid, nil returned, otherwise an error is returned.
// The query is not executed. | {
"resource": ""
} | ||
c5705 | train | // Database opens a connection to an existing database.
// If no database with given name exists, an NotFoundError is returned. | {
"resource": ""
} | ||
c5706 | train | // AccessibleDatabases returns a list of all databases that can be accessed by the authenticated user. | {
"resource": ""
} | ||
c5707 | train | // listDatabases returns a list of databases using a GET to the given path. | {
"resource": ""
} | ||
c5708 | train | // CreateDatabase creates a new database with given name and opens a connection to it.
// If the a database with given name already exists, a DuplicateError is returned. | {
"resource": ""
} | ||
c5709 | train | // Cluster provides access to cluster wide specific operations.
// To use this interface, an ArangoDB cluster is required.
// If this method is a called without a cluster, a PreconditionFailed error is returned. | {
"resource": ""
} | ||
c5710 | train | // CreateBatch creates a "batch" to prevent WAL file removal and to take a snapshot | {
"resource": ""
} | ||
c5711 | train | // Extend the lifetime of an existing batch on the server | {
"resource": ""
} | ||
c5712 | train | // Delete an existing dump batch | {
"resource": ""
} | ||
c5713 | train | // NewConnection creates a new Velocystream connection based on the given configuration settings. | {
"resource": ""
} | ||
c5714 | train | // newVSTConnection creates a new Velocystream connection for a single endpoint and the remainder of the given configuration settings. | {
"resource": ""
} | ||
c5715 | train | // closes the response channel if needed. | {
"resource": ""
} | ||
c5716 | train | // addChunk adds the given chunks to the list of chunks of the message.
// If the given chunk is the first chunk, the expected number of chunks is recorded. | {
"resource": ""
} | ||
c5717 | train | // assemble tries to assemble the message data from all chunks.
// If not all chunks are available yet, nothing is done and false
// is returned.
// If all chunks are available, the Data field is build and set and true is returned. | {
"resource": ""
} | ||
c5718 | train | // IsReady returns true if the IsReady flag of all collections is set. | {
"resource": ""
} | ||
c5719 | train | // PlanVersion returns the plan version of the first collection in the given inventory. | {
"resource": ""
} | ||
c5720 | train | // CollectionByName returns the InventoryCollection with given name.
// Return false if not found. | {
"resource": ""
} | ||
c5721 | train | // ViewByName returns the InventoryView with given name.
// Return false if not found. | {
"resource": ""
} | ||
c5722 | train | // IndexByFieldsAndType returns the InventoryIndex with given fields & type.
// Return false if not found. | {
"resource": ""
} | ||
c5723 | train | // FieldsEqual returns true when the given fields list equals the
// Fields list in the InventoryIndex.
// The order of fields is irrelevant. | {
"resource": ""
} | ||
c5724 | train | // stringSliceEqualsIgnoreOrder returns true when the given lists contain the same elements.
// The order of elements is irrelevant. | {
"resource": ""
} | ||
c5725 | train | // Size returns the number of messages in this store. | {
"resource": ""
} | ||
c5726 | train | // Get returns the message with given id, or nil if not found | {
"resource": ""
} | ||
c5727 | train | // Add adds a new message to the store with given ID.
// If the ID is not unique this function will panic. | {
"resource": ""
} | ||
c5728 | train | // Remove removes the message with given ID from the store. | {
"resource": ""
} | ||
c5729 | train | // ForEach calls the given function for each message in the store. | {
"resource": ""
} | ||
c5730 | train | // ReadDocument reads a single document with given key from the collection.
// The document data is stored into result, the document meta data is returned.
// If no document exists with given key, a NotFoundError is returned. | {
"resource": ""
} | ||
c5731 | train | // UpdateDocument updates a single document with given key in the collection.
// The document meta data is returned.
// To return the NEW document, prepare a context with `WithReturnNew`.
// To return the OLD document, prepare a context with `WithReturnOld`.
// To wait until document has been synced to disk, prepare a ... | {
"resource": ""
} | ||
c5732 | train | // getKeyFromDocument looks for a `_key` document in the given document and returns it. | {
"resource": ""
} | ||
c5733 | train | // newAuthenticatedConnection creates a Connection that applies the given connection on the given underlying connection. | {
"resource": ""
} | ||
c5734 | train | // prepare calls Authentication.Prepare if needed. | {
"resource": ""
} | ||
c5735 | train | // NewTransport creates a new Transport for given address & tls settings. | {
"resource": ""
} | ||
c5736 | train | // CloseIdleConnections closes all connections which are closed or have been idle for more than the configured idle timeout. | {
"resource": ""
} | ||
c5737 | train | // CloseAllConnections closes all connections. | {
"resource": ""
} | ||
c5738 | train | // SetOnConnectionCreated stores a callback function that is called every time a new connection has been created. | {
"resource": ""
} | ||
c5739 | train | // getConnection returns the first available connection, or when no such connection is available,
// is created a new connection. | {
"resource": ""
} | ||
c5740 | train | // getAvailableConnection returns the first available connection.
// If no such connection is available, nil is returned. | {
"resource": ""
} | ||
c5741 | train | // createConnection creates a new connection. | {
"resource": ""
} | ||
c5742 | train | // cleanup keeps removing idle connections | {
"resource": ""
} | ||
c5743 | train | // Do performs a given request, returning its response.
// In case of a termporary failure, the request is retried until
// the deadline is exceeded. | {
"resource": ""
} | ||
c5744 | train | // agencyConnectionFailureBackoff returns a backoff delay for cases where all
// agents responded with a non-fatal error. | {
"resource": ""
} | ||
c5745 | train | // increaseDelay returns an delay, increased from an old delay with a given
// factor, limited to given min & max. | {
"resource": ""
} | ||
c5746 | train | // Properties fetches extended information about the view. | {
"resource": ""
} | ||
c5747 | train | // SetProperties changes properties of the view. | {
"resource": ""
} | ||
c5748 | train | // NewConnection creates a new cluster connection to a cluster of servers.
// The given connections are existing connections to each of the servers. | {
"resource": ""
} | ||
c5749 | train | // getCurrentServer returns the currently used server. | {
"resource": ""
} | ||
c5750 | train | // getSpecificServer returns the server with the given endpoint. | {
"resource": ""
} | ||
c5751 | train | // getNextServer changes the currently used server and returns the new server. | {
"resource": ""
} | ||
c5752 | train | // newCollection creates a new Collection implementation. | {
"resource": ""
} | ||
c5753 | train | // UnLoad the collection from memory. | {
"resource": ""
} | ||
c5754 | train | // UnmarshalJSON loads CollectionProperties from json | {
"resource": ""
} | ||
c5755 | train | // UnmarshalJSON loads SetCollectionPropertiesOptions from json | {
"resource": ""
} | ||
c5756 | train | // newHTTPConnection creates a new HTTP connection for a single endpoint and the remainder of the given configuration settings. | {
"resource": ""
} | ||
c5757 | train | // readBody reads the body of the given response into a byte slice. | {
"resource": ""
} | ||
c5758 | train | // parseResponseArray parses an array response in the given response | {
"resource": ""
} | ||
c5759 | train | // newGraph creates a new Graph implementation. | {
"resource": ""
} | ||
c5760 | train | // Remove removes the entire graph.
// If the graph does not exist, a NotFoundError is returned. | {
"resource": ""
} | ||
c5761 | train | // readChunkVST1_1 reads an entire chunk from the given reader in VST 1.1 format. | {
"resource": ""
} | ||
c5762 | train | // WriteToVST1_1 write the chunk to the given writer in VST 1.0 format.
// An error is returned when less than the entire chunk was written. | {
"resource": ""
} | ||
c5763 | train | // Collection opens a connection to an existing collection within the database.
// If no collection with given name exists, an NotFoundError is returned. | {
"resource": ""
} | ||
c5764 | train | // Collections returns a list of all collections in the database. | {
"resource": ""
} | ||
c5765 | train | // CreateCollection creates a new collection with given name and options, and opens a connection to it.
// If a collection with given name already exists within the database, a DuplicateError is returned. | {
"resource": ""
} | ||
c5766 | train | // newResponse builds a vstResponse from given message. | {
"resource": ""
} | ||
c5767 | train | // ReplaceDocument replaces a single document with given key in the collection with the document given in the document argument.
// The document meta data is returned.
// To return the NEW document, prepare a context with `WithReturnNew`.
// To return the OLD document, prepare a context with `WithReturnOld`.
// To wait... | {
"resource": ""
} | ||
c5768 | train | // ReplaceDocuments replaces multiple documents with given keys in the collection with the documents given in the documents argument.
// The replacements are loaded from the given documents slice, the documents meta data are returned.
// To return the NEW documents, prepare a context with `WithReturnNew` with a slice o... | {
"resource": ""
} | ||
c5769 | train | // RemoveDocument removes a single document with given key from the collection.
// The document meta data is returned.
// To return the OLD document, prepare a context with `WithReturnOld`.
// To wait until removal has been synced to disk, prepare a context with `WithWaitForSync`.
// If no document exists with given ke... | {
"resource": ""
} | ||
c5770 | train | // View opens a connection to an existing view within the database.
// If no collection with given name exists, an NotFoundError is returned. | {
"resource": ""
} | ||
c5771 | train | // ViewExists returns true if a view with given name exists within the database. | {
"resource": ""
} | ||
c5772 | train | // Views returns a list of all views in the database. | {
"resource": ""
} | ||
c5773 | train | // CreateArangoSearchView creates a new view of type ArangoSearch,
// with given name and options, and opens a connection to it.
// If a view with given name already exists within the database, a ConflictError is returned. | {
"resource": ""
} | ||
c5774 | train | // VertexCollection opens a connection to an existing edge-collection within the graph.
// If no edge-collection with given name exists, an NotFoundError is returned. | {
"resource": ""
} | ||
c5775 | train | // VertexCollectionExists returns true if an edge-collection with given name exists within the graph. | {
"resource": ""
} | ||
c5776 | train | // VertexCollections returns all edge collections of this graph | {
"resource": ""
} | ||
c5777 | train | // Endpoint returns the endpoint that handled the request. | {
"resource": ""
} | ||
c5778 | train | // getSlice reads the slice from the response if needed. | {
"resource": ""
} | ||
c5779 | train | // String creates a string representation of the given VersionInfo. | {
"resource": ""
} | ||
c5780 | train | // buildChunks splits a message consisting of 1 or more parts into chunks. | {
"resource": ""
} | ||
c5781 | train | // NewClient creates a new Client based on the given config setting. | {
"resource": ""
} | ||
c5782 | train | // SynchronizeEndpoints fetches all endpoints from an ArangoDB cluster and updates the
// connection to use those endpoints.
// When this client is connected to a single server, nothing happens.
// When this client is connected to a cluster of servers, the connection will be updated to reflect
// the layout of the clus... | {
"resource": ""
} | ||
c5783 | train | // autoSynchronizeEndpoints performs automatic endpoint synchronization. | {
"resource": ""
} | ||
c5784 | train | // IfEmpty adds an empty check on the given key to the given condition
// and returns the updated condition. | {
"resource": ""
} | ||
c5785 | train | // toMap convert the given condition to a map suitable for writeTransaction. | {
"resource": ""
} | ||
c5786 | train | // IfEmpty adds an "is empty" check on the given key to the given condition
// and returns the updated condition. | {
"resource": ""
} | ||
c5787 | train | // IfIsArray adds an "is-array" check on the given key to the given condition
// and returns the updated condition. | {
"resource": ""
} | ||
c5788 | train | // IfEqualTo adds an "value equals oldValue" check to given old value on the
// given key to the given condition and returns the updated condition. | {
"resource": ""
} | ||
c5789 | train | // newVertexCollection creates a new Vertex Collection implementation. | {
"resource": ""
} | ||
c5790 | train | // Revision fetches the revision ID of the collection.
// The revision ID is a server-generated string that clients can use to check whether data
// in a collection has changed since the last revision check. | {
"resource": ""
} | ||
c5791 | train | // BasicAuthentication creates an authentication implementation based on the given username & password. | {
"resource": ""
} | ||
c5792 | train | // JWTAuthentication creates a JWT token authentication implementation based on the given username & password. | {
"resource": ""
} | ||
c5793 | train | // Get returns a configuration property of the authentication.
// Supported properties depend on type of authentication. | {
"resource": ""
} | ||
c5794 | train | // Major returns the major part of the version
// E.g. "3.1.7" -> 3 | {
"resource": ""
} | ||
c5795 | train | // Minor returns the minor part of the version.
// E.g. "3.1.7" -> 1 | {
"resource": ""
} | ||
c5796 | train | // Sub returns the sub part of the version.
// E.g. "3.1.7" -> "7" | {
"resource": ""
} | ||
c5797 | train | // SubInt returns the sub part of the version as integer.
// The bool return value indicates if the sub part is indeed a number.
// E.g. "3.1.7" -> 7, true
// E.g. "3.1.foo" -> 0, false | {
"resource": ""
} | ||
c5798 | train | // Keys returns the keys of all elements. | {
"resource": ""
} | ||
c5799 | train | // Revs returns the revisions of all elements. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.