-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76da5d7
commit 21c3ee7
Showing
2 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ class Record { | |
/** | ||
Check failure on line 65 in core/database/foxx/api/record.js
|
||
* Generates the full path to the record as it should appear in the repository. | ||
* | ||
* @returns {object} - The location object which specifies the owner of the record. | ||
* @returns {object} loc - The location object which specifies the owner of the record. | ||
* @param {string} basePath - The base path where the record is stored. | ||
Check failure on line 69 in core/database/foxx/api/record.js
|
||
*/ | ||
_pathToRecord(loc, basePath) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,8 @@ class Repo { | |
#repo_key = null; | ||
|
||
/** | ||
* @brief Constructs a Repo object and checks if the key exists in the database. | ||
* Constructs a Repo object and checks if the key exists in the database. | ||
* | ||
* @param {string} a_key or id - The unique identifier for the repo, of repo key. | ||
* e.g. can be either | ||
* repo/repo_name | ||
|
@@ -92,8 +93,9 @@ class Repo { | |
} | ||
|
||
/** | ||
* @brief Checks if the repo exists in the database. | ||
* @return {boolean} True if the repo exists, otherwise false. | ||
* Checks if the repo exists in the database. | ||
* | ||
* @returns {boolean} True if the repo exists, otherwise false. | ||
*/ | ||
exists() { | ||
return this.#exists; | ||
|
@@ -107,24 +109,27 @@ class Repo { | |
return this.#repo_id; | ||
} | ||
/** | ||
Check failure on line 111 in core/database/foxx/api/repo.js
|
||
* @brief Will return error code of last run method. | ||
* Will return error code of last run method. | ||
* | ||
* If no error code, will return null | ||
* returns {number} - If no error code, will return null | ||
**/ | ||
error() { | ||
return this.#error; | ||
} | ||
|
||
/** | ||
* @brief Retrieves the error code of the last run method. | ||
* @return {string|null} Error code or null if no error. | ||
* Retrieves the error code of the last run method. | ||
* | ||
* @returns {string|null} Error code or null if no error. | ||
*/ | ||
errorMessage() { | ||
return this.#err_msg; | ||
} | ||
|
||
/** | ||
Check failure on line 129 in core/database/foxx/api/repo.js
|
||
* @brief Detect what kind of POSIX path has been provided | ||
* Detect what kind of POSIX path has been provided | ||
* | ||
* returns {string} - posix path type | ||
**/ | ||
pathType(a_path) { | ||
if (!this.#exists) { | ||
|