minor revision

This commit is contained in:
Tben 2023-07-27 05:17:37 +01:00
parent f5a24511a3
commit 5472a7e79e
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "datasquirel",
"version": "1.1.90",
"version": "1.1.91",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"scripts": {

View File

@ -20,15 +20,15 @@ const https = require("https");
* @typedef {object} PostDataPayload
* @property {"insert" | "update" | "delete"} action - The target action to take
* @property {string} table - Table name(slug) eg "blog_posts"
* @property {string?} identifierColumnName - Table identifier field name => eg. "id" OR "email"
* @property {string?} identifierValue - Corresponding value of the selected field name => This
* checks identifies a the target row for "update" or "delete". Not needed for "insert"
* @property {object} data - Table insert payload object => This must have keys that match
* table fields
* @property {string?} duplicateColumnName - Duplicate column name to check for
* @property {string?} duplicateColumnValue - Duplicate column value to match. If no "update" param
* @property {string?} [identifierColumnName] - Table identifier field name => eg. "id" OR "email"
* @property {string?} [identifierValue] - Corresponding value of the selected field name => This
* checks identifies a the target row for "update" or "delete". Not needed for "insert"
* @property {string?} [duplicateColumnName] - Duplicate column name to check for
* @property {string?} [duplicateColumnValue] - Duplicate column value to match. If no "update" param
* provided, function will return null
* @property {boolean?} update - Should the "insert" action update the existing entry if indeed
* @property {boolean?} [update] - Should the "insert" action update the existing entry if indeed
* the entry with "duplicateColumnValue" exists?
*/