-
-
Save uno-de-piera/85c2d2d9794fc61042d7582f016223c5 to your computer and use it in GitHub Desktop.
This file contains 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
@Injectable() | |
export class LocalProvider { | |
public objDB; | |
/** | |
* | |
* @param sqlite | |
*/ | |
constructor( | |
public sqlite: SQLite | |
) { | |
if( ! this.isOpen) { | |
this.objDB = this.sqlite.create({ | |
name: 'app.db', | |
location: 'default' | |
}); | |
this.isOpen = true; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment