integrated dev
This commit is contained in:
parent
424407faf3
commit
4d745c4a3a
4 changed files with 206 additions and 2 deletions
|
|
@ -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>;
|
||||
}
|
||||
Reference in a new issue