@saltcorn/sqlite-mobile
Advanced tools
Comparing version 0.7.4 to 0.8.0-beta.0
@@ -107,2 +107,8 @@ /** | ||
export declare const listScTables: () => Promise<any>; | ||
/** | ||
* | ||
* @param name table name | ||
* @returns | ||
*/ | ||
export declare const tableExists: (name: string) => Promise<any>; | ||
//# sourceMappingURL=sqlite-cordova.d.ts.map |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.listScTables = exports.listUserDefinedTables = exports.listTables = exports.drop_unique_constraint = exports.add_unique_constraint = exports.update = exports.selectOne = exports.selectMaybeOne = exports.deleteWhere = exports.count = exports.drop_reset_schema = exports.select = exports.insert = exports.query = exports.init = exports.setConnectionObject = void 0; | ||
exports.tableExists = exports.listScTables = exports.listUserDefinedTables = exports.listTables = exports.drop_unique_constraint = exports.add_unique_constraint = exports.update = exports.selectOne = exports.selectMaybeOne = exports.deleteWhere = exports.count = exports.drop_reset_schema = exports.select = exports.insert = exports.query = exports.init = exports.setConnectionObject = void 0; | ||
const internal_1 = require("@saltcorn/db-common/internal"); | ||
@@ -42,3 +42,3 @@ const sqlite_commons_1 = require("@saltcorn/db-common/sqlite-commons"); | ||
if (params?.length) { | ||
/// https://github.com/storesafe/cordova-sqlite-storage/issues/545 | ||
// https://github.com/storesafe/cordova-sqlite-storage/issues/545 | ||
params = params.map((param) => param === false ? 0 : param === true ? 1 : param); | ||
@@ -211,2 +211,12 @@ } | ||
exports.listScTables = listScTables; | ||
/** | ||
* | ||
* @param name table name | ||
* @returns | ||
*/ | ||
const tableExists = async (name) => { | ||
const tables = await (0, exports.listTables)(); | ||
return tables.find((table) => table.name === name); | ||
}; | ||
exports.tableExists = tableExists; | ||
//# sourceMappingURL=sqlite-cordova.js.map |
{ | ||
"name": "@saltcorn/sqlite-mobile", | ||
"version": "0.7.4", | ||
"version": "0.8.0-beta.0", | ||
"description": "cordova-sqlite-storage structures for Saltcorn, open-source no-code platform", | ||
@@ -29,3 +29,3 @@ "homepage": "https://saltcorn.com", | ||
"dependencies": { | ||
"@saltcorn/db-common": "0.7.4" | ||
"@saltcorn/db-common": "0.8.0-beta.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "repository": "github:saltcorn/saltcorn", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17773
358
+ Added@saltcorn/db-common@0.8.0-beta.0(transitive)
- Removed@saltcorn/db-common@0.7.4(transitive)