This commit is contained in:
Andrei Astafev 2019-07-15 21:47:09 +03:00
parent 5661034292
commit 1068f502bb
2 changed files with 4 additions and 3 deletions

View File

@ -130,6 +130,7 @@ participant remote as "Удалённый репозиторий\n(remote reposi
[-> workspace : <font color=red>Начало работы</font> [-> workspace : <font color=red>Начало работы</font>
activate workspace activate workspace
remote -> local : <font color=red>Получение изменений с сервера</font>\n<b>git fetch</b> remote -> local : <font color=red>Получение изменений с сервера</font>\n<b>git fetch</b>
remote -> local : <font color=red>Обновление подмодулей</font>\n<b>git submodule update --remote --recursive</b>
workspace <-> local : <font color=red>Просмотр информации</font>\n<b>git status</b> workspace <-> local : <font color=red>Просмотр информации</font>\n<b>git status</b>
workspace <-> local : <font color=red>Переход на ветку master</font>\n<b>git checkout master</b> workspace <-> local : <font color=red>Переход на ветку master</font>\n<b>git checkout master</b>
local -> workspace : <font color=red>Слияние с удалённой веткой</font>\n<b>git merge origin/master</b> local -> workspace : <font color=red>Слияние с удалённой веткой</font>\n<b>git merge origin/master</b>

View File

@ -27,15 +27,15 @@ QSqlQuery query;
query.exec(QString("INSERT INTO files VALUES(%1, %2);") query.exec(QString("INSERT INTO files VALUES(%1, %2);")
.arg(18) .arg(18)
.arg(db.driver()->formatValue(dataField))); .arg(db.driver()->formatValue(dataField)));
--- ----
Чтение данных: Чтение данных:
[source,cpp] [source,cpp]
--- ----
QSqlQuery query; QSqlQuery query;
query.exec("SELECT id, bin_data FROM example LIMIT 1"); query.exec("SELECT id, bin_data FROM example LIMIT 1");
query.next(); query.next();
QByteArray binDataArray = query.value(query.record().indexOf("bin_data")).toByteArray(); QByteArray binDataArray = query.value(query.record().indexOf("bin_data")).toByteArray();
--- ----