@mastra/libsql 1.0.0-beta.7 → 1.0.0-beta.8
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/CHANGELOG.md +44 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/operations/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +2 -8
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +2 -8
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -2532,9 +2532,7 @@ var StoreOperationsLibSQL = class extends StoreOperations {
|
|
|
2532
2532
|
const parsedTableName = parseSqlIdentifier(tableName, "table name");
|
|
2533
2533
|
const columns = Object.entries(schema).map(([name, col]) => {
|
|
2534
2534
|
const parsedColumnName = parseSqlIdentifier(name, "column name");
|
|
2535
|
-
|
|
2536
|
-
if (type === "TEXT") type = "TEXT";
|
|
2537
|
-
if (type === "TIMESTAMP") type = "TEXT";
|
|
2535
|
+
const type = this.getSqlType(col.type);
|
|
2538
2536
|
const nullable = col.nullable ? "" : "NOT NULL";
|
|
2539
2537
|
const primaryKey = col.primaryKey ? "PRIMARY KEY" : "";
|
|
2540
2538
|
return `${parsedColumnName} ${type} ${nullable} ${primaryKey}`.trim();
|
|
@@ -2582,9 +2580,11 @@ var StoreOperationsLibSQL = class extends StoreOperations {
|
|
|
2582
2580
|
case "bigint":
|
|
2583
2581
|
return "INTEGER";
|
|
2584
2582
|
// SQLite uses INTEGER for all integer sizes
|
|
2585
|
-
case "
|
|
2583
|
+
case "timestamp":
|
|
2586
2584
|
return "TEXT";
|
|
2587
|
-
// Store
|
|
2585
|
+
// Store timestamps as ISO strings in SQLite
|
|
2586
|
+
// jsonb falls through to base class which returns 'JSONB'
|
|
2587
|
+
// SQLite's flexible type system treats JSONB as TEXT affinity
|
|
2588
2588
|
default:
|
|
2589
2589
|
return super.getSqlType(type);
|
|
2590
2590
|
}
|