Updates
This commit is contained in:
+2
-1
@@ -20,7 +20,7 @@ const addDbEntry_1 = __importDefault(require("../../functions/backend/db/addDbEn
|
||||
const updateDbEntry_1 = __importDefault(require("../../functions/backend/db/updateDbEntry"));
|
||||
function dsqlCrud(params) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const { action, data, table, targetValue, sanitize, targetField, targetId, dbFullName, deleteData, batchData, deleteKeyValues, debug, tableSchema, } = params;
|
||||
const { action, data, table, targetValue, sanitize, targetField, targetId, dbFullName, deleteData, batchData, deleteKeyValues, debug, tableSchema, deleteKeyValuesOperator, } = params;
|
||||
const finalData = (sanitize ? sanitize({ data }) : data);
|
||||
const finalBatchData = (sanitize ? sanitize({ batchData }) : batchData);
|
||||
switch (action) {
|
||||
@@ -60,6 +60,7 @@ function dsqlCrud(params) {
|
||||
tableName: table,
|
||||
dbFullName,
|
||||
deleteKeyValues,
|
||||
deleteKeyValuesOperator,
|
||||
});
|
||||
const res = (yield (0, conn_db_handler_1.default)(undefined, deleteQuery === null || deleteQuery === void 0 ? void 0 : deleteQuery.query, deleteQuery === null || deleteQuery === void 0 ? void 0 : deleteQuery.values));
|
||||
return {
|
||||
|
||||
@@ -43,6 +43,9 @@ function dataTypeConstructor(dataType, limit, decimal) {
|
||||
if (finalType == "VARCHAR") {
|
||||
return (finalType += `(${limit || 250})`);
|
||||
}
|
||||
if (finalType == "VECTOR") {
|
||||
return (finalType += `(${limit || 120})`);
|
||||
}
|
||||
if (finalType == "DECIMAL" ||
|
||||
finalType == "FLOAT" ||
|
||||
finalType == "DOUBLE") {
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ function grabHostNames(param) {
|
||||
? finalEnv["DSQL_API_REMOTE_HOST_PORT"]
|
||||
: undefined;
|
||||
return {
|
||||
host: remoteHost || localHost || "datasquirel.com",
|
||||
host: remoteHost || localHost || "www.datasquirel.com",
|
||||
port: remoteHostPort || localHostPort || 443,
|
||||
scheme: (scheme === null || scheme === void 0 ? void 0 : scheme.match(/^http$/i)) ? http_1.default : https_1.default,
|
||||
user_id: (param === null || param === void 0 ? void 0 : param.userId) || String(finalEnv["DSQL_API_USER_ID"] || 0),
|
||||
|
||||
+3
-3
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = grabDSQLRemoteURLs;
|
||||
function grabDSQLRemoteURLs() {
|
||||
const communityTarballURL = "https://static.datasquirel.com/images/user-images/user-2/dsql/distro/dsql-community.tar.xz";
|
||||
const communityTarballShortURL = "https://datasquirel.com/api/media/dsql-community";
|
||||
const installScriptURL = "https://datasquirel.com/api/media/install";
|
||||
const updateScriptURL = "https://datasquirel.com/api/media/update";
|
||||
const communityTarballShortURL = "https://www.datasquirel.com/api/media/dsql-community";
|
||||
const installScriptURL = "https://www.datasquirel.com/api/media/install";
|
||||
const updateScriptURL = "https://www.datasquirel.com/api/media/update";
|
||||
return {
|
||||
communityTarballURL,
|
||||
communityTarballShortURL,
|
||||
|
||||
Reference in New Issue
Block a user