Skip to content

Conversation

@jayjay-w
Copy link
Owner

This branch is based on the prepare branch, and contains code to interface with the database. This enables full database logging.

To be reviewed after #3

@roideuniverse
Copy link
Collaborator

Once you merge the previous PR, rebase this with the master and assign it back to me.

@jayjay-w jayjay-w force-pushed the history/database_helper branch from 65c4e13 to c2d971f Compare July 31, 2015 04:58
jayjay-w added 5 commits July 31, 2015 08:03
This class contains sql code and column names to be used in the
history plugin's code.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
The DatabaseManager class contains code to interact with the history
plugin's database. Functions such as database creation, table creation,
inserts and searches are handled in this class.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
This enables logging of chats to an sqlite database. The plugin
intercepts each sent/received message and logs it to the database
file in the user's app data folder.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Add SQL code to be used when retrieving the contacts involved in chats
for a particular account.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Prefix the functions for getting SQL queries with sql_ for easier
reference.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
@jayjay-w jayjay-w force-pushed the history/database_helper branch from c2d971f to 9896325 Compare July 31, 2015 05:04
@jayjay-w
Copy link
Owner Author

Done. Rebased with master.

@jayjay-w jayjay-w assigned roideuniverse and unassigned jayjay-w Jul 31, 2015
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets make it a TODO Shall we ?

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Whitespace correction.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
This avoids hand coding column names in the C++ code.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
@jayjay-w
Copy link
Owner Author

jayjay-w commented Aug 1, 2015

I have assigned this back to you. I will read more about the K_GLOBAL_STATIC.

@jayjay-w jayjay-w assigned roideuniverse and unassigned jayjay-w Aug 1, 2015
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space ❗

Fix some of the longer lines to a manageable length.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
@jayjay-w
Copy link
Owner Author

jayjay-w commented Aug 3, 2015

I am working on a StringBuilder class now.

@jayjay-w jayjay-w assigned roideuniverse and unassigned jayjay-w Aug 3, 2015
Emit error messages when the database is not open.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roideuniverse
Copy link
Collaborator

@josh-wambua : If you are still working on a few stuff, you should probably finish them up before assigning it back to me. 😸

@roideuniverse
Copy link
Collaborator

Any updates on this one?

@jayjay-w
Copy link
Owner Author

jayjay-w commented Aug 6, 2015

QueryBuilder coming up tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants