Created
May 9, 2020 11:55
-
-
Save haldarmahesh/3b0c1c5a71cf27eea4ba09b226e1ef13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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