This commit is contained in:
Benjamin Toby
2025-08-04 08:20:32 +01:00
parent 71a8431de5
commit ab13c68c8e
18 changed files with 41 additions and 20 deletions
@@ -27,6 +27,7 @@ export default async function dsqlCrud<
deleteKeyValues,
debug,
tableSchema,
deleteKeyValuesOperator,
} = params;
const finalData = (sanitize ? sanitize({ data }) : data) as T;
@@ -77,6 +78,7 @@ export default async function dsqlCrud<
tableName: table,
dbFullName,
deleteKeyValues,
deleteKeyValuesOperator,
});
const res = (await connDbHandler(
@@ -15,6 +15,10 @@ export default function dataTypeConstructor(
return (finalType += `(${limit || 250})`);
}
if (finalType == "VECTOR") {
return (finalType += `(${limit || 120})`);
}
if (
finalType == "DECIMAL" ||
finalType == "FLOAT" ||
+1 -1
View File
@@ -42,7 +42,7 @@ export default function grabHostNames(param?: Param): GrabHostNamesReturn {
: undefined;
return {
host: remoteHost || localHost || "datasquirel.com",
host: remoteHost || localHost || "www.datasquirel.com",
port: remoteHostPort || localHostPort || 443,
scheme: scheme?.match(/^http$/i) ? http : https,
user_id: param?.userId || String(finalEnv["DSQL_API_USER_ID"] || 0),
+3 -3
View File
@@ -2,10 +2,10 @@ export default 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";
"https://www.datasquirel.com/api/media/dsql-community";
const installScriptURL = "https://datasquirel.com/api/media/install";
const updateScriptURL = "https://datasquirel.com/api/media/update";
const installScriptURL = "https://www.datasquirel.com/api/media/install";
const updateScriptURL = "https://www.datasquirel.com/api/media/update";
return {
communityTarballURL,