Philip O Toole
9eb80b7a29
Add note about 2.0 development
9 years ago
Philip O Toole
d0b4d6aa0a
RWADME cleanups
9 years ago
Philip O Toole
a583b70180
Enhance reporting so Hashicorp use is flagged
9 years ago
Philip O Toole
ee4ffe1d15
Comment cleanups
9 years ago
Philip O Toole
b638fa7b87
Finish snapshot restore
...
Compiles, but not tested.
9 years ago
Philip O Toole
a47da4065f
Correctly handle database removal
9 years ago
Philip O Toole
35803cdf75
Shutdown Store on exit
9 years ago
Philip O Toole
a6cb950ff4
Allow DSN config at command line
...
It might still need to be richer, so end-users could specify an
in-memory SQLite database. Specifying a DSN would require the user
to supply the full path to the SQLite database. This is OK. However,
the code then needs to be able to parse out the path to the database
so it can remove it before start up.
9 years ago
Philip O Toole
179ad650f3
Apply() and Snapshot NOT called concurrently
...
No reason to worry about this.
9 years ago
Philip O Toole
2ebec9b973
Start adding support for snapshots
...
This shows that passing the database into the Raft module is probably
not going to work, since the database could be opened in two ways -
directly at startup, and be completely restored from the log, or with
a combination of restoring from a snapshot, followed by the remaining
log entries. In both cases the database must be opened using the
requested DSN settings.
A detailed config object for controlling SQLite behaviour, is probably
best, and it should be passed to the Raft store on start up.
Finally, file-level copying of the SQLite file can only take place if
no transaction is in effect. This might be handled by the use of a
RWLock. The write-lock is taken during Execute() and Snapshot, but
the Read lock is taken during Query(). Unfortunately this may reduce
the concurrency of inserts and updates. Perhaps the Backup call on
the Go SQLite library might be better, but it might be slow.
9 years ago
Philip O Toole
d30d2fffa4
Query path now works
9 years ago
Philip O Toole
ab71c3bdd2
Execute working now
9 years ago
Philip O Toole
639264db4f
Hook up handleExecute
9 years ago
Philip O Toole
28f4a73773
Simplify use of ApplyFuture
9 years ago
Philip O Toole
3ab8e01d91
Start threading ApplyFuture for Execute response
9 years ago
Philip O Toole
d67957d16d
Tweak DSN help output
9 years ago
Philip O Toole
3d277dd8fb
Update help output for DSN override
9 years ago
Philip O Toole
d70a9cb0ed
Push database into Raft store
...
Allows the DSN to be fully set, if requested.
9 years ago
Philip O'Toole
99f5e63f49
Build fixes
9 years ago
Philip O'Toole
73d880c93c
Start support for SQLite DSN
...
This isn't complete, since it prepends the Raft directory to the
filename, which would break a DSN.
9 years ago
Philip O'Toole
77b9077d9d
Pass Execute results up
...
Doesn't compile.
9 years ago
Philip O'Toole
1bbff9d53a
Lowest-layer database tests completed
9 years ago
Philip O'Toole
e047d9e9d9
Test_SimpleFailingStatements ported
9 years ago
Philip O'Toole
3c88305a77
Unit test failing statement
9 years ago
Philip O'Toole
57b4dddd26
Add unit test of db package
9 years ago
Philip O'Toole
1855f2d541
Fix up use of interface{} and *interface{}
9 years ago
Philip O'Toole
e8490b842e
Query in db package almost there
...
It's the handling of the types, and ensuring they can be cast correctly,
which is what is next.
9 years ago
Philip O'Toole
63c74cabea
Fully build with new db package
9 years ago
Philip O'Toole
f6984f4134
Small wrapper around sqlite3
9 years ago
Philip O'Toole
4f110e26ea
Update README with desired behavior
9 years ago
Philip O'Toole
08c310400a
No need for db package
9 years ago
Philip O'Toole
b95c84d16e
Add database interface to Store
...
CREATE TABLE now works.
9 years ago
Philip O'Toole
60cb82dfac
Merge branch 'hrqlite' of github.com:otoolep/rqlite into hrqlite
...
Conflicts:
cmd/rqlited/main.go
http/service.go
9 years ago
Philip O'Toole
951f17f113
Update README for new clustering
9 years ago
Philip O'Toole
875bb6ebf6
Raft clustering functional
9 years ago
Philip O'Toole
82c85f2102
Rename CLI to more standard version
9 years ago
Philip O'Toole
e17cceed91
Better name for test helper
9 years ago
Philip O'Toole
40b156fd47
Test_TransactionsHardFail now passes
9 years ago
Philip O'Toole
226938c0d1
Test_TransactionsConstraintViolation now passing
9 years ago
Philip O'Toole
801158fa83
Test_SimpleTransactions now passing
9 years ago
Philip O'Toole
62137fc798
Test_FailingSimpleStatements now passing
9 years ago
Philip O'Toole
ac3b5f2050
Unit-test simple database insertion cases
9 years ago
Philip O'Toole
67e7fa3c8e
Continue moving db tests to standard framework
9 years ago
Philip O'Toole
05fca403ab
Start removal of nonstandard test framework
9 years ago
Philip O'Toole
e43b0bc421
Initialize SQLite store
9 years ago
Philip O'Toole
12aef34625
Start integrating actual SQLite support
...
Builds without error.
9 years ago
Philip O'Toole
d7d46f79c0
Start refactor for Hashicorp
...
Heavily influenced by hraftd. rqlited builds without error.
9 years ago
Philip O'Toole
b49963ac32
Rename CLI to more standard version
9 years ago
Philip O'Toole
d8c58f5db1
Better name for test helper
9 years ago
Philip O'Toole
5456324020
Test_TransactionsHardFail now passes
9 years ago