Discover Packages
github.com/PreetamJinka/catena
wal
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Apr 20, 2015
License: BSD-3-Clause
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 7 modules, 12 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package wal provides a write-ahead log.
A FileWAL is a write-ahead log represented by a file on disk.
NewFileWAL returns a new on-disk write-ahead log
with the given file name.
OpenFileWAL opens a write-ahead long stored at filename.
Append writes the WALentry to the write-ahead log.
It returns the number of bytes written and an error.
Close flushes any pending writes and closes the file.
Destroy closes the FileWAL and removes the
file on disk.
ReadEntry reads a WALEntry from the write-ahead log.
If a non-nil error is returned, w.Truncate() may
be called to make the WAL safe for writing.
Truncate truncates w's backing file to
lastReadOffset. Truncation ensures that
new entries can be safely read after
they are appended.
A WAL is a write-ahead log.
type WALEntry struct {
Operation walOperation
Rows []partition .Row
}
WALEntry is an entry in the write-ahead log.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.