@askdb/mysql 0.1.0-beta.23 → 0.1.0-beta.25

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.
@@ -1,14 +1,13 @@
1
- import type { CatalogQueryRunner, Connector, IntrospectionFilters } from "@askdb/introspect";
1
+ import type { Connector } from "@askdb/introspect";
2
+ import type { LiveCatalogInput } from "@askdb/introspect/kit";
2
3
  /**
3
- * Connector input for `@askdb/mysql`. Live introspection only — supply a
4
+ * Connector input for `@askdb/mysql`: the kit's `LiveCatalogInput`, `{ mode: "live", runner,
5
+ * filters?, schemaId? }`, so a field added there reaches this connector too (#816). `schemaId`
6
+ * defaults to `"introspected"`. Live introspection only — supply a
4
7
  * `CatalogQueryRunner` (e.g. from {@link createMysqlCatalogQueryRunner}).
5
8
  * From-export bundle mode (à la `@askdb/postgres`) is not implemented here yet.
6
9
  */
7
- export type MysqlIntrospectionInput = {
8
- mode: "live";
9
- runner: CatalogQueryRunner;
10
- filters?: IntrospectionFilters;
11
- };
10
+ export type MysqlIntrospectionInput = LiveCatalogInput;
12
11
  export declare function createMysqlConnector(): Connector<MysqlIntrospectionInput>;
13
12
  export { describeMysql } from "./describe.js";
14
13
  export type { DescribeMysqlInput } from "./describe.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAErB,MAAM,mBAAmB,CAAC;AAG3B;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,SAAS,CAAC,uBAAuB,CAAC,CAMzE;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9D;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AAEvD,wBAAgB,oBAAoB,IAAI,SAAS,CAAC,uBAAuB,CAAC,CAMzE;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
@@ -2,7 +2,7 @@ import { describeMysql } from "./describe.js";
2
2
  export function createMysqlConnector() {
3
3
  return {
4
4
  async describe(input) {
5
- return describeMysql({ runner: input.runner, filters: input.filters });
5
+ return describeMysql(input);
6
6
  },
7
7
  };
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAa9C,MAAM,UAAU,oBAAoB;IAClC,OAAO;QACL,KAAK,CAAC,QAAQ,CAAC,KAA8B;YAC3C,OAAO,aAAa,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACzE,CAAC;KACF,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAW9C,MAAM,UAAU,oBAAoB;IAClC,OAAO;QACL,KAAK,CAAC,QAAQ,CAAC,KAA8B;YAC3C,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askdb/mysql",
3
- "version": "0.1.0-beta.23",
3
+ "version": "0.1.0-beta.25",
4
4
  "description": "AskDB MySQL integration: introspection connector via information_schema and a mysql2-backed catalog query runner. Pairs with @askdb/core's MYSQL_DIALECT.",
5
5
  "keywords": [
6
6
  "askdb",
@@ -44,8 +44,8 @@
44
44
  "node": ">=22.23.4"
45
45
  },
46
46
  "dependencies": {
47
- "@askdb/core": "1.0.0-beta.48",
48
- "@askdb/introspect": "0.3.0-beta.22"
47
+ "@askdb/core": "1.0.0-beta.50",
48
+ "@askdb/introspect": "0.3.0-beta.24"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "ai": "^6.0.0 || ^7.0.51",