diff options
author | Kenneth Shaw <kenshaw@gmail.com> | 2017-03-24 11:56:23 +0700 |
---|---|---|
committer | Kenneth Shaw <kenshaw@gmail.com> | 2017-03-24 15:35:33 +0700 |
commit | b8936b7ad391c3964c9e9c27ef37e6631cab80ed (patch) | |
tree | 27c25eb09dea4eacf3c127b6212da93c2551ad51 /sqlite3_test.go | |
parent | Merge pull request #398 from mkungla/qfe1 (diff) | |
download | golite-b8936b7ad391c3964c9e9c27ef37e6631cab80ed.tar.gz golite-b8936b7ad391c3964c9e9c27ef37e6631cab80ed.tar.xz |
Adding hook to vhook to allow vtables to be modified
This commit changes the vtable 'xUpdate' goModule field to a new
'cXUpdate' callback function which in turns calls a 'goVUpdate'
callback.
This new callback allows Go defined virtual table implementations
satisfying the VTabUpdater interface (also newly defined) a way to
delete/insert/update rows in a VTab.
Additionally, an anonymous interface is used within the goVUpdate
callback looking for 'TableName() string' which, when defined on a VTab
is used to provide a better contextual error message to end users if the
VTab is read only.
Care was taken to follow existing code style/conventions for this
addition, and for backwards-compatibility with existing VTab
implementations (hence why a new interface was required).
Diffstat (limited to 'sqlite3_test.go')
0 files changed, 0 insertions, 0 deletions