UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
dataLayer.js 725 B
// This file contains stubs to create an interface for the main app to reach out to a database.
// When building a fiesta-wagon project, if a database is selected, these will be replaced with fully-implemented functions.
// If there is no database required, these functions can be removed.

/**
 * Stub to run database migrations.
 */
exports.runMigrations = async () => {    
}

/**
 * Stub to check connectivity to database.
 */
exports.healthCheck = async () => {
    return {
        healthy: true,
        message: "Health check succeeded, but no database is deployed"
    }
}

/**
 * Stub to return the version number stored in the database.
 */
exports.getDbVersion = async () => {
    return "no database deployed"
}