integrated dev

This commit is contained in:
Jakob Stornig 2023-12-08 16:24:21 +01:00
parent 424407faf3
commit 4d745c4a3a
4 changed files with 206 additions and 2 deletions

View file

@ -1,5 +1,21 @@
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>;
}