mattn
80ee1ba77c
Merge pull request #243 from augustoroman/master
...
Store/retrieve timezones for time.Time values.
2015-11-02 11:43:53 +09:00
mattn
008acb738c
Merge pull request #250 from DavidGamba/install-in-readme
...
Update README. Install go-sqlite3 to avoid builds with gcc
2015-11-02 11:38:41 +09:00
David Gamba
90af0d5722
Update README. Install go-sqlite3 to avoid builds with gcc
2015-10-31 00:59:28 -06:00
Augusto Roman
7b0d180ce9
Store/retrieve timezones for time.Time values.
...
Previously, the timezone information for a provided value was discarded
and the value always stored as in UTC. However, sqlite allows specifying
the timezone offsets and handles those values appropriately. This change
stores the timezone information and parses it out if present, otherwise
it defaults to UTC as before.
One additional bugfix: Previously, a unix timestamp in seconds was
parsed in the local timezone (rather than UTC), in contrast to a unix
timestamp in milliseconds that was parsed in UTC.
While fixing that extra bug, I cleaned up the parsing code -- no need to
convert to a string and then parse it back again and risk a parse error,
just to check the number of digits.
The tests were extended to cover non-UTC timezones storage & retrieval,
meaningful unix timestamps, and correct handling of a trailing Z.
2015-10-09 22:59:25 -07:00
looi
b808f01f66
Add FTS4 unicode61 tokenizer support
2015-09-21 19:53:44 +09:00
Yasuhiro Matsumoto
0d2359b64f
fix #238
2015-09-16 15:58:07 +09:00
Yasuhiro Matsumoto
fdc70a0fab
use math.MaxInt32. related issue #238
2015-09-16 15:22:36 +09:00
Yasuhiro Matsumoto
09259a5557
fix build on 32bit OSs. Close #238
2015-09-16 15:18:46 +09:00
Yasuhiro Matsumoto
64bb935391
remove binary file
2015-09-16 10:47:42 +09:00
mattn
0bb7f1c676
Merge pull request #229 from danderson/master
...
Implement support for calling Go functions from SQLite
2015-09-16 10:46:17 +09:00
David Anderson
26917df7a6
Implement support for aggregation functions implemented in Go.
2015-09-15 18:05:49 -07:00
mattn
3b3f1d01b2
Merge pull request #235 from jfrazelle/static_remove_dlopen
...
remove dlopen if static_build flag
2015-09-05 23:49:54 +09:00
Jessica Frazelle
e37121d4ea
introduce ability to pass sqlite_omit_load_extension
...
sqlite_omit_load_extension is a go build tag which behaves much like its
C counterpart SQLITE_OMIT_LOAD_EXTENSION
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-09-04 14:46:16 -07:00
mattn
897b8800a7
Merge pull request #231 from marccampbell/master
...
Fix example to check the correct error value
2015-08-26 01:33:44 +09:00
mattn
296ddf7cd7
Fix test. Close #216
...
When one goroutine close db that opended as :memory:, session
will be lost. So another goroutine can't refer the last session.
goroutine .
2015-08-25 23:40:01 +09:00
Marc Campbell
5532d1d5ac
Fix example to check the correct error value
2015-08-24 17:19:04 -07:00
David Anderson
b037a61690
Add support for interface{} arguments in Go SQLite functions.
...
This enabled support for functions like Foo(a interface{}) and
Bar(a ...interface{}).
2015-08-21 17:12:18 -07:00
David Anderson
566f63a43a
Implement support for variadic functions.
...
Currently, the variadic part must all be the same type, because there's
no "generic" arg converter.
2015-08-21 16:38:23 -07:00
David Anderson
122ddb16de
Move argument converters to callback.go, and optimize return value handling.
...
A call now doesn't have to do any reflection, it just blindly invokes
a bunch of argument and return value handlers to execute the translation,
and the safety of the translation is determined at registration time.
2015-08-21 16:37:45 -07:00
David Anderson
cf8fa0af80
Implement support for passing Go functions as custom functions to SQLite.
...
Fixes #226 .
2015-08-21 13:39:50 -07:00
mattn
8897bf1452
Merge pull request #228 from whiter4bbit/added_icu_support
...
added icu extension support
2015-08-20 09:54:08 +09:00
Pavel Zalunin
715f5e5de0
added icu extension support
2015-08-20 03:02:59 +03:00
mattn
3dc190a017
Merge pull request #227 from gmarik/patch-1
...
remove duplicated Close
2015-08-17 08:47:45 +09:00
gmarik
94efba9292
remove duplicated Close
...
since there's one already at line 51
2015-08-16 16:39:53 -04:00
mattn
0fa27b5cb0
Merge pull request #225 from kiwih/master
...
Fix for go-sqlite3 truncating 64-bit lastInsertIDs on 32-bit systems
2015-08-07 12:25:09 +09:00
kiwih
6b4ee3cb4f
Add fix for go-sqlite3 truncating 64-bit integers when compiled by 32-bit mingw-gcc on windows by converting 'long' variable types to 'long long' in sqlite3.go
2015-08-07 15:13:52 +12:00
Yasuhiro Matsumoto
b4142c444a
update README.md
2015-06-30 08:57:28 +09:00
Yasuhiro Matsumoto
ee9da4840d
hack to use libsqlite3
...
$ go build -tags "libsqlite3 windows"
2015-06-12 13:26:42 +09:00
Lars Buitinck
1ae6ca764d
Cosmetics: use WaitGroup instead of channel in test
2015-06-05 16:38:51 +02:00
Lars Buitinck
5674e19d05
Test read-only databases
2015-06-05 16:38:51 +02:00
Lars Buitinck
a3efcea001
Clean up more tempfiles
2015-06-05 16:38:51 +02:00
Lars Buitinck
90505effc7
Fix doc comment
2015-06-05 16:38:51 +02:00
Lars Buitinck
cebbf42ff6
Get reliable tempfile names from ioutil.TempFile
...
Also makes them easier to spot (the tests tend to litter /tmp).
2015-06-05 16:38:51 +02:00
xeodou
242cae0e70
Merge from mattn/go-sqlite3.
2015-05-18 13:14:17 +08:00
Yasuhiro Matsumoto
542ae647f8
remove -lpthread. related issue #201
2015-04-28 08:58:25 +09:00
xeodou
618641ee73
fix wercker
2015-04-18 21:30:35 +08:00
Yasuhiro Matsumoto
f136f0c8dc
Remove debug code
2015-04-15 16:27:00 +09:00
Yasuhiro Matsumoto
dee1a37fe1
Z suffix should be no-op
2015-04-15 16:26:27 +09:00
mattn
5f64400729
Merge pull request #194 from hallyn/tximm.2
...
Add a txlock option when opening databases
2015-04-14 09:12:54 +09:00
Serge Hallyn
f91a09fb50
Add a txlock option when opening databases (v2)
...
When specified, changes the default locking at a tx.Begin.
Changelog (v2):
Add a testcase to ensure _txlock is properly handled.
Closes #189
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2015-04-13 11:48:01 -05:00
mattn
13671e4dd3
Merge pull request #196 from egonelbre/fix-nullstring
...
Fix NULs in text.
2015-04-13 11:55:45 +09:00
Egon Elbre
ac0129617f
Fix NULs in text.
...
NUL character is a valid symbols in UTF8.
Fixes #195
2015-04-12 15:02:50 +03:00
xeodou
885060db2b
Update wercker file.
2015-04-07 21:45:17 +08:00
xeodou
e9b1d17cde
Update wercker file.
2015-04-07 21:43:11 +08:00
xeodou
e6b54d085c
Add encrypto unit testes.
2015-04-07 21:39:28 +08:00
xeodou
2c26c12108
Update readme.
2015-04-06 23:57:05 +08:00
xeodou
5d8d55f2fb
Update test.
2015-04-06 23:54:08 +08:00
xeodou
4315377555
Update test.
2015-04-06 23:41:55 +08:00
xeodou
c38c17d68c
Update wercker.
2015-04-06 23:39:02 +08:00
xeodou
defab1e47b
Update wercker.
2015-04-06 23:36:16 +08:00