aboutsummaryrefslogtreecommitdiff
path: root/code/sqlite3ext.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-01-22Upgrade sqlite amalgamation to latest 3.10.1Vladimir Timofeev1-5/+60
2015-12-30avoid cgoCheckPointer. ref https://github.com/golang/go/issues/12416Yasuhiro Matsumoto1-2/+16
2015-12-30Fix compile for old mingw32Taru Karttunen1-1/+1
2015-11-06Fix README project addressMarcelo Lima1-1/+1
2015-11-03Clean up tempfiles in testsLars Buitinck2-23/+23
"go test" leaves no more clutter in /tmp.
2015-11-02fix testsYasuhiro Matsumoto2-3/+2
2015-10-31Update README. Install go-sqlite3 to avoid builds with gccDavid Gamba1-0/+4
2015-10-09Store/retrieve timezones for time.Time values.Augusto Roman2-14/+34
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-09-21Add FTS4 unicode61 tokenizer supportlooi2-1/+45
2015-09-16fix #238Yasuhiro Matsumoto1-2/+2
2015-09-16use math.MaxInt32. related issue #238Yasuhiro Matsumoto1-4/+3
2015-09-16fix build on 32bit OSs. Close #238Yasuhiro Matsumoto1-2/+4
2015-09-16remove binary fileYasuhiro Matsumoto2-0/+0
2015-09-15Implement support for aggregation functions implemented in Go.David Anderson5-33/+449
2015-09-04introduce ability to pass sqlite_omit_load_extensionJessica Frazelle3-17/+60
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-08-25Fix test. Close #216mattn1-1/+3
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-24Fix example to check the correct error valueMarc Campbell1-7/+7
2015-08-21Add support for interface{} arguments in Go SQLite functions.David Anderson3-5/+60
This enabled support for functions like Foo(a interface{}) and Bar(a ...interface{}).
2015-08-21Implement support for variadic functions.David Anderson2-10/+55
Currently, the variadic part must all be the same type, because there's no "generic" arg converter.
2015-08-21Move argument converters to callback.go, and optimize return value handling.David Anderson4-154/+367
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-21Implement support for passing Go functions as custom functions to SQLite.David Anderson5-6/+342
Fixes #226.
2015-08-20added icu extension supportPavel Zalunin2-0/+17
2015-08-16remove duplicated Closegmarik1-1/+0
since there's one already at line 51
2015-08-07Add fix for go-sqlite3 truncating 64-bit integers when compiled by 32-bit ↵kiwih1-8/+8
mingw-gcc on windows by converting 'long' variable types to 'long long' in sqlite3.go
2015-06-30update README.mdYasuhiro Matsumoto1-0/+4
2015-06-12hack to use libsqlite3Yasuhiro Matsumoto6-155256/+155278
$ go build -tags "libsqlite3 windows"
2015-06-05Cosmetics: use WaitGroup instead of channel in testLars Buitinck1-7/+4
2015-06-05Test read-only databasesLars Buitinck1-0/+21
2015-06-05Clean up more tempfilesLars Buitinck1-0/+1
2015-06-05Fix doc commentLars Buitinck1-1/+1
2015-06-05Get reliable tempfile names from ioutil.TempFileLars Buitinck2-28/+29
Also makes them easier to spot (the tests tend to litter /tmp).
2015-04-28remove -lpthread. related issue #201Yasuhiro Matsumoto1-1/+0
2015-04-15Remove debug codeYasuhiro Matsumoto1-2/+0
2015-04-15Z suffix should be no-opYasuhiro Matsumoto2-1/+42
2015-04-13Add a txlock option when opening databases (v2)Serge Hallyn2-9/+62
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-12Fix NULs in text.Egon Elbre2-1/+42
NUL character is a valid symbols in UTF8. Fixes #195
2015-03-23Change strlen(s) > 0 => *s != '\000'.Lars Buitinck1-1/+1
2015-03-23Less C/Go border crossing to get database changesLars Buitinck1-18/+22
Speeds up the query benchmark by about 5% (Go 1.2.1, Linux x64).
2015-03-24Implement number-named parameters. Close #187mattn2-3/+55
2015-03-22Revert a6c208564eccf3c6743f608ef88398a4ca84c5ebmattn2-77/+3
2015-03-22Remove debug messagemattn1-1/+0
2015-03-22Fix hang in testmattn1-11/+12
2015-03-22Fix buildmattn2-4/+5
2015-03-22Should use C.int()mattn1-1/+1
2015-03-22revert 5253daf8561a6ca5015fd5ce79e4367912146be9 and add _busy_timeout query ↵mattn1-20/+25
parameter.
2015-03-22Fix testmattn1-1/+1
2015-03-22Support $NNN-style named parameter. Close #187mattn2-4/+93
2015-03-19Next() should wait while BUSY or LOCKED because return value is boolmattn1-9/+17
2015-03-12Apply -lpthread withou windows.Yasuhiro Matsumoto3-2/+2
2015-03-11Link against pthreadStéphane Graber1-0/+1
This is required by gccgo because of the pthread_mutex_trylock symbol. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>