import { useEffect } from 'react';
import { Text } from 'react-native';
import { executeQuery, initDatabase, addCategory } from '../../../services/database';

export default function Page() {

    useEffect(() => {
        initDatabase().then();
        addCategory("Test Category 2", "FFFFFF", "budget").then();

        executeQuery("SELECT * FROM category").then((res) => {
            console.log(res);
        });;

        //deleteDatabase();
    });



    return <Text>Budget Page</Text>;
}