Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 23, 2018 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/85c2d2d9794fc61042d7582f016223c5 to your computer and use it in GitHub Desktop.
Save uno-de-piera/85c2d2d9794fc61042d7582f016223c5 to your computer and use it in GitHub Desktop.
@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