1234567891011121314 |
- // https://github.com/expo/examples/blob/master/with-sqlite/App.js
- import * as SQLite from 'expo-sqlite';
-
- const db = SQLite.openDatabase("datacoucou.db");
-
-
- export default function sqlite_exec_query(inQuery, inCallback){
-
- db.transaction((tx) => {
- tx.executeSql(inQuery, [],
- (txobj, res) => inCallback(res),
- (txobj, err) => {console.log("er");console.log(err);})
- })
- }
|