ui: Rename queryV2 -> query

find ui/src -type f | grep 'ts$' | xargs gsed -i 's/queryV2/query/g'

Change-Id: Ie6814e1f4195b9613d2e9f163ed6673c3d15057b
diff --git a/ui/src/controller/heap_profile_controller.ts b/ui/src/controller/heap_profile_controller.ts
index f8d11bb..8ec8e34 100644
--- a/ui/src/controller/heap_profile_controller.ts
+++ b/ui/src/controller/heap_profile_controller.ts
@@ -58,12 +58,12 @@
       // TODO(hjd): This should be LRU.
       if (this.cache.size > this.cacheSizeLimit) {
         for (const name of this.cache.values()) {
-          await this.engine.queryV2(`drop table ${name}`);
+          await this.engine.query(`drop table ${name}`);
         }
         this.cache.clear();
       }
       tableName = `${this.prefix}_${this.tableId++}`;
-      await this.engine.queryV2(
+      await this.engine.query(
           `create temp table if not exists ${tableName} as ${query}`);
       this.cache.set(query, tableName);
     }
@@ -268,7 +268,7 @@
         break;
     }
 
-    const callsites = await this.args.engine.queryV2(`
+    const callsites = await this.args.engine.query(`
         SELECT
         id as hash,
         IFNULL(DEMANGLE(name), name) as name,
@@ -387,7 +387,7 @@
 
     // Collecting data for more information about heap profile, such as:
     // total memory allocated, memory that is allocated and not freed.
-    const result = await this.args.engine.queryV2(
+    const result = await this.args.engine.query(
         `select pid from process where upid = ${upid}`);
     const pid = result.firstRow({pid: NUM}).pid;
     const startTime = fromNs(ts) - globals.state.traceTime.startSec;