update
This commit is contained in:
parent
5661034292
commit
1068f502bb
@ -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>
|
||||||
|
@ -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();
|
||||||
---
|
----
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user