Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

query.js 576B

123456789101112131415161718
  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 function sqlite_exec_query(inQuery, inCallback){
  5. sqlite_exec_parameterised(inQuery, [], inCallback);
  6. }
  7. export function sqlite_exec_parameterised(inQuery, inParams, inCallback){
  8. // console.log(inQuery);
  9. db.transaction((tx) => {
  10. tx.executeSql(inQuery, inParams,
  11. (txobj, res) => inCallback(res),
  12. (txobj, err) => {console.log("query.js error |");console.log(err);})
  13. })
  14. }