@@ -73,6 +73,9 @@ const (
7373 ERROR_MISSING_COLLSEQ ExtendedErrorCode = xErrorCode (ERROR ) | (1 << 8 )
7474 ERROR_RETRY ExtendedErrorCode = xErrorCode (ERROR ) | (2 << 8 )
7575 ERROR_SNAPSHOT ExtendedErrorCode = xErrorCode (ERROR ) | (3 << 8 )
76+ ERROR_RESERVESIZE ExtendedErrorCode = xErrorCode (ERROR ) | (4 << 8 )
77+ ERROR_KEY ExtendedErrorCode = xErrorCode (ERROR ) | (5 << 8 )
78+ ERROR_UNABLE ExtendedErrorCode = xErrorCode (ERROR ) | (6 << 8 )
7679 IOERR_READ ExtendedErrorCode = xErrorCode (IOERR ) | (1 << 8 )
7780 IOERR_SHORT_READ ExtendedErrorCode = xErrorCode (IOERR ) | (2 << 8 )
7881 IOERR_WRITE ExtendedErrorCode = xErrorCode (IOERR ) | (3 << 8 )
@@ -107,6 +110,8 @@ const (
107110 IOERR_DATA ExtendedErrorCode = xErrorCode (IOERR ) | (32 << 8 )
108111 IOERR_CORRUPTFS ExtendedErrorCode = xErrorCode (IOERR ) | (33 << 8 )
109112 IOERR_IN_PAGE ExtendedErrorCode = xErrorCode (IOERR ) | (34 << 8 )
113+ IOERR_BADKEY ExtendedErrorCode = xErrorCode (IOERR ) | (35 << 8 )
114+ IOERR_CODEC ExtendedErrorCode = xErrorCode (IOERR ) | (36 << 8 )
110115 LOCKED_SHAREDCACHE ExtendedErrorCode = xErrorCode (LOCKED ) | (1 << 8 )
111116 LOCKED_VTAB ExtendedErrorCode = xErrorCode (LOCKED ) | (2 << 8 )
112117 BUSY_RECOVERY ExtendedErrorCode = xErrorCode (BUSY ) | (1 << 8 )
@@ -362,13 +367,14 @@ const (
362367// CheckpointMode are all the checkpoint mode values.
363368//
364369// https://sqlite.org/c3ref/c_checkpoint_full.html
365- type CheckpointMode uint32
370+ type CheckpointMode int32
366371
367372const (
368- CHECKPOINT_PASSIVE CheckpointMode = 0 /* Do as much as possible w/o blocking */
369- CHECKPOINT_FULL CheckpointMode = 1 /* Wait for writers, then checkpoint */
370- CHECKPOINT_RESTART CheckpointMode = 2 /* Like FULL but wait for readers */
371- CHECKPOINT_TRUNCATE CheckpointMode = 3 /* Like RESTART but also truncate WAL */
373+ CHECKPOINT_NOOP CheckpointMode = - 1 /* Do no work at all */
374+ CHECKPOINT_PASSIVE CheckpointMode = 0 /* Do as much as possible w/o blocking */
375+ CHECKPOINT_FULL CheckpointMode = 1 /* Wait for writers, then checkpoint */
376+ CHECKPOINT_RESTART CheckpointMode = 2 /* Like FULL but wait for readers */
377+ CHECKPOINT_TRUNCATE CheckpointMode = 3 /* Like RESTART but also truncate WAL */
372378)
373379
374380// TxnState are the allowed return values from [Conn.TxnState].
0 commit comments