Click or drag to resize

Database Methods

The Database type exposes the following members.

Methods
  NameDescription
Public methodAddDocumentChangedListener
Adds a listener for changes on a certain document (by ID). Similar to Changed but requires a parameter to add so it is a method instead of an event.
Public methodClose
Closes the database
Public methodCompact
Performs a manual compaction of this database, removing old irrelevant data and decreasing the size of the database file on disk
Public methodContains
Checks whether or not a given Document exists in this database instance by searching for its ID.
Public methodCreateIndex(IListIExpression)
Creates an ValueIndex index on the given path
Public methodCreateIndex(IList, IndexType, IndexOptions)
Creates an index of the given type on the given path with the given configuration
Public methodCreateReplication(Uri)
Creates a replication with the giveb remote URL
Public methodCreateReplication(Database)
Creates a replication with another local database
Public methodDelete
Deletes the database
Public methodDelete(Document)
Deletes the given Document from the database
Public methodStatic memberDelete(String, String)
Deletes the contents of a database with the given name in the given directory
Public methodDeleteIndex
Deletes an index of the given IndexType on the given propertyPath
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodDocumentExists
Checks whether a document with the given ID exists in the database
Public methodEquals (Inherited from Object.)
Public methodStatic memberExists
Returns whether or not a database with the given name exists in the given directory
Protected methodFinalize
Finalizer
(Overrides ObjectFinalize.)
Public methodGetDocument
Gets the Document with the specified ID
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInBatch
Runs the given batch of operations as an atomic unit
Public methodPurge
Purges the given Document from the database. This leaves no trace behind and will not be replicated
Public methodRemoveDocumentChangedListener
Removes a listener for changes on a certain document (by ID). Similar to Changed but requires a parameter to add so it is a method instead of an event.
Public methodSave
Saves the given Document into this database
Public methodToString (Inherited from Object.)
Top
See Also