# Packages
No description provided by the author
# Functions
ApplyConcurrentOperationsInTransaction takes a transaction and a list of operations and applies them using concurrency
It returns an error in case any operation fails Use this function at the end of a transaction to ensure write operations are done in the end of the transaction.
CheckSubjectVerified takes a user hash and a subject hash and checks whether the user has done this subject.
InitFireStore initiates the DB Environment (requires some environment variables to work).
SetupDB wraps the Firestore initialization.
# Variables
DB operation errors.
DB operation errors.
DB operation errors.
# Structs
BatchObject is used for batched writes that can contain different types that implement Inserter Set Doc to empty string if you'd like to use a random Hash.
Database is passed to /server/dao functions that require DB operations.
Operation is used as a generic operation to be applied on a document
It is mostly used inside transactions to provide an easy way to store operations to be executed after reads.