@capacitor-community/sqlite 3.4.2-4 → 3.4.3-1

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/esm/web.d.ts CHANGED
@@ -1,22 +1,14 @@
1
1
  import { WebPlugin } from '@capacitor/core';
2
- import type { CapacitorSQLitePlugin, capEchoOptions, capSQLiteOptions, capSQLiteExecuteOptions, capSQLiteSetOptions, capSQLiteRunOptions, capSQLiteQueryOptions, capSQLiteImportOptions, capSQLiteExportOptions, capSQLiteSyncDateOptions, capSQLiteUpgradeOptions, capSQLiteTableOptions, capSQLitePathOptions, capEchoResult, capVersionResult, capSQLiteResult, capSQLiteChanges, capSQLiteValues, capSQLiteJson, capSQLiteSyncDate, capAllConnectionsOptions, capSetSecretOptions, capChangeSecretOptions, capSQLiteFromAssetsOptions, capNCDatabasePathOptions, capNCConnectionOptions, capNCOptions, capNCDatabasePathResult, capSQLiteUrl } from './definitions';
2
+ import { CapacitorSQLitePlugin, capAllConnectionsOptions, capChangeSecretOptions, capEchoOptions, capEchoResult, capNCConnectionOptions, capNCDatabasePathOptions, capNCDatabasePathResult, capNCOptions, capSetSecretOptions, capSQLiteChanges, capSQLiteExecuteOptions, capSQLiteExportOptions, capSQLiteFromAssetsOptions, capSQLiteImportOptions, capSQLiteJson, capSQLiteOptions, capSQLitePathOptions, capSQLiteQueryOptions, capSQLiteResult, capSQLiteRunOptions, capSQLiteSetOptions, capSQLiteSyncDate, capSQLiteSyncDateOptions, capSQLiteTableOptions, capSQLiteUpgradeOptions, capSQLiteUrl, capSQLiteValues, capVersionResult } from './definitions';
3
3
  export declare class CapacitorSQLiteWeb extends WebPlugin implements CapacitorSQLitePlugin {
4
- private sqliteEl;
5
- private isStoreOpen;
4
+ private jeepSqliteElement;
5
+ private isWebStoreOpen;
6
6
  initWebStore(): Promise<void>;
7
7
  saveToStore(options: capSQLiteOptions): Promise<void>;
8
8
  echo(options: capEchoOptions): Promise<capEchoResult>;
9
- isSecretStored(): Promise<capSQLiteResult>;
10
- setEncryptionSecret(options: capSetSecretOptions): Promise<void>;
11
- changeEncryptionSecret(options: capChangeSecretOptions): Promise<void>;
12
- getNCDatabasePath(options: capNCDatabasePathOptions): Promise<capNCDatabasePathResult>;
13
- createNCConnection(options: capNCConnectionOptions): Promise<void>;
14
- closeNCConnection(options: capNCOptions): Promise<void>;
15
- isNCDatabase(options: capNCOptions): Promise<capSQLiteResult>;
16
9
  createConnection(options: capSQLiteOptions): Promise<void>;
17
10
  open(options: capSQLiteOptions): Promise<void>;
18
11
  closeConnection(options: capSQLiteOptions): Promise<void>;
19
- getUrl(): Promise<capSQLiteUrl>;
20
12
  getVersion(options: capSQLiteOptions): Promise<capVersionResult>;
21
13
  checkConnectionsConsistency(options: capAllConnectionsOptions): Promise<capSQLiteResult>;
22
14
  close(options: capSQLiteOptions): Promise<void>;
@@ -39,7 +31,23 @@ export declare class CapacitorSQLiteWeb extends WebPlugin implements CapacitorSQ
39
31
  addUpgradeStatement(options: capSQLiteUpgradeOptions): Promise<void>;
40
32
  copyFromAssets(options: capSQLiteFromAssetsOptions): Promise<void>;
41
33
  getDatabaseList(): Promise<capSQLiteValues>;
34
+ /**
35
+ * Checks if the `jeep-sqlite` element is present in the DOM.
36
+ * If it's not in the DOM, this method throws an Error.
37
+ *
38
+ * Attention: This will always fail, if the `intWebStore()` method wasn't called before.
39
+ */
40
+ private ensureJeepSqliteIsAvailable;
41
+ private ensureWebstoreIsOpen;
42
+ getUrl(): Promise<capSQLiteUrl>;
42
43
  getMigratableDbList(options: capSQLitePathOptions): Promise<capSQLiteValues>;
43
44
  addSQLiteSuffix(options: capSQLitePathOptions): Promise<void>;
44
45
  deleteOldDatabases(options: capSQLitePathOptions): Promise<void>;
46
+ isSecretStored(): Promise<capSQLiteResult>;
47
+ setEncryptionSecret(options: capSetSecretOptions): Promise<void>;
48
+ changeEncryptionSecret(options: capChangeSecretOptions): Promise<void>;
49
+ getNCDatabasePath(options: capNCDatabasePathOptions): Promise<capNCDatabasePathResult>;
50
+ createNCConnection(options: capNCConnectionOptions): Promise<void>;
51
+ closeNCConnection(options: capNCOptions): Promise<void>;
52
+ isNCDatabase(options: capNCOptions): Promise<capSQLiteResult>;
45
53
  }