Skip to content

Instantly share code, notes, and snippets.

@exlnt
exlnt / CategoryDB
Last active February 5, 2022 15:13
SQL Lite DB helper class used in React-Native EXPO app.
import * as Constants from "../constants/constants";
import * as SQLite from "expo-sqlite";
const db = SQLite.openDatabase(Constants.SQLLITE_Database_Name);
export default class BudgetCategoryDB {
// Init DB and create table
initDB() {
return new Promise((resolve) => {
db.transaction((tx) => {