@mimdb/mcp 0.1.3 → 0.1.4
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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -707,8 +707,9 @@ var DatabaseClient = class {
|
|
|
707
707
|
* @throws {MimDBApiError} On non-OK response or network failure.
|
|
708
708
|
*/
|
|
709
709
|
async getTableSchema(table) {
|
|
710
|
+
const tableName = table.includes(".") ? table.split(".").pop() : table;
|
|
710
711
|
return this.base.get(
|
|
711
|
-
`/v1/introspect/${this.ref}/tables/${encodeURIComponent(
|
|
712
|
+
`/v1/introspect/${this.ref}/tables/${encodeURIComponent(tableName)}`
|
|
712
713
|
);
|
|
713
714
|
}
|
|
714
715
|
/**
|