Miscellaneous
Database
DearDiary.initialize_database — Functioninitialize_database(; file_name::String="deardiary.db")Initializes the database by creating the necessary tables.
DearDiary.get_database — Functionget_database()::Union{SQLite.DB,Nothing}Returns a SQLite database connection. If the database has not been initialized, it returns nothing.
Returns
A SQLite.DB object, or nothing if the database is not initialized.
DearDiary.close_database — Functionclose_database()Closes the database connection if it is open.
Enumerations
DearDiary.Status — Type@enum Status IN_PROGRESS = 1 STOPPED = 2 FINISHED = 3An enumeration representing the status of an experiment.
DearDiary.IN_PROGRESS — ConstantIN_PROGRESS::StatusAn enumeration value representing an experiment that is currently in progress.
DearDiary.STOPPED — ConstantSTOPPED::StatusAn enumeration value representing an experiment that has been stopped.
DearDiary.FINISHED — ConstantFINISHED::StatusAn enumeration value representing an experiment that has finished.
Marker types
DearDiary.UpsertResult — TypeUpsertResultA marker abstract type for the result of an upsert operation.
DearDiary.Created — TypeCreatedA marker type indicating that a record was successfully created.
DearDiary.Updated — TypeUpdated <: UpsertResultA marker type indicating that a record was successfully updated.
DearDiary.Duplicate — TypeDuplicate <: UpsertResultA marker type indicating that a record already exists.
DearDiary.Unprocessable — TypeUnprocessable <: UpsertResultA marker type indicating that a record violates a constraint and cannot be processed.
DearDiary.Error — TypeError <: UpsertResultA marker type indicating that an error occurred while creating or updating a record.