mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-15 14:14:20 +01:00
The only real benefit right now here is the ability to rename virtual
tables.
Then this now properly calls `VBegin` at the start of a vtab write
transaction, despite none of our extensions needing or implementing
transactions at this point.
```console
explain insert into t values ('key','value');
addr opcode p1 p2 p3 p4 p5 comment
---- ----------------- ---- ---- ---- ------------- -- -------
0 Init 0 10 0 0 Start at 10
1 VOpen 0 0 0 0 t
2 VBegin 0 0 0 0
3 Null 0 1 0 0 r[1]=NULL
4 Null 0 3 0 0 r[3]=NULL
5 String8 0 4 0 key 0 r[4]='key'
6 String8 0 5 0 value 0 r[5]='value'
7 VUpdate 0 5 1 0 args=r[1..5]
8 Close 0 0 0 0
9 Halt 0 0 0 0
10 Transaction 0 2 1 0 iDb=0 tx_mode=Write
11 Goto 0 1 0 0
Exiting Turso SQL Shell.
```
Closes #3930