air-dml 2.1.10 → 2.1.11
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 +17 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ import { parseAirDML, exportToAirDML } from 'air-dml';
|
|
|
49
49
|
// Parse AIR-DML text
|
|
50
50
|
const airDmlText = `
|
|
51
51
|
Project "My Project" {
|
|
52
|
-
database_type:
|
|
52
|
+
database_type: "PostgreSQL"
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
// ユーザー管理
|
|
@@ -228,6 +228,22 @@ Export a Diagram object to AIR-DML text.
|
|
|
228
228
|
|
|
229
229
|
**Returns:** AIR-DML formatted text
|
|
230
230
|
|
|
231
|
+
### `getDataTypesForDatabase(database: string): string[]`
|
|
232
|
+
|
|
233
|
+
Get the list of supported data types for a specific database.
|
|
234
|
+
|
|
235
|
+
**Parameters:**
|
|
236
|
+
- `database` - Database name: `"PostgreSQL"` | `"MySQL"` | `"SQLite"` | `"SQL Server"` | `"Oracle"` | `"BigQuery"` | `"Redshift"` | `"Snowflake"`
|
|
237
|
+
|
|
238
|
+
**Returns:** Array of data type strings
|
|
239
|
+
|
|
240
|
+
```typescript
|
|
241
|
+
import { getDataTypesForDatabase } from 'air-dml';
|
|
242
|
+
|
|
243
|
+
const types = getDataTypesForDatabase('PostgreSQL');
|
|
244
|
+
// ["integer", "bigint", "varchar", "text", "boolean", "timestamp", ...]
|
|
245
|
+
```
|
|
246
|
+
|
|
231
247
|
## Type Definitions
|
|
232
248
|
|
|
233
249
|
```typescript
|