This commit is contained in:
Benjamin Toby
2025-04-18 12:06:15 +01:00
parent 8d38f99bf1
commit 6593047efd
180 changed files with 3965 additions and 2 deletions
@@ -0,0 +1,7 @@
/**
* Convert Camel Joined Text to Camel Spaced Text
* ==============================================================================
* @description this function takes a camel cased text without spaces, and returns
* a camel-case-spaced text
*/
export default function camelJoinedtoCamelSpace(text: string): string | null;
+13
View File
@@ -0,0 +1,13 @@
import { DSQL_TableSchemaType } from "../../types";
type Param = {
dbFullName: string;
tableName: string;
tableInfoArray: any[];
tableSchema?: DSQL_TableSchemaType;
recordedDbEntry?: any;
};
/**
* # Create Table Functions
*/
export default function createTable({ dbFullName, tableName, tableInfoArray, tableSchema, recordedDbEntry, }: Param): Promise<any>;
export {};
+10
View File
@@ -0,0 +1,10 @@
type Param = {
query: string;
values?: string[] | object;
};
/**
* # Main DB Handler Function
* @requires DSQL_DB_CONN - Gobal Variable for Datasquirel Database
*/
export default function dbHandler({ query, values, }: Param): Promise<any[] | object | null>;
export {};
@@ -0,0 +1,13 @@
type Param = {
columnData: import("../../types").DSQL_FieldSchemaType;
primaryKeySet?: boolean;
};
type Return = {
fieldEntryText: string;
newPrimaryKeySet: boolean;
};
/**
* # Generate Table Column Description
*/
export default function generateColumnDescription({ columnData, primaryKeySet, }: Param): Return;
export {};
@@ -0,0 +1 @@
export default function noDatabaseDbHandler(queryString: string): Promise<any>;
+4
View File
@@ -0,0 +1,4 @@
/**
* # Sulg To Camel Case
*/
export default function slugToCamelTitle(text: string): string | null;
+14
View File
@@ -0,0 +1,14 @@
import { DSQL_FieldSchemaType } from "../../types";
type Param = {
tableInfoArray: DSQL_FieldSchemaType[];
};
/**
* # Supplement Table
*/
export default function supplementTable({ tableInfoArray }: Param): DSQL_FieldSchemaType[];
export {};
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
+19
View File
@@ -0,0 +1,19 @@
type Param = {
dbFullName: string;
tableName: string;
tableSchema: import("../../types").DSQL_TableSchemaType;
tableNameFull?: string;
tableInfoArray: import("../../types").DSQL_FieldSchemaType[];
userId?: number | string | null;
dbSchema: import("../../types").DSQL_DatabaseSchemaType[];
tableIndexes?: import("../../types").DSQL_IndexSchemaType[];
clone?: boolean;
tableIndex?: number;
childDb?: boolean;
recordedDbEntry?: any;
};
/**
* # Update table function
*/
export default function updateTable({ dbFullName, tableName, tableInfoArray, userId, dbSchema, tableIndexes, tableSchema, clone, childDb, tableIndex, tableNameFull, recordedDbEntry, }: Param): Promise<any>;
export {};
@@ -0,0 +1,9 @@
type Param = {
queryString: string;
queryValuesArray?: string[];
};
/**
* # DB handler for specific database
*/
export default function varDatabaseDbHandler({ queryString, queryValuesArray, }: Param): Promise<any>;
export {};