Bug 1459218 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Bugs are assigned automatically when a patch is attached.

The scope of the bug is to remove DBConn() from https://searchfox.org/mozilla-central/rev/5f7ad06a2cffb7eda69229238b15198994b548e0/toolkit/components/places/tests/head_common.js#101-134 and then fix all the callers using Sqlite.sys.mjs syntax, that means one of:
Read-only SELECT query:
```
let db = await PlacesUtils.promiseDatabaseConnection();
let rows = await db.execute(<sql_query>, <query_params>);
```
Read/write query:
```
await PlacesUtils.withConnectionWrapper(<unique_label>, async db => {
  let rows = await db.execute(<sql_query>, <query_params>);
});
```
There are many examples, you can search on searchfox.org

After modifying the code, you can `./mach build faster` and `./mach test toolkit/components/places` to verify
Bugs are assigned automatically when a patch is attached.

The scope of the bug is to remove DBConn() from https://searchfox.org/mozilla-central/rev/5f7ad06a2cffb7eda69229238b15198994b548e0/toolkit/components/places/tests/head_common.js#101-134 and then fix all the callers using Sqlite.sys.mjs syntax, that means one of:
Read-only SELECT query:
```
let db = await PlacesUtils.promiseDatabaseConnection();
let rows = await db.execute(<sql_query>, <query_params>);
```
Read/write query:
```
await PlacesUtils.withConnectionWrapper(<unique_label>, async db => {
  await db.execute(<sql_query>, <query_params>);
});
```
There are many examples, you can search on searchfox.org

After modifying the code, you can `./mach build faster` and `./mach test toolkit/components/places` to verify

Back to Bug 1459218 Comment 2