aboutsummaryrefslogtreecommitdiff
path: root/_example (follow)
Commit message (Collapse)AuthorAgeFilesLines
* git mv _example doc/examples/EuAndreh2024-08-146-329/+0
|
* Remove most files from _example/EuAndreh2024-08-1415-2305/+0
|
* add exampleYasuhiro Matsumoto2024-01-251-0/+81
|
* update go version to 1.19Yasuhiro Matsumoto2024-01-253-5/+5
|
* temporary fix to make the job passDiego Becciolini2023-12-141-1/+1
| | | | | | use same workaround as https://github.com/authelia/authelia/pull/6404 before https://github.com/mattn/go-sqlite3/pull/1177 fixes the build otherwise
* use locally checked out lib in the docker jobDiego Becciolini2023-12-141-0/+2
| | | | see https://github.com/mattn/go-sqlite3/pull/1177
* Fix virtual table example. (#1149)Andrew Zhang2023-04-051-1/+1
|
* Updating vtable example, "BestIndex" method (#1099)David Vassallo2022-10-181-1/+6
| | | | | | | As it was, the vtable example will give an error when adding any kind of SQL constraint in the SQL statement. Updating the BestIndex method will ensure that adding SQL constraints will not result in errors Signed-off-by: David Vassallo <davevassallo@gmail.com> Signed-off-by: David Vassallo <davevassallo@gmail.com>
* こんにちわ is wrong Japanse. The correct word is こんにちはKiYugadgeter2022-09-043-3/+3
|
* Add error checking in simple example for tx.CommitKristóf Havasi2022-05-281-1/+4
| | | | Based on https://golang.org/pkg/database/sql/#Tx.Commit this function returns an error type. So why not check it.
* Update _example/simple/Dockerfilemattn2022-05-181-1/+1
|
* feat: simple example of Dockerfile w/ multi-stage buildKEINOS2022-05-181-0/+45
|
* Add example using driverNameYasuhiro Matsumoto2022-01-102-0/+25
|
* Adds a fuzz target (#908)Catena cyber2021-02-151-0/+30
| | | | | * Adds a fuzz target * Fixes memory leak
* add support for defining an "eponymous only" virtual table (#885)Patrick DeVivo2020-12-262-0/+151
| | | | | | | | | * add support for defining an "eponymous only" virtual table As suggested here: https://github.com/mattn/go-sqlite3/issues/846#issuecomment-736206222 * add an example of an eponymous only vtab module * add a test case for an eponymous only vtab module
* Fix for early termination of returned rows (#805)ShanePerron2020-05-031-1/+5
| | | Once the regex encountered the first instance of a non-match, it would return without processing the rest of the rows in the statement. This change allows it to process the remaining, only setting the sqlite3_result_int to zero then continuing. This worked fine for the example as it only had one item to process.
* report actual error message if sqlite3_load_extension fails (#800)rittneje2020-04-163-13/+23
| | | | | | | * report actual error message if sqlite3_load_extension fails * more fixes and test cases Co-authored-by: Jesse Rittner <jrittner@lutron.com>
* Fix typo (#763)Sergey Bronnikov2020-01-091-4/+4
|
* fix type of event codeYasuhiro Matsumoto2018-01-291-1/+1
| | | | fixes #520
* support sqlite3_limit to get/set run time limitTetsuya Morimoto2017-11-051-0/+113
|
* Incorporate original PR 271 from https://github.com/brokensandalsJason Abbott2017-07-031-0/+6
|
* golintYasuhiro Matsumoto2017-03-051-4/+5
|
* golintYasuhiro Matsumoto2017-03-052-9/+9
|
* use pointer receiverYasuhiro Matsumoto2017-03-052-5/+6
|
* fix import pathYasuhiro Matsumoto2017-03-051-1/+2
|
* [vtable] Rename Context to SQLiteContextConor Branagan2017-03-041-2/+2
| | | | To not conflict with core "context" package naming.
* [vtable] Add pure Go example of GitHub repo vtable.Conor Branagan2017-03-042-0/+147
|
* Merge pull request #279 from otoolep/src_dst_swappedmattn2017-03-011-11/+12
|\ | | | | Source and destination are reversed
| * Fix reversed source and destination namesPhilip O'Toole2016-02-281-10/+10
| |
| * Alphabetical importsPhilip O'Toole2016-02-281-1/+2
| |
* | dummy constantsYasuhiro Matsumoto2017-01-111-2/+0
| |
* | fixes #368Yasuhiro Matsumoto2017-01-101-0/+2
| |
* | Fix example import to point to mattn repo.Graeme Connell2016-11-111-1/+1
| |
* | Example program for the new SetTrace()A.N2016-09-071-0/+264
| | | | | | | | | | | | | | Does INSERT, then SELECT on the inserted rows (in-memory database). The purpose of all these is to cause activity so there will be trace messages to display. Trace message formatting is included (a useful format, with explanations).
* | add missing error checking to simple exampleStani2016-04-141-2/+16
|/
* remove binary fileYasuhiro Matsumoto2015-09-162-0/+0
|
* Merge pull request #229 from danderson/mastermattn2015-09-162-0/+133
|\ | | | | Implement support for calling Go functions from SQLite
| * Implement support for aggregation functions implemented in Go.David Anderson2015-09-152-0/+133
| |
* | Fix example to check the correct error valueMarc Campbell2015-08-241-7/+7
|/
* remove duplicated Closegmarik2015-08-161-1/+0
| | | since there's one already at line 51
* Rename sqlite3.{c,h} to sqlite3-binding.{c,h}Stéphane Graber2015-03-111-1/+1
| | | | | | | | | | | | | This fixes the problem where when building with gccgo, sqlite3.c is overwritten, leading to a build failure. An alternative would have been to move sqlite3*.{c,h} to a subdirectory, but that seems to confuse the linker a fair bit and would just swap one implementation-dependent issue for another. Closes #20 Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
* Update simple.go (very small change)tonio3l2014-07-291-3/+3
| | | Renaming the string "sql" into "sqlStmt" in order to prevent mixing with package types & functions sql.* in future edits or code reuse.
* Add backup. Close #104mattn2014-01-301-0/+71
|
* Add example that query github repositoriesmattn2014-01-234-0/+1338
|
* renamemattn2013-09-123-0/+0
|
* Implements Execermattn2013-09-091-10/+8
|
* Add Makefilemattn2013-08-301-0/+22
|
* mvmattn2013-08-283-0/+169