您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }