air-dml 2.1.0 → 2.1.2

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/LICENSE CHANGED
@@ -1,90 +1,90 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
-
11
- "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
-
13
- "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
-
15
- "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
-
17
- "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
-
19
- "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
-
21
- "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
-
23
- "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
-
25
- "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
-
27
- "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
-
29
- 2. Grant of Copyright License.
30
-
31
- Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
-
33
- 3. Grant of Patent License.
34
-
35
- Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
36
-
37
- 4. Redistribution.
38
-
39
- You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
40
-
41
- (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
42
-
43
- (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
44
-
45
- (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
46
-
47
- (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
48
-
49
- You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
50
-
51
- 5. Submission of Contributions.
52
-
53
- Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
54
-
55
- 6. Trademarks.
56
-
57
- This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
58
-
59
- 7. Disclaimer of Warranty.
60
-
61
- Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
62
-
63
- 8. Limitation of Liability.
64
-
65
- In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
66
-
67
- 9. Accepting Warranty or Additional Liability.
68
-
69
- While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
70
-
71
- END OF TERMS AND CONDITIONS
72
-
73
- Copyright 2026 Data-mination Partners
74
-
75
- Licensed under the Apache License, Version 2.0 (the "License");
76
- you may not use this file except in compliance with the License.
77
- You may obtain a copy of the License at
78
-
79
- http://www.apache.org/licenses/LICENSE-2.0
80
-
81
- Unless required by applicable law or agreed to in writing, software
82
- distributed under the License is distributed on an "AS IS" BASIS,
83
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
84
- See the License for the specific language governing permissions and
85
- limitations under the License.
86
-
87
- ---
88
-
89
- This project extends DBML (https://github.com/holistics/dbml)
90
- which is also licensed under Apache-2.0.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License.
30
+
31
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
+
33
+ 3. Grant of Patent License.
34
+
35
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
36
+
37
+ 4. Redistribution.
38
+
39
+ You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
40
+
41
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
42
+
43
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
44
+
45
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
46
+
47
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
48
+
49
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
50
+
51
+ 5. Submission of Contributions.
52
+
53
+ Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
54
+
55
+ 6. Trademarks.
56
+
57
+ This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
58
+
59
+ 7. Disclaimer of Warranty.
60
+
61
+ Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
62
+
63
+ 8. Limitation of Liability.
64
+
65
+ In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
66
+
67
+ 9. Accepting Warranty or Additional Liability.
68
+
69
+ While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
70
+
71
+ END OF TERMS AND CONDITIONS
72
+
73
+ Copyright 2026 Data-mination Partners
74
+
75
+ Licensed under the Apache License, Version 2.0 (the "License");
76
+ you may not use this file except in compliance with the License.
77
+ You may obtain a copy of the License at
78
+
79
+ http://www.apache.org/licenses/LICENSE-2.0
80
+
81
+ Unless required by applicable law or agreed to in writing, software
82
+ distributed under the License is distributed on an "AS IS" BASIS,
83
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
84
+ See the License for the specific language governing permissions and
85
+ limitations under the License.
86
+
87
+ ---
88
+
89
+ This project extends DBML (https://github.com/holistics/dbml)
90
+ which is also licensed under Apache-2.0.
package/README.md CHANGED
@@ -1,355 +1,355 @@
1
- # AIR-DML
2
-
3
- **AI-Ready Data Modeling Language**
4
-
5
- *The Open Standard for AI-Ready Data Modeling*
6
-
7
- AIR-DML is an extended DBML (Database Markup Language) parser designed for AI-driven development. It adds powerful features for modern data modeling while maintaining full backward compatibility with standard DBML.
8
-
9
- [![npm version](https://badge.fury.io/js/air-dml.svg)](https://www.npmjs.com/package/air-dml)
10
- [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
11
-
12
- ## Used In Production
13
-
14
- <a href="https://mode-ai.io">
15
- <img src="https://mode-ai.io/favicon.svg" alt="Mode-ai" width="48" height="48" align="left" style="margin-right: 12px;" />
16
- </a>
17
-
18
- **[Mode-ai](https://mode-ai.io)** - AI-Powered Data Modeling Tool
19
-
20
- Generate ER diagrams from natural language using AI. Mode-ai is the reference implementation of AIR-DML, showcasing the full potential of AI-ready data modeling.
21
-
22
- - Natural language to ER diagram generation
23
- - Interactive visual editor with drag & drop
24
- - Export to SQL, DBML, and more
25
-
26
- <br clear="left"/>
27
-
28
- ## Features
29
-
30
- ✨ **AI-Optimized**: Designed for AI language models to understand and generate database schemas
31
- 🏗️ **Domain-Driven Design**: Built-in support for bounded contexts via `Area`
32
- 🌍 **Multilingual**: Logical names (aliases) in any language
33
- 🎨 **Visual Design**: Coordinate and color information for diagram rendering
34
- 🔄 **Polyglot Persistence**: Different database types per area
35
- 📦 **Extends DBML**: Fully compatible with standard DBML syntax
36
- 💬 **Comment Preservation**: Leading comments are preserved and associated with elements
37
-
38
- ## Installation
39
-
40
- ```bash
41
- npm install air-dml
42
- ```
43
-
44
- ## Quick Start
45
-
46
- ```typescript
47
- import { parseAirDML, exportToAirDML } from 'air-dml';
48
-
49
- // Parse AIR-DML text
50
- const airDmlText = `
51
- Project "My Project" {
52
- database_type: 'PostgreSQL'
53
- }
54
-
55
- // ユーザー管理
56
- Table users [alias: "ユーザー", pos_x: 100, pos_y: 100, color: "#1976D2"] {
57
- id serial [pk, alias: "ユーザーID"]
58
- username varchar(100) [not null, unique, alias: "ユーザー名"]
59
- email varchar(255) [not null, unique, alias: "メールアドレス"]
60
- created_at timestamp [not null, alias: "作成日時"]
61
- }
62
-
63
- // プロフィール情報
64
- Table profiles [alias: "プロフィール", pos_x: 500, pos_y: 100] {
65
- id serial [pk, alias: "プロフィールID"]
66
- user_id integer [fk, not null, unique, alias: "ユーザーID"]
67
- full_name varchar(200) [alias: "氏名"]
68
- bio text [alias: "自己紹介"]
69
- }
70
-
71
- Ref: profiles.user_id - users.id
72
-
73
- Area "User Management" [
74
- pos_x: 50,
75
- pos_y: 50,
76
- width: 600,
77
- height: 300,
78
- color: "#1976D2"
79
- ] {
80
- users
81
- profiles
82
-
83
- database_type: "PostgreSQL"
84
-
85
- CommonColumns: [
86
- created_at timestamp [not null, alias: "作成日時"]
87
- updated_at timestamp [not null, alias: "更新日時"]
88
- ]
89
-
90
- Note: "ユーザー管理領域"
91
- }
92
- `;
93
-
94
- const diagram = parseAirDML(airDmlText);
95
- console.log(diagram);
96
-
97
- // Export back to AIR-DML
98
- const output = exportToAirDML(diagram);
99
- console.log(output);
100
- ```
101
-
102
- ## AIR-DML Syntax
103
-
104
- ### Table Definition
105
-
106
- ```dbml
107
- Table table_name [alias: "論理名", pos_x: 100, pos_y: 200, color: "#1976D2"] {
108
- column_name data_type [constraints, alias: "カラム論理名"]
109
-
110
- Note: "テーブルの説明"
111
- }
112
- ```
113
-
114
- ### Column Constraints
115
-
116
- | Constraint | Description | Example |
117
- |------------|-------------|---------|
118
- | `pk` | Primary Key | `id serial [pk]` |
119
- | `fk` | Foreign Key (use with Ref) | `user_id integer [fk]` |
120
- | `unique` | Unique constraint | `email varchar [unique]` |
121
- | `not null` | NOT NULL constraint | `name varchar [not null]` |
122
- | `increment` | Auto increment | `id integer [pk, increment]` |
123
- | `alias: "name"` | Logical name | `[alias: "ユーザーID"]` |
124
- | `note: "desc"` | Column description | `[note: "説明"]` |
125
-
126
- ### Relationships
127
-
128
- ```dbml
129
- Ref: table_a.column > table_b.column // Many-to-One (A → B)
130
- Ref: table_a.column < table_b.column // One-to-Many (A ← B)
131
- Ref: table_a.column - table_b.column // One-to-One
132
- Ref: table_a.column >< table_b.column // Many-to-Many
133
- Ref: table_a.column ~ table_b.column // AI-inferred (undetermined)
134
- ```
135
-
136
- ### Area (Bounded Context)
137
-
138
- ```dbml
139
- Area "Area Name" [
140
- pos_x: 50,
141
- pos_y: 50,
142
- width: 600,
143
- height: 300,
144
- color: "#1976D2"
145
- ] {
146
- table1
147
- table2
148
-
149
- database_type: "PostgreSQL"
150
-
151
- CommonColumns: [
152
- created_at timestamp [not null, alias: "作成日時"]
153
- updated_at timestamp [not null, alias: "更新日時"]
154
- ]
155
-
156
- Note: "Area description"
157
- }
158
- ```
159
-
160
- ## AI Generation Guidelines
161
-
162
- When using AI to generate AIR-DML, follow these rules:
163
-
164
- **Required:**
165
- - Use **double quotes** for alias values: `alias: "論理名"` ✅
166
- - Do NOT use single quotes: `alias: '論理名'` ❌
167
- - Mark foreign key columns with `[fk]`
168
- - Define relationships separately with `Ref:`
169
- - Do NOT add inline comments after column definitions
170
-
171
- **Example Output:**
172
-
173
- ```dbml
174
- // 定期購入機能
175
- Table subscriptions [alias: "定期購入"] {
176
- id serial [pk, alias: "定期購入ID"]
177
- user_id integer [fk, not null, alias: "ユーザーID"]
178
- product_id integer [fk, not null, alias: "商品ID"]
179
- status text [not null, alias: "ステータス"]
180
- created_at timestamp [not null, alias: "作成日時"]
181
- }
182
-
183
- Ref: subscriptions.user_id > users.id
184
- Ref: subscriptions.product_id > products.id
185
- ```
186
-
187
- For complete AI generation guidelines, see [SPECIFICATION.md Section 5](./SPECIFICATION.md#5-ai生成時のガイドライン).
188
-
189
- ## API Reference
190
-
191
- ### `parseAirDML(airDmlText: string, diagramId?: string): Diagram`
192
-
193
- Parse AIR-DML text into a Diagram object.
194
-
195
- **Parameters:**
196
- - `airDmlText` - AIR-DML formatted text
197
- - `diagramId` - Optional diagram ID
198
-
199
- **Returns:** `Diagram` object
200
-
201
- ### `exportToAirDML(diagram: Diagram): string`
202
-
203
- Export a Diagram object to AIR-DML text.
204
-
205
- **Parameters:**
206
- - `diagram` - Diagram object
207
-
208
- **Returns:** AIR-DML formatted text
209
-
210
- ## Type Definitions
211
-
212
- ```typescript
213
- interface Diagram {
214
- id: string;
215
- name: string;
216
- project?: string;
217
- database?: string;
218
- tables: Table[];
219
- references: Reference[];
220
- areas?: Area[];
221
- createdAt?: string;
222
- updatedAt?: string;
223
- note?: string;
224
- }
225
-
226
- interface Table {
227
- id: string;
228
- name: string;
229
- logicalName?: string; // alias
230
- columns: Column[];
231
- color?: string;
232
- pos?: Position;
233
- areaIds?: string[];
234
- note?: string;
235
- leadingComments?: string[]; // v1.2.0+
236
- }
237
-
238
- interface Column {
239
- name: string;
240
- logicalName?: string; // alias
241
- type: DataType;
242
- typeParams?: string;
243
- pk?: boolean;
244
- fk?: boolean;
245
- unique?: boolean;
246
- notNull?: boolean;
247
- increment?: boolean;
248
- note?: string;
249
- leadingComments?: string[]; // v1.2.0+
250
- }
251
-
252
- interface Reference {
253
- id: string;
254
- fromTable: string;
255
- fromColumn: string;
256
- toTable: string;
257
- toColumn: string;
258
- type: RelationshipType;
259
- swapEdge?: boolean;
260
- leadingComments?: string[]; // v1.2.0+
261
- }
262
-
263
- interface Area {
264
- id: string;
265
- name: string;
266
- tables: string[];
267
- color?: string;
268
- pos?: Position;
269
- width?: number;
270
- height?: number;
271
- labelHorizontal?: 'left' | 'center' | 'right';
272
- labelVertical?: 'top' | 'center' | 'bottom';
273
- databaseType?: string;
274
- commonColumns?: Column[];
275
- note?: string;
276
- leadingComments?: string[]; // v1.2.0+
277
- }
278
- ```
279
-
280
- ## Comparison: DBML vs AIR-DML
281
-
282
- | Feature | DBML | AIR-DML |
283
- |---------|------|---------|
284
- | **Focus** | Database schema | AI-ready + Business context |
285
- | **Logical names** | ❌ | ✅ `alias` attribute |
286
- | **Area management** | TableGroup (basic) | Area (extended: CommonColumns, database_type) |
287
- | **Visual info** | ❌ | ✅ Coordinates, colors, sizes |
288
- | **Multi-DB** | Project-level | Area-level (polyglot persistence) |
289
- | **AI optimization** | ❌ | ✅ LLM-friendly design |
290
- | **Comment preservation** | ❌ | ✅ Leading comments (v1.2.0+) |
291
-
292
- ## Changelog
293
-
294
- ### v2.1.0 (2025-01)
295
- - **Breaking**: Removed `default` column constraint from syntax
296
- - Simplified parser by removing inconsistent quote handling for default values
297
-
298
- ### v2.0.0 (2025-01)
299
- - **Major**: Replaced `@dbml/core` dependency with custom hand-written recursive descent parser
300
- - Full AIR-DML syntax support without external dependencies
301
- - Improved error messages in Japanese
302
- - Better handling of Japanese identifiers and comments
303
-
304
- ### v1.2.3 (2025-01)
305
- - Bug fixes for Area parsing with Japanese names
306
- - Improved comment preservation
307
- - Added AI generation guidelines to specification
308
-
309
- ### v1.2.0 (2025-01)
310
- - Added leading comment preservation for Tables, References, and Areas
311
- - Added `leadingComments` field to type definitions
312
- - Export comments back to AIR-DML format
313
-
314
- ### v1.1.0 (2025-01)
315
- - Added `labelHorizontal` and `labelVertical` attributes for Areas
316
- - Added `swapEdge` attribute for References
317
- - Improved Area attribute parsing
318
-
319
- ### v1.0.0 (2025-01)
320
- - Initial release
321
- - Core AIR-DML parsing and export
322
- - Support for alias, pos_x, pos_y, color attributes
323
- - Area with CommonColumns and database_type
324
-
325
- ## Specification
326
-
327
- For the complete AIR-DML specification, see [SPECIFICATION.md](./SPECIFICATION.md).
328
-
329
- ## License
330
-
331
- Apache-2.0 License - see [LICENSE](./LICENSE) file for details.
332
-
333
- AIR-DML extends [DBML](https://github.com/holistics/dbml) (also Apache-2.0).
334
-
335
- ## Credits
336
-
337
- - **Created by**: Data-mination Partners
338
- - **Technical collaboration**: Claude Opus 4.5 (Anthropic)
339
- - **Based on**: [@dbml/core](https://www.npmjs.com/package/@dbml/core) by Holistics
340
-
341
- ## Links
342
-
343
- - [GitHub Repository](https://github.com/hiroaki-handa/air-dml)
344
- - [npm Package](https://www.npmjs.com/package/air-dml)
345
- - [AIR-DML Specification](./SPECIFICATION.md)
346
- - [Mode-ai](https://mode-ai.io) - Reference implementation (AI-Powered Data Modeling Tool)
347
-
348
- ---
349
-
350
- ## Trademarks
351
-
352
- **AIR-DML™** (AI-Ready Data Modeling Language) is a trademark of Datamination Partners Co., Ltd.
353
- Trademark Application No. 2026-000274 (Japan)
354
-
355
- *AIR-DML™ — The Open Standard for AI-Ready Data Modeling.*
1
+ # AIR-DML
2
+
3
+ **AI-Ready Data Modeling Language**
4
+
5
+ *The Open Standard for AI-Ready Data Modeling*
6
+
7
+ AIR-DML is an extended DBML (Database Markup Language) parser designed for AI-driven development. It adds powerful features for modern data modeling while maintaining full backward compatibility with standard DBML.
8
+
9
+ [![npm version](https://badge.fury.io/js/air-dml.svg)](https://www.npmjs.com/package/air-dml)
10
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
11
+
12
+ ## Used In Production
13
+
14
+ <a href="https://mode-ai.io">
15
+ <img src="https://mode-ai.io/favicon.svg" alt="Mode-ai" width="48" height="48" align="left" style="margin-right: 12px;" />
16
+ </a>
17
+
18
+ **[Mode-ai](https://mode-ai.io)** - AI-Powered Data Modeling Tool
19
+
20
+ Generate ER diagrams from natural language using AI. Mode-ai is the reference implementation of AIR-DML, showcasing the full potential of AI-ready data modeling.
21
+
22
+ - Natural language to ER diagram generation
23
+ - Interactive visual editor with drag & drop
24
+ - Export to SQL, DBML, and more
25
+
26
+ <br clear="left"/>
27
+
28
+ ## Features
29
+
30
+ ✨ **AI-Optimized**: Designed for AI language models to understand and generate database schemas
31
+ 🏗️ **Domain-Driven Design**: Built-in support for bounded contexts via `Area`
32
+ 🌍 **Multilingual**: Logical names (aliases) in any language
33
+ 🎨 **Visual Design**: Coordinate and color information for diagram rendering
34
+ 🔄 **Polyglot Persistence**: Different database types per area
35
+ 📦 **Extends DBML**: Fully compatible with standard DBML syntax
36
+ 💬 **Comment Preservation**: Leading comments are preserved and associated with elements
37
+
38
+ ## Installation
39
+
40
+ ```bash
41
+ npm install air-dml
42
+ ```
43
+
44
+ ## Quick Start
45
+
46
+ ```typescript
47
+ import { parseAirDML, exportToAirDML } from 'air-dml';
48
+
49
+ // Parse AIR-DML text
50
+ const airDmlText = `
51
+ Project "My Project" {
52
+ database_type: 'PostgreSQL'
53
+ }
54
+
55
+ // ユーザー管理
56
+ Table users [alias: "ユーザー", pos_x: 100, pos_y: 100, color: "#1976D2"] {
57
+ id serial [pk, alias: "ユーザーID"]
58
+ username varchar(100) [not null, unique, alias: "ユーザー名"]
59
+ email varchar(255) [not null, unique, alias: "メールアドレス"]
60
+ created_at timestamp [not null, alias: "作成日時"]
61
+ }
62
+
63
+ // プロフィール情報
64
+ Table profiles [alias: "プロフィール", pos_x: 500, pos_y: 100] {
65
+ id serial [pk, alias: "プロフィールID"]
66
+ user_id integer [fk, not null, unique, alias: "ユーザーID"]
67
+ full_name varchar(200) [alias: "氏名"]
68
+ bio text [alias: "自己紹介"]
69
+ }
70
+
71
+ Ref: profiles.user_id - users.id
72
+
73
+ Area "User Management" [
74
+ pos_x: 50,
75
+ pos_y: 50,
76
+ width: 600,
77
+ height: 300,
78
+ color: "#1976D2"
79
+ ] {
80
+ users
81
+ profiles
82
+
83
+ database_type: "PostgreSQL"
84
+
85
+ CommonColumns: [
86
+ created_at timestamp [not null, alias: "作成日時"]
87
+ updated_at timestamp [not null, alias: "更新日時"]
88
+ ]
89
+
90
+ Note: "ユーザー管理領域"
91
+ }
92
+ `;
93
+
94
+ const diagram = parseAirDML(airDmlText);
95
+ console.log(diagram);
96
+
97
+ // Export back to AIR-DML
98
+ const output = exportToAirDML(diagram);
99
+ console.log(output);
100
+ ```
101
+
102
+ ## AIR-DML Syntax
103
+
104
+ ### Table Definition
105
+
106
+ ```dbml
107
+ Table table_name [alias: "論理名", pos_x: 100, pos_y: 200, color: "#1976D2"] {
108
+ column_name data_type [constraints, alias: "カラム論理名"]
109
+
110
+ Note: "テーブルの説明"
111
+ }
112
+ ```
113
+
114
+ ### Column Constraints
115
+
116
+ | Constraint | Description | Example |
117
+ |------------|-------------|---------|
118
+ | `pk` | Primary Key | `id serial [pk]` |
119
+ | `fk` | Foreign Key (use with Ref) | `user_id integer [fk]` |
120
+ | `unique` | Unique constraint | `email varchar [unique]` |
121
+ | `not null` | NOT NULL constraint | `name varchar [not null]` |
122
+ | `increment` | Auto increment | `id integer [pk, increment]` |
123
+ | `alias: "name"` | Logical name | `[alias: "ユーザーID"]` |
124
+ | `note: "desc"` | Column description | `[note: "説明"]` |
125
+
126
+ ### Relationships
127
+
128
+ ```dbml
129
+ Ref: table_a.column > table_b.column // Many-to-One (A → B)
130
+ Ref: table_a.column < table_b.column // One-to-Many (A ← B)
131
+ Ref: table_a.column - table_b.column // One-to-One
132
+ Ref: table_a.column >< table_b.column // Many-to-Many
133
+ Ref: table_a.column ~ table_b.column // AI-inferred (undetermined)
134
+ ```
135
+
136
+ ### Area (Bounded Context)
137
+
138
+ ```dbml
139
+ Area "Area Name" [
140
+ pos_x: 50,
141
+ pos_y: 50,
142
+ width: 600,
143
+ height: 300,
144
+ color: "#1976D2"
145
+ ] {
146
+ table1
147
+ table2
148
+
149
+ database_type: "PostgreSQL"
150
+
151
+ CommonColumns: [
152
+ created_at timestamp [not null, alias: "作成日時"]
153
+ updated_at timestamp [not null, alias: "更新日時"]
154
+ ]
155
+
156
+ Note: "Area description"
157
+ }
158
+ ```
159
+
160
+ ## AI Generation Guidelines
161
+
162
+ When using AI to generate AIR-DML, follow these rules:
163
+
164
+ **Required:**
165
+ - Use **double quotes** for alias values: `alias: "論理名"` ✅
166
+ - Do NOT use single quotes: `alias: '論理名'` ❌
167
+ - Mark foreign key columns with `[fk]`
168
+ - Define relationships separately with `Ref:`
169
+ - Do NOT add inline comments after column definitions
170
+
171
+ **Example Output:**
172
+
173
+ ```dbml
174
+ // 定期購入機能
175
+ Table subscriptions [alias: "定期購入"] {
176
+ id serial [pk, alias: "定期購入ID"]
177
+ user_id integer [fk, not null, alias: "ユーザーID"]
178
+ product_id integer [fk, not null, alias: "商品ID"]
179
+ status text [not null, alias: "ステータス"]
180
+ created_at timestamp [not null, alias: "作成日時"]
181
+ }
182
+
183
+ Ref: subscriptions.user_id > users.id
184
+ Ref: subscriptions.product_id > products.id
185
+ ```
186
+
187
+ For complete AI generation guidelines, see [SPECIFICATION.md Section 5](./SPECIFICATION.md#5-ai生成時のガイドライン).
188
+
189
+ ## API Reference
190
+
191
+ ### `parseAirDML(airDmlText: string, diagramId?: string): Diagram`
192
+
193
+ Parse AIR-DML text into a Diagram object.
194
+
195
+ **Parameters:**
196
+ - `airDmlText` - AIR-DML formatted text
197
+ - `diagramId` - Optional diagram ID
198
+
199
+ **Returns:** `Diagram` object
200
+
201
+ ### `exportToAirDML(diagram: Diagram): string`
202
+
203
+ Export a Diagram object to AIR-DML text.
204
+
205
+ **Parameters:**
206
+ - `diagram` - Diagram object
207
+
208
+ **Returns:** AIR-DML formatted text
209
+
210
+ ## Type Definitions
211
+
212
+ ```typescript
213
+ interface Diagram {
214
+ id: string;
215
+ name: string;
216
+ project?: string;
217
+ database?: string;
218
+ tables: Table[];
219
+ references: Reference[];
220
+ areas?: Area[];
221
+ createdAt?: string;
222
+ updatedAt?: string;
223
+ note?: string;
224
+ }
225
+
226
+ interface Table {
227
+ id: string;
228
+ name: string;
229
+ logicalName?: string; // alias
230
+ columns: Column[];
231
+ color?: string;
232
+ pos?: Position;
233
+ areaIds?: string[];
234
+ note?: string;
235
+ leadingComments?: string[]; // v1.2.0+
236
+ }
237
+
238
+ interface Column {
239
+ name: string;
240
+ logicalName?: string; // alias
241
+ type: DataType;
242
+ typeParams?: string;
243
+ pk?: boolean;
244
+ fk?: boolean;
245
+ unique?: boolean;
246
+ notNull?: boolean;
247
+ increment?: boolean;
248
+ note?: string;
249
+ leadingComments?: string[]; // v1.2.0+
250
+ }
251
+
252
+ interface Reference {
253
+ id: string;
254
+ fromTable: string;
255
+ fromColumn: string;
256
+ toTable: string;
257
+ toColumn: string;
258
+ type: RelationshipType;
259
+ swapEdge?: boolean;
260
+ leadingComments?: string[]; // v1.2.0+
261
+ }
262
+
263
+ interface Area {
264
+ id: string;
265
+ name: string;
266
+ tables: string[];
267
+ color?: string;
268
+ pos?: Position;
269
+ width?: number;
270
+ height?: number;
271
+ labelHorizontal?: 'left' | 'center' | 'right';
272
+ labelVertical?: 'top' | 'center' | 'bottom';
273
+ databaseType?: string;
274
+ commonColumns?: Column[];
275
+ note?: string;
276
+ leadingComments?: string[]; // v1.2.0+
277
+ }
278
+ ```
279
+
280
+ ## Comparison: DBML vs AIR-DML
281
+
282
+ | Feature | DBML | AIR-DML |
283
+ |---------|------|---------|
284
+ | **Focus** | Database schema | AI-ready + Business context |
285
+ | **Logical names** | ❌ | ✅ `alias` attribute |
286
+ | **Area management** | TableGroup (basic) | Area (extended: CommonColumns, database_type) |
287
+ | **Visual info** | ❌ | ✅ Coordinates, colors, sizes |
288
+ | **Multi-DB** | Project-level | Area-level (polyglot persistence) |
289
+ | **AI optimization** | ❌ | ✅ LLM-friendly design |
290
+ | **Comment preservation** | ❌ | ✅ Leading comments (v1.2.0+) |
291
+
292
+ ## Changelog
293
+
294
+ ### v2.1.0 (2025-01)
295
+ - **Breaking**: Removed `default` column constraint from syntax
296
+ - Simplified parser by removing inconsistent quote handling for default values
297
+
298
+ ### v2.0.0 (2025-01)
299
+ - **Major**: Replaced `@dbml/core` dependency with custom hand-written recursive descent parser
300
+ - Full AIR-DML syntax support without external dependencies
301
+ - Improved error messages in Japanese
302
+ - Better handling of Japanese identifiers and comments
303
+
304
+ ### v1.2.3 (2025-01)
305
+ - Bug fixes for Area parsing with Japanese names
306
+ - Improved comment preservation
307
+ - Added AI generation guidelines to specification
308
+
309
+ ### v1.2.0 (2025-01)
310
+ - Added leading comment preservation for Tables, References, and Areas
311
+ - Added `leadingComments` field to type definitions
312
+ - Export comments back to AIR-DML format
313
+
314
+ ### v1.1.0 (2025-01)
315
+ - Added `labelHorizontal` and `labelVertical` attributes for Areas
316
+ - Added `swapEdge` attribute for References
317
+ - Improved Area attribute parsing
318
+
319
+ ### v1.0.0 (2025-01)
320
+ - Initial release
321
+ - Core AIR-DML parsing and export
322
+ - Support for alias, pos_x, pos_y, color attributes
323
+ - Area with CommonColumns and database_type
324
+
325
+ ## Specification
326
+
327
+ For the complete AIR-DML specification, see [SPECIFICATION.md](./SPECIFICATION.md).
328
+
329
+ ## License
330
+
331
+ Apache-2.0 License - see [LICENSE](./LICENSE) file for details.
332
+
333
+ AIR-DML extends [DBML](https://github.com/holistics/dbml) (also Apache-2.0).
334
+
335
+ ## Credits
336
+
337
+ - **Created by**: Data-mination Partners
338
+ - **Technical collaboration**: Claude Opus 4.5 (Anthropic)
339
+ - **Based on**: [@dbml/core](https://www.npmjs.com/package/@dbml/core) by Holistics
340
+
341
+ ## Links
342
+
343
+ - [GitHub Repository](https://github.com/hiroaki-handa/air-dml)
344
+ - [npm Package](https://www.npmjs.com/package/air-dml)
345
+ - [AIR-DML Specification](./SPECIFICATION.md)
346
+ - [Mode-ai](https://mode-ai.io) - Reference implementation (AI-Powered Data Modeling Tool)
347
+
348
+ ---
349
+
350
+ ## Trademarks
351
+
352
+ **AIR-DML™** (AI-Ready Data Modeling Language) is a trademark of Datamination Partners Co., Ltd.
353
+ Trademark Application No. 2026-000274 (Japan)
354
+
355
+ *AIR-DML™ — The Open Standard for AI-Ready Data Modeling.*
@@ -1,5 +1,5 @@
1
1
  import type { DataType } from './types';
2
- export declare const DATABASE_TYPES: readonly ["PostgreSQL", "MySQL", "Oracle", "SQL Server", "SQLite", "BigQuery", "Redshift"];
2
+ export declare const DATABASE_TYPES: readonly ["PostgreSQL", "MySQL", "Oracle", "SQL Server", "SQLite", "BigQuery", "Redshift", "Snowflake"];
3
3
  export type DatabaseType = typeof DATABASE_TYPES[number] | string;
4
4
  export declare function getDataTypesForDatabase(databaseType?: string): DataType[];
5
5
  export declare function getMergedDataTypes(databaseTypes: string[]): DataType[];
@@ -1 +1 @@
1
- {"version":3,"file":"database-types.d.ts","sourceRoot":"","sources":["../src/database-types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxC,eAAO,MAAM,cAAc,4FAQjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAOlE,wBAAgB,uBAAuB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,CA6MzE;AAOD,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAUtE"}
1
+ {"version":3,"file":"database-types.d.ts","sourceRoot":"","sources":["../src/database-types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxC,eAAO,MAAM,cAAc,yGASjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAOlE,wBAAgB,uBAAuB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,CAiPzE;AAOD,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAUtE"}
@@ -6,6 +6,7 @@ export const DATABASE_TYPES = [
6
6
  'SQLite',
7
7
  'BigQuery',
8
8
  'Redshift',
9
+ 'Snowflake',
9
10
  ];
10
11
  export function getDataTypesForDatabase(databaseType) {
11
12
  const dbType = databaseType?.toLowerCase() || 'postgresql';
@@ -173,6 +174,40 @@ export function getDataTypesForDatabase(databaseType) {
173
174
  'varchar',
174
175
  ];
175
176
  }
177
+ if (dbType.includes('snowflake')) {
178
+ return [
179
+ 'array',
180
+ 'bigint',
181
+ 'binary',
182
+ 'boolean',
183
+ 'byteint',
184
+ 'char',
185
+ 'date',
186
+ 'decimal',
187
+ 'double',
188
+ 'float',
189
+ 'geography',
190
+ 'geometry',
191
+ 'int',
192
+ 'integer',
193
+ 'number',
194
+ 'numeric',
195
+ 'object',
196
+ 'real',
197
+ 'smallint',
198
+ 'string',
199
+ 'text',
200
+ 'time',
201
+ 'timestamp',
202
+ 'timestamp_ltz',
203
+ 'timestamp_ntz',
204
+ 'timestamp_tz',
205
+ 'tinyint',
206
+ 'varbinary',
207
+ 'varchar',
208
+ 'variant',
209
+ ];
210
+ }
176
211
  return [
177
212
  'bigint',
178
213
  'bigserial',
@@ -1 +1 @@
1
- {"version":3,"file":"database-types.js","sourceRoot":"","sources":["../src/database-types.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,YAAY;IACZ,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,UAAU;CACF,CAAC;AASX,MAAM,UAAU,uBAAuB,CAAC,YAAqB;IAC3D,MAAM,MAAM,GAAG,YAAY,EAAE,WAAW,EAAE,IAAI,YAAY,CAAC;IAG3D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAChC,OAAO;YACL,QAAQ;YACR,WAAW;YACX,SAAS;YACT,OAAO;YACP,MAAM;YACN,MAAM;YACN,SAAS;YACT,kBAAkB;YAClB,SAAS;YACT,MAAM;YACN,OAAO;YACP,SAAS;YACT,MAAM;YACN,QAAQ;YACR,UAAU;YACV,MAAM;YACN,MAAM;YACN,WAAW;YACX,aAAa;YACb,MAAM;YACN,SAAS;SACV,CAAC;IACJ,CAAC;IAGD,IAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAC3D,OAAO;YACL,QAAQ;YACR,MAAM;YACN,SAAS;YACT,MAAM;YACN,MAAM;YACN,UAAU;YACV,SAAS;YACT,QAAQ;YACR,MAAM;YACN,OAAO;YACP,KAAK;YACL,MAAM;YACN,UAAU;YACV,UAAU;YACV,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,SAAS;YACT,KAAK;YACL,UAAU;YACV,MAAM;YACN,MAAM;YACN,WAAW;YACX,UAAU;YACV,SAAS;YACT,UAAU;YACV,SAAS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;YACN,SAAS;YACT,QAAQ;YACR,QAAQ;YACR,MAAM;YACN,WAAW;SACZ,CAAC;IACJ,CAAC;IAGD,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAChC,OAAO;YACL,QAAQ;YACR,SAAS;YACT,MAAM;YACN,MAAM;YACN,SAAS;YACT,kBAAkB;YAClB,UAAU;YACV,SAAS;YACT,SAAS;YACT,MAAM;YACN,UAAU;YACV,MAAM;YACN,MAAM;YACN,WAAW;YACX,aAAa;YACb,SAAS;SACV,CAAC;IACJ,CAAC;IAGD,OAAO;QACL,QAAQ;QACR,WAAW;QACX,SAAS;QACT,OAAO;QACP,MAAM;QACN,MAAM;QACN,SAAS;QACT,kBAAkB;QAClB,SAAS;QACT,MAAM;QACN,OAAO;QACP,SAAS;QACT,MAAM;QACN,QAAQ;QACR,UAAU;QACV,MAAM;QACN,MAAM;QACN,WAAW;QACX,aAAa;QACb,MAAM;QACN,SAAS;KACV,CAAC;AACJ,CAAC;AAOD,MAAM,UAAU,kBAAkB,CAAC,aAAuB;IACxD,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE1C,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAY,CAAC;IACrC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QAC7B,MAAM,KAAK,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAC9C,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"database-types.js","sourceRoot":"","sources":["../src/database-types.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,YAAY;IACZ,OAAO;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@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/parser/new/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAyB,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7E,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,UAAU,CAAC;AAS9B,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,gBAAqB,GAC7B,WAAW,CAkDb;AAyBD,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAyLvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/parser/new/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAyB,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7E,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,UAAU,CAAC;AAS9B,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,gBAAqB,GAC7B,WAAW,CAkDb;AAyBD,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAwLvD"}
@@ -62,7 +62,6 @@ export function exportToAirDML(diagram) {
62
62
  return '';
63
63
  return comments.map((c) => `// ${c}\n`).join('');
64
64
  };
65
- airDml += `// ${diagram.name}\n`;
66
65
  const projectName = diagram.project || diagram.name || 'Untitled';
67
66
  airDml += `Project ${escapeIdentifier(projectName)} {\n`;
68
67
  airDml += ` database_type: '${diagram.database || 'PostgreSQL'}'\n`;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/parser/new/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAyB,MAAM,eAAe,CAAC;AAI7E,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAyB,MAAM,eAAe,CAAC;AAW7E,MAAM,UAAU,WAAW,CACzB,UAAkB,EAClB,UAA4B,EAAE;IAE9B,IAAI,CAAC;QAEH,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC;QACpC,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAGhC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;QAClC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;QAGpD,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,CACxE,CAAC;QAGF,MAAM,OAA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AAC;AAED,SAAS,YAAY,CAAC,GAAuB;IAC3C,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC/E,CAAC"}
@@ -51,7 +51,7 @@ export interface Area {
51
51
  height?: number;
52
52
  labelHorizontal?: 'left' | 'center' | 'right';
53
53
  labelVertical?: 'top' | 'center' | 'bottom';
54
- databaseType?: 'PostgreSQL' | 'MySQL' | 'SQLite' | 'SQL Server' | 'Oracle' | 'BigQuery' | 'Redshift' | string;
54
+ databaseType?: 'PostgreSQL' | 'MySQL' | 'SQLite' | 'SQL Server' | 'Oracle' | 'BigQuery' | 'Redshift' | 'Snowflake' | string;
55
55
  commonColumns?: Column[];
56
56
  note?: string;
57
57
  leadingComments?: string[];
@@ -61,7 +61,7 @@ export interface Diagram {
61
61
  id: string;
62
62
  name: string;
63
63
  project?: string;
64
- database?: 'PostgreSQL' | 'MySQL' | 'SQLite' | 'SQL Server' | 'Oracle' | string;
64
+ database?: 'PostgreSQL' | 'MySQL' | 'SQLite' | 'SQL Server' | 'Oracle' | 'BigQuery' | 'Redshift' | 'Snowflake' | string;
65
65
  tables: Table[];
66
66
  references: Reference[];
67
67
  areas?: Area[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAMD,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,WAAW,GACX,SAAS,GACT,MAAM,GACN,MAAM,GACN,SAAS,GACT,MAAM,GACN,WAAW,GACX,aAAa,GACb,MAAM,GACN,MAAM,GACN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a,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAG5C,YAAY,CAAC,EAAE,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAC;IAG5H,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAGzB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAG3B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAKD,MAAM,WAAW,OAAO;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,QAAQ,CAAC,EAAE,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAC;IAGxH,MAAM,EAAE,KAAK,EAAE,CAAC;IAGhB,UAAU,EAAE,SAAS,EAAE,CAAC;IAGxB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IAGf,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAKD,MAAM,WAAW,WAAW;IAE1B,OAAO,EAAE,OAAO,CAAC;IAGjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB"}
package/package.json CHANGED
@@ -1,62 +1,62 @@
1
- {
2
- "name": "air-dml",
3
- "version": "2.1.0",
4
- "description": "AI-Ready Data Modeling Language - Independent AIR-DML parser with zero dependencies",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "module": "dist/index.js",
8
- "types": "dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "require": "./dist/index.js"
14
- }
15
- },
16
- "files": [
17
- "dist",
18
- "README.md",
19
- "LICENSE"
20
- ],
21
- "scripts": {
22
- "build": "tsc",
23
- "test": "vitest run",
24
- "test:watch": "vitest",
25
- "test:coverage": "vitest run --coverage",
26
- "prepublishOnly": "npm run build",
27
- "clean": "rm -rf dist"
28
- },
29
- "keywords": [
30
- "air-dml",
31
- "dbml",
32
- "database",
33
- "erd",
34
- "schema",
35
- "ai",
36
- "data-modeling",
37
- "parser",
38
- "database-design",
39
- "ai-ready",
40
- "llm",
41
- "mode-ai"
42
- ],
43
- "author": "Data-mination Partners",
44
- "license": "Apache-2.0",
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/hiroaki-handa/air-dml.git"
48
- },
49
- "homepage": "https://github.com/hiroaki-handa/air-dml#readme",
50
- "bugs": {
51
- "url": "https://github.com/hiroaki-handa/air-dml/issues"
52
- },
53
- "dependencies": {},
54
- "devDependencies": {
55
- "typescript": "^5.0.0",
56
- "@types/node": "^20.0.0",
57
- "vitest": "^2.0.0"
58
- },
59
- "engines": {
60
- "node": ">=18.0.0"
61
- }
62
- }
1
+ {
2
+ "name": "air-dml",
3
+ "version": "2.1.2",
4
+ "description": "AI-Ready Data Modeling Language - Independent AIR-DML parser with zero dependencies",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsc",
23
+ "test": "vitest run",
24
+ "test:watch": "vitest",
25
+ "test:coverage": "vitest run --coverage",
26
+ "prepublishOnly": "npm run build",
27
+ "clean": "rm -rf dist"
28
+ },
29
+ "keywords": [
30
+ "air-dml",
31
+ "dbml",
32
+ "database",
33
+ "erd",
34
+ "schema",
35
+ "ai",
36
+ "data-modeling",
37
+ "parser",
38
+ "database-design",
39
+ "ai-ready",
40
+ "llm",
41
+ "mode-ai"
42
+ ],
43
+ "author": "Data-mination Partners",
44
+ "license": "Apache-2.0",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://github.com/hiroaki-handa/air-dml.git"
48
+ },
49
+ "homepage": "https://github.com/hiroaki-handa/air-dml#readme",
50
+ "bugs": {
51
+ "url": "https://github.com/hiroaki-handa/air-dml/issues"
52
+ },
53
+ "dependencies": {},
54
+ "devDependencies": {
55
+ "typescript": "^5.0.0",
56
+ "@types/node": "^20.0.0",
57
+ "vitest": "^2.0.0"
58
+ },
59
+ "engines": {
60
+ "node": ">=18.0.0"
61
+ }
62
+ }