Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (async () => {
  2.   const db = await SQLite.openDatabase({ name: 'typeorm.db', location: 'default' });
  3.  
  4.   try {
  5.     const a = Reactotron!.benchmark!('raw start');
  6.     const [res] = await db.executeSql(sql);
  7.     a.stop('raw end');
  8.     Reactotron.warn([res.rows.length, res.rows.item(0)]);
  9.   } catch (e) {
  10.     console.error(e);
  11.   }
  12. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement