dbml-metaquery 1.0.1 → 1.1.0
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/README.md +10 -0
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +3 -3
- package/dist/graph.d.ts +3 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/graph.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* DbmlGraph -- parses DBML via @dbml/parse, builds a graphology graph,
|
|
3
3
|
* and provides FK path finding + rich schema metadata.
|
|
4
4
|
*/
|
|
5
|
+
import Graph from "graphology";
|
|
5
6
|
import type { PathStep, Relationship, TableInfo, GroupInfo, ReferencingTable, Neighbors, GroupSummary, SearchResult } from "./types";
|
|
6
7
|
export declare class DbmlGraph {
|
|
7
8
|
private graph;
|
|
@@ -39,6 +40,8 @@ export declare class DbmlGraph {
|
|
|
39
40
|
getNeighbors(tableName: string): Neighbors;
|
|
40
41
|
/** High-level schema overview: groups with table counts, plus ungrouped tables. */
|
|
41
42
|
getSummary(): GroupSummary[];
|
|
43
|
+
/** Get a copy of the underlying graphology graph for external analysis. */
|
|
44
|
+
getGraph(): Graph;
|
|
42
45
|
/** Case-insensitive substring search across table names, notes, column names, and column notes. */
|
|
43
46
|
searchSchema(query: string): SearchResult[];
|
|
44
47
|
private findEdgeStep;
|
package/dist/index.js
CHANGED
|
@@ -17184,6 +17184,9 @@ class DbmlGraph {
|
|
|
17184
17184
|
}
|
|
17185
17185
|
return summary;
|
|
17186
17186
|
}
|
|
17187
|
+
getGraph() {
|
|
17188
|
+
return this.graph.copy();
|
|
17189
|
+
}
|
|
17187
17190
|
searchSchema(query) {
|
|
17188
17191
|
const q = query.toLowerCase();
|
|
17189
17192
|
const results = [];
|
|
@@ -17229,5 +17232,5 @@ export {
|
|
|
17229
17232
|
DbmlGraph
|
|
17230
17233
|
};
|
|
17231
17234
|
|
|
17232
|
-
//# debugId=
|
|
17235
|
+
//# debugId=EEE4AFBA9A3028D864756E2164756E21
|
|
17233
17236
|
//# sourceMappingURL=index.js.map
|