IdbParams: {
    db_getHex: ["testDB", "myKey"];
    db_getString: ["testDB", "myKey"];
    db_putHex: ["testDB", "myKey", "0x68656c6c6f20776f726c64"];
    db_putString: ["testDB", "myKey", "myString"];
}

Type declaration

  • db_getHex: ["testDB", "myKey"]

    Returns binary data from the local database.

    Note: this function is deprecated and will be removed in the future.

    Parameters

    String - Database name.

    String - Key name.

    params: [
    "testDB",
    "myKey",
    ]

    Returns

    DATA - The previously stored data.

  • db_getString: ["testDB", "myKey"]

    Returns string from the local database.

    Note: this function is deprecated and will be removed in the future.

    Parameters

    String - Database name.

    String - Key name.

    params: [
    "testDB",
    "myKey"
    ]

    Returns

    String - The previously stored string.

  • db_putHex: ["testDB", "myKey", "0x68656c6c6f20776f726c64"]

    Stores binary data in the local database.

    Note: this function is deprecated and will be removed in the future.

    Parameters

    String - Database name.

    String - Key name.

    DATA - The data to store.

    params: [
    "testDB",
    "myKey",
    "0x68656c6c6f20776f726c64"
    ]

    Returns

    Boolean - returns true if the value was stored, otherwise false.

  • db_putString: ["testDB", "myKey", "myString"]

    Stores a string in the local database.

    Note: this function is deprecated and will be removed in the future.

    Parameters

    String - Database name.

    String - Key name.

    String - String to store.

    params: [
    "testDB",
    "myKey",
    "myString"
    ]

    Returns

    Boolean - returns true if the value was stored, otherwise false.

Generated using TypeDoc