@saltcorn/sqlite-mobile
Advanced tools
Comparing version 0.7.3-beta.2 to 0.7.3-beta.3
@@ -79,2 +79,16 @@ /** | ||
/** | ||
* Add unique constraint | ||
* @param table_name - table name | ||
* @param field_names - list of columns (members of constraint) | ||
* @returns no result | ||
*/ | ||
export declare const add_unique_constraint: (table_name: string, field_names: string[]) => Promise<void>; | ||
/** | ||
* Drop unique constraint | ||
* @param table_name - table name | ||
* @param field_names - list of columns (members of constraint) | ||
* @returns no results | ||
*/ | ||
export declare const drop_unique_constraint: (table_name: string, field_names: string[]) => Promise<void>; | ||
/** | ||
* | ||
@@ -81,0 +95,0 @@ * @returns |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.listScTables = exports.listUserDefinedTables = exports.listTables = 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.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"); | ||
@@ -167,2 +167,22 @@ const sqlite_commons_1 = require("@saltcorn/db-common/sqlite-commons"); | ||
/** | ||
* Add unique constraint | ||
* @param table_name - table name | ||
* @param field_names - list of columns (members of constraint) | ||
* @returns no result | ||
*/ | ||
const add_unique_constraint = async (table_name, field_names) => { | ||
await (0, sqlite_commons_1.do_add_unique_constraint)(table_name, field_names, exports.query); | ||
}; | ||
exports.add_unique_constraint = add_unique_constraint; | ||
/** | ||
* Drop unique constraint | ||
* @param table_name - table name | ||
* @param field_names - list of columns (members of constraint) | ||
* @returns no results | ||
*/ | ||
const drop_unique_constraint = async (table_name, field_names) => { | ||
await (0, sqlite_commons_1.do_drop_unique_constraint)(table_name, field_names, exports.query); | ||
}; | ||
exports.drop_unique_constraint = drop_unique_constraint; | ||
/** | ||
* | ||
@@ -169,0 +189,0 @@ * @returns |
{ | ||
"name": "@saltcorn/sqlite-mobile", | ||
"version": "0.7.3-beta.2", | ||
"version": "0.7.3-beta.3", | ||
"description": "cordova-sqlite-storage structures for Saltcorn, open-source no-code platform", | ||
@@ -28,3 +28,3 @@ "homepage": "https://saltcorn.com", | ||
"dependencies": { | ||
"@saltcorn/db-common": "0.7.3-beta.2" | ||
"@saltcorn/db-common": "0.7.3-beta.3" | ||
}, | ||
@@ -31,0 +31,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
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
53433
342
+ Added@saltcorn/db-common@0.7.3-beta.3(transitive)
- Removed@saltcorn/db-common@0.7.3-beta.2(transitive)