Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Database Abstraction #15

Merged
merged 56 commits into from
Sep 7, 2017
Merged

Database Abstraction #15

merged 56 commits into from
Sep 7, 2017

Conversation

BraindeadOne
Copy link

@BraindeadOne BraindeadOne commented Sep 3, 2017

This is a truly huge update that separates database access from business-logic.
Since until now database access was embedded in almost every class i had to touch almost every class.

All access is now via interfaces. Currently there is only a mysql implementation. The next step is to get h2 back into the application.

This version supports both h2 and mariadb. Just adjust the databases jdbc: - url to choose the one you want.

Interfaces are in nxt.db. A generic sql implementation is in nxt.db.sql, mariadb implementation is in nxt.db.sql.mariadb and h2 in nxt.db.sql.h2

Currently the mariadb implementation is mostly empty - this will change when h2 is integrated (making methods in nxt.db.sql abstract and adding specific implementations to mariadb/h2).

THIS IS UNTESTED AT THE MOMENT - THIS PULL-REQUEST IS MAINLY FOR REVIEW

Shameless plug: Feel free to throw some burst to BURST-BJSX-4C6A-UH35-F4Q3A if you like this change ;)

BraindeadOne and others added 30 commits August 10, 2017 17:59
Don't get too far behind
further refactoring to make that possible.

Moved interface NxtKey from .db.sql to .db
further refactoring to make that possible.
Disabled the scan method for the moment - its complicated to update and we are not sure if it works like it should

Unfortunately the whitespace in this file was different from the other files and i noticed too late i changed most of it. Please add "?w=1" to the diff view to just see code changes (and some minor brace reformats)
Disabled the scan method for the moment - its complicated to update and we are not sure if it works like it should

Reworked BlockchainProcessorImpl-Changes since githubs diff view sucks when encountering simple whitespace changes
Re-Added accidentally deleted FilteringIterator
There might be some lingering race conditions in there!
@ac0v ac0v merged commit 13eca7c into PoC-Consortium:master Sep 7, 2017
ac0v added a commit that referenced this pull request Sep 7, 2017
ac0v added a commit that referenced this pull request Feb 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants