VBegin
P4 may be a pointer to an sqlite3_vtab structure.
An example
4 of the 178 statements we compiled against the sample database use VBegin. This is the one with the shortest program; the rows that use VBegin are highlighted.
INSERT INTO lyrics VALUES (1, 'la la la')
| addr | opcode | p1 | p2 | p3 | p4 | p5 |
|---|---|---|---|---|---|---|
| 0 | Init | 0 | 7 | 0 | 0 | |
| 1 | Integer | 1 | 3 | 0 | 0 | |
| 2 | String8 | 0 | 4 | 0 | la la la | 0 |
| 3 | Null | 0 | 1 | 0 | 0 | |
| 4 | Null | 0 | 2 | 0 | 0 | |
| 5 | VUpdate | 1 | 7 | 1 | vtab:52B150 | 2 |
| 6 | Halt | 0 | 0 | 0 | 0 | |
| 7 | Transaction | 0 | 1 | 1 | 0 | 1 |
| 8 | VBegin | 0 | 0 | 0 | vtab:52B150 | 0 |
| 9 | Null | 0 | 5 | 0 | 0 | |
| 10 | Null | 0 | 6 | 0 | 0 | |
| 11 | Null | 0 | 7 | 0 | 0 | |
| 12 | Goto | 0 | 1 | 0 | 0 |
Open it in the EXPLAIN visualizer →
Also in this program: Goto, Halt, Init, Integer, Null, String8, Transaction, VUpdate.
What the SQLite documentation says
P4 may be a pointer to an sqlite3_vtab structure. If so, call the xBegin method for that table.
Also, whether or not P4 is set, check that this is not being called from within a callback to a virtual table xSync() method. If it is, the error code will be set to SQLITE_LOCKED.
From sqlite.org's list of opcodes for SQLite 3.54.1, in the public domain. Opcodes are not a stable interface and change between releases.