Article: - rename the deployment section to "Развёртывание через config/services.ini" - keep only first-level sections in the table of contents, drop the archive entry - add the warning block and the archive table in the series format - rename screenshots to meaningful English names Publishing helpers (docs/publish): - build_article_html.py builds the HTML fragment for the site editor with anchored headings, linked table of contents, captions and code blocks - code/ holds each code block as a separate file, description.txt the short description Code: - static/script.js: bump version to 0.3.0 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
bool OpenDatabase()
| |
{
| |
g_db = DatabaseOpen(InpDatabase,
| |
DATABASE_OPEN_READWRITE
| |
| DATABASE_OPEN_CREATE
| |
| DATABASE_OPEN_COMMON);
| |
| |
if(g_db == INVALID_HANDLE)
| |
{
| |
PrintFormat("Не удалось открыть базу '%s', код ошибки: %d",
| |
InpDatabase, GetLastError());
| |
return false;
| |
}
| |
| |
if(!DatabaseExecute(g_db, StringFormat("PRAGMA busy_timeout=%d", InpBusyTimeout)))
| |
PrintFormat("Не удалось задать busy_timeout, код ошибки: %d", GetLastError());
| |
| |
if(!DatabaseExecute(g_db, "PRAGMA journal_mode=WAL"))
| |
PrintFormat("Не удалось включить режим WAL, код ошибки: %d", GetLastError());
| |
| |
if(!EnsureSchema(g_db))
| |
{
| |
DatabaseClose(g_db);
| |
g_db = INVALID_HANDLE;
| |
return false;
| |
}
| |
| |
return true;
| |
}
|