Skip to content

Commit 276db24

Browse files
PuddySqlQuery --> validators updated.
1 parent 805e304 commit 276db24

File tree

2 files changed

+442
-102
lines changed

2 files changed

+442
-102
lines changed

src/PuddySqlInstance.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class PuddySqlInstance extends PuddySqlEngine {
1919
}
2020

2121
/** @typedef {import('./PuddySqlQuery.mjs').TableSettings} TableSettings */
22+
/** @typedef {import('./PuddySqlQuery.mjs').SqlTableConfig} SqlTableConfig */
2223

2324
// @ts-ignore
2425
#db;
@@ -414,7 +415,7 @@ class PuddySqlInstance extends PuddySqlEngine {
414415
* Additional settings can be provided to customize the behavior of the table (e.g., `select`, `order`, `id`).
415416
*
416417
* @param {TableSettings} [settings={}] - Optional settings to customize the table creation. This can include properties like `select`, `join`, `order`, `id`, etc.
417-
* @param {Array<Array<string>>} [tableData=[]] - An array of columns and their definitions to create the table. Each column is defined by an array, which can include column name, type, and additional settings.
418+
* @param {SqlTableConfig} [tableData=[]] - An array of columns and their definitions to create the table. Each column is defined by an array, which can include column name, type, and additional settings.
418419
* @returns {Promise<PuddySqlQuery>} Resolves to the `PuddySqlQuery` instance associated with the created or existing table.
419420
* @throws {Error} If the table has already been initialized.
420421
*/

0 commit comments

Comments
 (0)