You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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