nosql_repository library
Repository pattern for NoSQL databases
The purpose of this package is to define a structure of an interface to access a NoSQL database. The main abstraction it defines is the Repository class. The Repository class represents a set of operations that are used to access a collection in a database, which include the typical CRUD methods (Create, Read, Update and Delete).
The Repository is abstract. The goal is to create concrete implementations of it, but reference the abstract class throughout the code of the application, therefore abstracting away as much as possible the concrete database engine.
Classes
- And
- Represents an expression that is true when left and right are true.
- CreatePolicy
- Defines authorization policy for search operations.
- DbException
- Represents an exception ocurred at the database engine when trying to perform an operation.
- DbPrincipal
- Represents a user that performs operations on a database.
- DeletePolicy
- Defines authorization policy for delete operations.
- EntityPermissionPolicy
- Defines a policy to determine if a user has the authorization to perform an operation on an entity.
- Equal
-
Represents an expression that is
true when the
left
operand is equal to theright
operand. - Expression
- Defines a business filtering expression
- FieldPath
- Defines a path to search for a value of a field within a document in a collection.
- GreaterOrEqualThan
-
Defines an expression that is equal
when the
left
is greater or equal to theright
. - GreaterThan
-
Defines an expression that is equal
when the
left
is greater than theright
. - In
- Defines an expression that is equal when the left is one of the values contained in the right.
- Input
- Defines an operand that is input from the user.
- LessOrEqualThan
-
Defines an expression that is equal
when the
left
is lesser or equal to theright
. - LessThan
-
Defines an expression that is equal
when the
left
is less than theright
. - Like
-
Defines an expression that is equal
when the
left
fits the pattern defined by theright
. - ListInput
- Defines an operand that is a list of possible values.
- Not
- Defines an expression that is the boolean opposite of the expression.
- NotEqual
-
Defines an expression that is true
when the
left
is different of theright
. - NotFound
- Operand
- Defines an operand that can be used in an Expression
- Or
- Represents an expression that is true when left or right are true.
- OrderBy
- Defines a sorting order
- PermissionPolicy
- Defines a policy to determine if a user has the authorization to perform an operation on an entity.
-
Repository<
TEntity> - Defines data access methods to a specific database collection.
- RepositoryTransaction
- RepositoryTransactionOptions
- ReturnField
- Defines a property to be returned by a search query
- SearchCriteria
- Represents a search criteria
- SearchPolicy
- Defines authorization policy for search operations.
- SearchResult
- Represents the result of a search, containing a stream of entities that constitute a page of results and the total count of entities that fit the criteria given in the search.
- UpdatePolicy
- Defines authorization policy for update operations.