@agentforge/tools 0.16.40 → 0.16.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +398 -406
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -27
- package/dist/index.d.ts +1 -27
- package/dist/index.js +398 -406
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -5522,39 +5522,13 @@ declare class SchemaInspector {
|
|
|
5522
5522
|
private readonly vendor;
|
|
5523
5523
|
private readonly cacheTtlMs;
|
|
5524
5524
|
private readonly cacheKey?;
|
|
5525
|
-
/**
|
|
5526
|
-
* Create a new SchemaInspector.
|
|
5527
|
-
*
|
|
5528
|
-
* @param manager - ConnectionManager instance for database access
|
|
5529
|
-
* @param vendor - Database vendor ('postgresql' | 'mysql' | 'sqlite')
|
|
5530
|
-
* @param config - Optional configuration for cache TTL and cache key
|
|
5531
|
-
*/
|
|
5532
5525
|
constructor(manager: ConnectionManager, vendor: DatabaseVendor, config?: SchemaInspectorConfig);
|
|
5533
|
-
/**
|
|
5534
|
-
* Clear cached schema data.
|
|
5535
|
-
*
|
|
5536
|
-
* @param cacheKey - Specific cache key to clear. If omitted, clears all cached schemas.
|
|
5537
|
-
*/
|
|
5538
5526
|
static clearCache(cacheKey?: string): void;
|
|
5539
|
-
/** Invalidate this inspector's cached schema, if any. */
|
|
5540
5527
|
invalidateCache(): void;
|
|
5541
|
-
/**
|
|
5542
|
-
* Inspect the database schema and return structured metadata.
|
|
5543
|
-
*
|
|
5544
|
-
* Results are cached when a `cacheKey` was provided at construction time.
|
|
5545
|
-
*
|
|
5546
|
-
* @param options - Optional table filters and cache bypass flag
|
|
5547
|
-
* @returns Structured schema with tables, columns, indexes, and foreign keys
|
|
5548
|
-
*/
|
|
5549
5528
|
inspect(options?: SchemaInspectOptions): Promise<DatabaseSchema>;
|
|
5550
5529
|
private inspectFromDatabase;
|
|
5530
|
+
private inspectTables;
|
|
5551
5531
|
private runQueryRows;
|
|
5552
|
-
private createTableMap;
|
|
5553
|
-
private getTableFromRow;
|
|
5554
|
-
private inspectPostgreSQL;
|
|
5555
|
-
private inspectMySQL;
|
|
5556
|
-
private inspectSQLite;
|
|
5557
|
-
private applyIndexRows;
|
|
5558
5532
|
}
|
|
5559
5533
|
|
|
5560
5534
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -5522,39 +5522,13 @@ declare class SchemaInspector {
|
|
|
5522
5522
|
private readonly vendor;
|
|
5523
5523
|
private readonly cacheTtlMs;
|
|
5524
5524
|
private readonly cacheKey?;
|
|
5525
|
-
/**
|
|
5526
|
-
* Create a new SchemaInspector.
|
|
5527
|
-
*
|
|
5528
|
-
* @param manager - ConnectionManager instance for database access
|
|
5529
|
-
* @param vendor - Database vendor ('postgresql' | 'mysql' | 'sqlite')
|
|
5530
|
-
* @param config - Optional configuration for cache TTL and cache key
|
|
5531
|
-
*/
|
|
5532
5525
|
constructor(manager: ConnectionManager, vendor: DatabaseVendor, config?: SchemaInspectorConfig);
|
|
5533
|
-
/**
|
|
5534
|
-
* Clear cached schema data.
|
|
5535
|
-
*
|
|
5536
|
-
* @param cacheKey - Specific cache key to clear. If omitted, clears all cached schemas.
|
|
5537
|
-
*/
|
|
5538
5526
|
static clearCache(cacheKey?: string): void;
|
|
5539
|
-
/** Invalidate this inspector's cached schema, if any. */
|
|
5540
5527
|
invalidateCache(): void;
|
|
5541
|
-
/**
|
|
5542
|
-
* Inspect the database schema and return structured metadata.
|
|
5543
|
-
*
|
|
5544
|
-
* Results are cached when a `cacheKey` was provided at construction time.
|
|
5545
|
-
*
|
|
5546
|
-
* @param options - Optional table filters and cache bypass flag
|
|
5547
|
-
* @returns Structured schema with tables, columns, indexes, and foreign keys
|
|
5548
|
-
*/
|
|
5549
5528
|
inspect(options?: SchemaInspectOptions): Promise<DatabaseSchema>;
|
|
5550
5529
|
private inspectFromDatabase;
|
|
5530
|
+
private inspectTables;
|
|
5551
5531
|
private runQueryRows;
|
|
5552
|
-
private createTableMap;
|
|
5553
|
-
private getTableFromRow;
|
|
5554
|
-
private inspectPostgreSQL;
|
|
5555
|
-
private inspectMySQL;
|
|
5556
|
-
private inspectSQLite;
|
|
5557
|
-
private applyIndexRows;
|
|
5558
5532
|
}
|
|
5559
5533
|
|
|
5560
5534
|
/**
|