@tinycloud/sdk-services 2.4.0-beta.12 → 2.4.0-beta.14

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.cjs CHANGED
@@ -1893,7 +1893,9 @@ var DatabaseHandle = class {
1893
1893
  var SQLAction = {
1894
1894
  READ: "tinycloud.sql/read",
1895
1895
  WRITE: "tinycloud.sql/write",
1896
- DDL: "tinycloud.sql/ddl",
1896
+ SCHEMA: "tinycloud.sql/schema",
1897
+ /** @deprecated Use SQLAction.SCHEMA. */
1898
+ DDL: "tinycloud.sql/schema",
1897
1899
  ADMIN: "tinycloud.sql/admin",
1898
1900
  SELECT: "tinycloud.sql/select",
1899
1901
  INSERT: "tinycloud.sql/insert",
@@ -2013,7 +2015,7 @@ var SQLService = class extends BaseService {
2013
2015
  const actions = [
2014
2016
  this.actionForSql(sql, SQLAction.WRITE),
2015
2017
  ...(options?.schema ?? []).map(
2016
- (statement) => this.actionForSql(statement, SQLAction.DDL)
2018
+ (statement) => this.actionForSql(statement, SQLAction.SCHEMA)
2017
2019
  )
2018
2020
  ];
2019
2021
  const response = await this.invokeSQL(
@@ -2193,7 +2195,7 @@ var SQLService = class extends BaseService {
2193
2195
  actionForSql(sql, fallback) {
2194
2196
  const token = firstSqlToken(sql);
2195
2197
  if (token === "pragma") return SQLAction.ADMIN;
2196
- if (token !== void 0 && DDL_TOKENS.has(token)) return SQLAction.DDL;
2198
+ if (token !== void 0 && DDL_TOKENS.has(token)) return SQLAction.SCHEMA;
2197
2199
  return fallback;
2198
2200
  }
2199
2201
  actionsForSqlBatch(statements) {