@famgia/omnify-sql 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. package/README.md +29 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -61,7 +61,35 @@ for (const migration of migrations) {
61
61
 
62
62
  ## Data Types
63
63
 
64
- ### Standard Types
64
+ ### Type Compatibility Matrix
65
+
66
+ | Omnify Type | MySQL | PostgreSQL | SQLite | Notes |
67
+ |-------------|:-----:|:----------:|:------:|-------|
68
+ | `String` | ✅ | ✅ | ✅ | |
69
+ | `Int` | ✅ | ✅ | ✅ | |
70
+ | `BigInt` | ✅ | ✅ | ✅ | |
71
+ | `Float` | ✅ | ✅ | ✅ | |
72
+ | `Decimal` | ✅ | ✅ | ⚠️ | SQLite uses REAL (less precision) |
73
+ | `Boolean` | ✅ | ✅ | ✅ | |
74
+ | `Text` | ✅ | ✅ | ✅ | |
75
+ | `LongText` | ✅ | ✅ | ✅ | |
76
+ | `Date` | ✅ | ✅ | ⚠️ | SQLite uses TEXT |
77
+ | `Time` | ✅ | ✅ | ⚠️ | SQLite uses TEXT |
78
+ | `Timestamp` | ✅ | ✅ | ⚠️ | SQLite uses TEXT |
79
+ | `Json` | ✅ | ✅ | ⚠️ | SQLite uses TEXT (no JSON functions) |
80
+ | `Email` | ✅ | ✅ | ✅ | |
81
+ | `Password` | ✅ | ✅ | ✅ | |
82
+ | `File` | ✅ | ✅ | ✅ | |
83
+ | `MultiFile` | ✅ | ✅ | ⚠️ | SQLite uses TEXT |
84
+ | `Point` | ✅ | ✅ | ❌ | **Error** - SQLite not supported |
85
+ | `Coordinates` | ✅ | ✅ | ✅ | Cross-DB compatible |
86
+ | `Enum` | ✅ | ✅ | ✅ | |
87
+ | `Select` | ✅ | ✅ | ✅ | |
88
+ | `Lookup` | ✅ | ✅ | ✅ | |
89
+
90
+ Legend: ✅ Full support | ⚠️ Works with limitations | ❌ Not supported (throws error)
91
+
92
+ ### SQL Type Mappings
65
93
 
66
94
  | Omnify Type | MySQL | PostgreSQL | SQLite |
67
95
  |-------------|-------|------------|--------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famgia/omnify-sql",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Raw SQL migration generator for Omnify Schema",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -32,13 +32,13 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@famgia/omnify-types": "0.0.8"
35
+ "@famgia/omnify-types": "0.0.9"
36
36
  },
37
37
  "devDependencies": {
38
38
  "tsup": "^8.5.1",
39
39
  "typescript": "^5.8.3",
40
40
  "vitest": "^1.6.1",
41
- "@famgia/omnify-core": "0.0.8"
41
+ "@famgia/omnify-core": "0.0.9"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@famgia/omnify-core": ">=0.0.7"