Using Sequelize and SQLite, and having a table like:
A | B
a | 1
b | 2
c | 3
I would like to create a map using a query via Sequelize, giving the following result:
{
a: 1,
b: 2,
c: 3
}
How can I do that? I can do a findAll and then a docs.reduce(...), but I would like to extract that directly from SQLite if possible.