@mastra/libsql 1.30.0-alpha.1 → 1.30.0-alpha.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/dist/index.js CHANGED
@@ -1447,8 +1447,9 @@ var LibSQLVector = class extends MastraVector {
1447
1447
  }
1448
1448
  }
1449
1449
  async _doTruncateIndex({ indexName }) {
1450
+ const parsedIndexName = parseSqlIdentifier(indexName, "index name");
1450
1451
  await this.turso.execute({
1451
- sql: `DELETE FROM ${parseSqlIdentifier(indexName, "index name")}`,
1452
+ sql: `DELETE FROM ${parsedIndexName} WHERE rowid IS NOT NULL`,
1452
1453
  args: []
1453
1454
  });
1454
1455
  }