mirror of
https://github.com/teest114514/chatlog_alpha.git
synced 2026-04-19 02:22:35 +08:00
Add WAL incremental sync and auto-decrypt debounce
Introduces experimental WAL (Write-Ahead Logging) incremental sync for WeChat database decryption, allowing real-time monitoring and incremental updates to the working directory database. Adds UI and config options to enable WAL support and configure auto-decrypt debounce interval. Updates related services, context, and data source logic to support WAL file handling, incremental decryption, and improved process detection. Also improves single-instance process checks and updates documentation for these new features.
This commit is contained in:
@@ -51,10 +51,10 @@ type DataSource interface {
|
||||
Close() error
|
||||
}
|
||||
|
||||
func New(path string, platform string, version int) (DataSource, error) {
|
||||
func New(path string, platform string, version int, walEnabled bool) (DataSource, error) {
|
||||
switch {
|
||||
case platform == "windows" && version == 4:
|
||||
return v4.New(path)
|
||||
return v4.New(path, walEnabled)
|
||||
default:
|
||||
return nil, errors.PlatformUnsupported(platform, version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user