/**
 * Type definitions for DatabaseService
 *
 * Contains all interfaces, enums, and row types used by the database service.
 */
/**
 * Error codes for database operations
 */
export var DatabaseErrorCode;
(function (DatabaseErrorCode) {
    DatabaseErrorCode["DATABASE_NOT_FOUND"] = "DATABASE_NOT_FOUND";
    DatabaseErrorCode["DATABASE_ALREADY_EXISTS"] = "DATABASE_ALREADY_EXISTS";
    DatabaseErrorCode["DATABASE_LOCKED"] = "DATABASE_LOCKED";
    DatabaseErrorCode["DOCUMENT_NOT_FOUND"] = "DOCUMENT_NOT_FOUND";
    DatabaseErrorCode["OCR_RESULT_NOT_FOUND"] = "OCR_RESULT_NOT_FOUND";
    DatabaseErrorCode["CHUNK_NOT_FOUND"] = "CHUNK_NOT_FOUND";
    DatabaseErrorCode["EMBEDDING_NOT_FOUND"] = "EMBEDDING_NOT_FOUND";
    DatabaseErrorCode["IMAGE_NOT_FOUND"] = "IMAGE_NOT_FOUND";
    DatabaseErrorCode["PROVENANCE_NOT_FOUND"] = "PROVENANCE_NOT_FOUND";
    DatabaseErrorCode["FOREIGN_KEY_VIOLATION"] = "FOREIGN_KEY_VIOLATION";
    DatabaseErrorCode["SCHEMA_MISMATCH"] = "SCHEMA_MISMATCH";
    DatabaseErrorCode["EXTENSION_LOAD_FAILED"] = "EXTENSION_LOAD_FAILED";
    DatabaseErrorCode["PERMISSION_DENIED"] = "PERMISSION_DENIED";
    DatabaseErrorCode["INVALID_NAME"] = "INVALID_NAME";
    DatabaseErrorCode["REGISTRY_ERROR"] = "REGISTRY_ERROR";
    DatabaseErrorCode["DATABASE_ARCHIVED"] = "DATABASE_ARCHIVED";
    DatabaseErrorCode["WORKSPACE_NOT_FOUND"] = "WORKSPACE_NOT_FOUND";
    DatabaseErrorCode["WORKSPACE_ALREADY_EXISTS"] = "WORKSPACE_ALREADY_EXISTS";
})(DatabaseErrorCode || (DatabaseErrorCode = {}));
/**
 * Custom error class for database operations
 */
export class DatabaseError extends Error {
    code;
    cause;
    constructor(message, code, cause) {
        super(message);
        this.code = code;
        this.cause = cause;
        this.name = 'DatabaseError';
    }
}
//# sourceMappingURL=types.js.map