Skip to content

Instantly share code, notes, and snippets.

@haldarmahesh
Created May 9, 2020 11:55
Show Gist options
  • Save haldarmahesh/3b0c1c5a71cf27eea4ba09b226e1ef13 to your computer and use it in GitHub Desktop.
Save haldarmahesh/3b0c1c5a71cf27eea4ba09b226e1ef13 to your computer and use it in GitHub Desktop.
let contactsLocalDatabase = new ContactLocalDatabase("Contact table");
await contactsLocalDatabase.get(21);
const contactModel: ContactTable = {
id: 12,
name: 'Some name',
..., // define all other values.
...
}
await contactsLocalDatabase.insert(contactModel);
const contactArray: Array<ContactModel> = contactsLocalDatabase.getFormattedData();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment