mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-19 10:29:56 +08:00
Update BackupDataBase
This commit is contained in:
@@ -472,7 +472,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public override bool BackupDataBase(string databaseName, string fullFileName)
|
public override bool BackupDataBase(string databaseName, string fullFileName)
|
||||||
{
|
{
|
||||||
this.Context.Ado.ExecuteCommandAsync($"PRAGMA main.page_size=1024; PRAGMA main.locking_mode=EXCLUSIVE; PRAGMA main.cache_size=5000; PRAGMA main.synchronous=NORMAL; PRAGMA main.journal_mode=WAL; VACUUM INTO '{fullFileName.ToSqlFilter()}'");
|
this.Context.Ado.ExecuteCommand($"PRAGMA main.page_size=1024; PRAGMA main.locking_mode=EXCLUSIVE; PRAGMA main.cache_size=5000; PRAGMA main.synchronous=NORMAL; PRAGMA main.journal_mode=WAL; VACUUM INTO '{fullFileName.ToSqlFilter()}'");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
private List<T> GetListOrCache<T>(string cacheKey, string sql)
|
private List<T> GetListOrCache<T>(string cacheKey, string sql)
|
||||||
|
|||||||
Reference in New Issue
Block a user