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 |
|