Skip to content

Commit 58f9abe

Browse files
docs fixed.
1 parent 2c74336 commit 58f9abe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/PuddySqlQuery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Result of a paginated SQL query locating a specific item:
3434
### 🏷️ TagCriteria
3535
Definition for tag group filtering in SQL clauses:
3636
- **group.column** (`string` | optional): SQL column for tag data (default: `this.getColumnName()`).
37-
- **group.valueName** (`string` | optional): Alias for JSON values (default: `this.defaultValueName`).
37+
- **group.tableName** (`string` | optional): Table name used (default: `this.defaultTableName`).
3838
- **group.allowWildcards** (`boolean` | optional): Allow wildcards in matching (default: `false`).
3939
- **group.include** (`Array<string|string[]>`): Tag values or OR-groups to include in filtering.
4040

docs/PuddySqlTags.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ This changes whether subqueries use JSON array iteration or direct joins.
179179

180180
---
181181

182-
### `setValueName(value: string)`
182+
### `setTableName(value: string)`
183183

184-
Sets the alias used in `EXISTS` subqueries (commonly `'value'`).
184+
Sets the external table name name used in `EXISTS` subqueries, typically referencing `value`.
185185

186186
---
187187

src/PuddySqlQuery.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import PuddySqlTags from './PuddySqlTags.mjs';
3333
*
3434
* @typedef {Object} TagCriteria - Tag group definition to build the clause from.
3535
* @property {string} [group.column] - SQL column name for tag data (defaults to `this.getColumnName()`).
36-
* @property {string} [group.tableName] - Optional table name used (defaults to `this.defaultValueName`).
36+
* @property {string} [group.tableName] - Optional table name used (defaults to `this.defaultTableName`).
3737
* @property {boolean} [group.allowWildcards=false] - Whether wildcards are allowed in matching.
3838
* @property {Array<string|string[]>} [group.include=[]] - Tag values or grouped OR conditions to include.
3939
*/

0 commit comments

Comments
 (0)