Qi Xiao
|
6f21bc690f
|
Go back to mattn/go-sqlite3.
|
2016-02-20 03:04:44 +01:00 |
|
Qi Xiao
|
5c03407a8a
|
Wait for store jobs to finish when exiting.
This fixes #144 #147.
|
2016-02-20 02:32:12 +01:00 |
|
Qi Xiao
|
098965cfac
|
Also close the database.
Doesn't help with #147 though.
|
2016-02-20 02:27:26 +01:00 |
|
Qi Xiao
|
3c75e71a8b
|
Use a fork of mxk/go-sqlite.
|
2016-02-20 01:47:40 +01:00 |
|
Qi Xiao
|
8cb35dfafc
|
Fix a NullPointerException.
|
2016-02-20 01:37:38 +01:00 |
|
Qi Xiao
|
8900e57707
|
Switch to mxk/go-sqlite for the SQLite3 backend.
This one has the advantage of supporting SQLite3-specific operations.
|
2016-02-20 01:22:22 +01:00 |
|
Qi Xiao
|
c37a51c2ed
|
Implement the use builtin.
This addresses #135.
|
2016-02-16 23:15:12 +01:00 |
|
Qi Xiao
|
5db90fd20f
|
Merge *util packages into an util package.
|
2016-02-16 19:15:29 +01:00 |
|
Qi Xiao
|
0f4d68a5bd
|
Close DB before execing.
Weirdly, this does not fix the database lock bug.
|
2016-02-15 14:13:50 +01:00 |
|
Qi Xiao
|
fe2b07e936
|
Add a history listing mode.
|
2016-02-14 07:52:31 +00:00 |
|
Shengjing Zhu
|
abbbc3f6e3
|
clean up sql code
|
2016-02-13 22:30:48 +08:00 |
|
Qi Xiao
|
d7cbcffdbf
|
Remove per-session history.
This fixes #116.
|
2016-02-13 15:12:19 +01:00 |
|
Qi Xiao
|
149433ae9b
|
store: Factor out a transaction helper.
|
2016-02-13 12:49:27 +01:00 |
|
Qi Xiao
|
4ca023cd4d
|
store: Close Rows in hasColumn.
Not closing the Rows will cause SQLite3 to lock the database and block all
other clients.
|
2016-02-13 12:37:31 +01:00 |
|
Qi Xiao
|
bf4264ea7f
|
Fix failed test in store.
|
2016-02-13 01:08:59 +01:00 |
|
Qi Xiao
|
939bd0e505
|
Only select unique histories from the storage.
This addresses #116.
|
2016-02-13 00:51:03 +01:00 |
|
Qi Xiao
|
32150672fc
|
store: Fix the use of transactions and a broken test.
|
2016-02-13 00:44:14 +01:00 |
|
Qi Xiao
|
56490fcd31
|
Support overriding the database file.
|
2016-02-13 00:35:33 +01:00 |
|
Qi Xiao
|
f454cfb386
|
store: Add a lastAmongDup column to the cmd table.
|
2016-02-13 00:21:46 +01:00 |
|
Qi Xiao
|
2468aece8d
|
store: createTable -> initTable
|
2016-02-12 21:37:14 +01:00 |
|
Qi Xiao
|
34c0d96830
|
Query HOME consistently.
A bug with osutil.Getcwd was also fixed. This fixes #91.
|
2016-02-11 23:43:48 +01:00 |
|
Qi Xiao
|
8125e2f9e6
|
golint fixes.
|
2016-02-07 23:23:16 +01:00 |
|
Qi Xiao
|
16ed49d117
|
store: add package doc
|
2016-01-29 03:00:41 +01:00 |
|
Cheer Xiao
|
d804f82350
|
Shorter method names of Store
|
2015-02-26 00:09:53 +01:00 |
|
Cheer Xiao
|
f2d23e65d0
|
Eliminate Get from method names of Store
|
2015-02-26 00:08:15 +01:00 |
|
Cheer Xiao
|
91af2a8e8c
|
Don't use dashes in golang sources
|
2015-02-25 16:43:31 +01:00 |
|
Cheer Xiao
|
b5bf7f2dba
|
line -> cmd; visited_dir -> dir
|
2015-02-25 16:40:48 +01:00 |
|
Cheer Xiao
|
fb32536e3b
|
Store line API change
|
2015-02-25 15:42:06 +01:00 |
|
Cheer Xiao
|
e811e42cfe
|
golint fixes for store
|
2015-02-24 21:53:34 +01:00 |
|
Cheer Xiao
|
e8299a6e7c
|
Use instr for substring test in SQL query
There is no longer a need for the EscapeGlob function.
|
2015-02-24 16:04:36 +01:00 |
|
Cheer Xiao
|
37186a41d4
|
Support command line history in the store
|
2015-02-24 16:02:15 +01:00 |
|
Cheer Xiao
|
1d59566aaf
|
Implement module file search mechanism for "use"
This resolves issue #44.
|
2015-02-23 18:36:46 +01:00 |
|
Cheer Xiao
|
f0c2bc11fb
|
Export store.{ensureDataDir errEmptyHOME}
|
2015-02-09 13:59:05 +01:00 |
|
Cheer Xiao
|
c58a080145
|
store: Typo fix; add ListVisitedDirs
|
2015-01-26 16:57:07 +01:00 |
|
Cheer Xiao
|
3e741163a8
|
store: The table "dir" is now known as "visisted_dir"
|
2015-01-26 16:38:59 +01:00 |
|
Cheer Xiao
|
ab4c961cf2
|
Ditch gorp dependency, use plain database/sql
|
2014-10-01 22:46:17 +02:00 |
|
Cheer Xiao
|
868d1c5d1f
|
Add store package.
|
2014-10-01 00:57:38 +02:00 |
|