@@ -47,7 +47,7 @@ type File interface {
47
47
// FileLockState extends File to implement the
48
48
// SQLITE_FCNTL_LOCKSTATE file control opcode.
49
49
//
50
- // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html
50
+ // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntllockstate
51
51
type FileLockState interface {
52
52
File
53
53
LockState () LockLevel
@@ -56,7 +56,7 @@ type FileLockState interface {
56
56
// FileSizeHint extends File to implement the
57
57
// SQLITE_FCNTL_SIZE_HINT file control opcode.
58
58
//
59
- // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html
59
+ // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlsizehint
60
60
type FileSizeHint interface {
61
61
File
62
62
SizeHint (size int64 ) error
@@ -65,16 +65,25 @@ type FileSizeHint interface {
65
65
// FileHasMoved extends File to implement the
66
66
// SQLITE_FCNTL_HAS_MOVED file control opcode.
67
67
//
68
- // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html
68
+ // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlhasmoved
69
69
type FileHasMoved interface {
70
70
File
71
71
HasMoved () (bool , error )
72
72
}
73
73
74
+ // FileOverwrite extends File to implement the
75
+ // SQLITE_FCNTL_OVERWRITE file control opcode.
76
+ //
77
+ // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntloverwrite
78
+ type FileOverwrite interface {
79
+ File
80
+ Overwrite () error
81
+ }
82
+
74
83
// FilePowersafeOverwrite extends File to implement the
75
84
// SQLITE_FCNTL_POWERSAFE_OVERWRITE file control opcode.
76
85
//
77
- // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html
86
+ // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlpowersafeoverwrite
78
87
type FilePowersafeOverwrite interface {
79
88
File
80
89
PowersafeOverwrite () bool
@@ -84,7 +93,7 @@ type FilePowersafeOverwrite interface {
84
93
// FilePowersafeOverwrite extends File to implement the
85
94
// SQLITE_FCNTL_COMMIT_PHASETWO file control opcode.
86
95
//
87
- // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html
96
+ // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlcommitphasetwo
88
97
type FileCommitPhaseTwo interface {
89
98
File
90
99
CommitPhaseTwo () error
@@ -94,7 +103,7 @@ type FileCommitPhaseTwo interface {
94
103
// SQLITE_FCNTL_BEGIN_ATOMIC_WRITE, SQLITE_FCNTL_COMMIT_ATOMIC_WRITE
95
104
// and SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE file control opcodes.
96
105
//
97
- // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html
106
+ // https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlbeginatomicwrite
98
107
type FileBatchAtomicWrite interface {
99
108
File
100
109
BeginAtomicWrite () error
0 commit comments