Answer the question
In order to leave comments, you need to log in
How to undo all changes (including restore deleted records) from a MySQL database - Delphi 7?
Good afternoon!
There is a table in MySQL database named b_sale_basket.
The data is fetched using zQuery from the Zeos component package.
procedure TOrdersForm.ViewBtnClick(Sender: TObject);
begin
with OrderView.ZQueryBasket do
begin
Close; // Опрос таблицы "Корзины"
SQL.Clear;
SQL.Add('SELECT order_id, product_id, price, currency, weight, quantity, name, detail_page_url, discount_price, base_price FROM b_sale_basket');
SQL.Add('WHERE order_id = :nav_ord');
ParamByName('nav_ord').Value := zQuery1.FieldByName('ID').Value;
Open;
end;
end;
Answer the question
In order to leave comments, you need to log in
I figured it out .
The ZQuery component can cache changes itself, including deleting information.
This instruction helped:
www.delphiplus.org/sql-v-delphi5/sql-v-delphi5_43.html
But it is not clear how to work with MySQL via UpdateSQL, more precisely, the component does not work for me.
Perhaps transactions will help you?
https://dev.mysql.com/doc/refman/5.7/en/commit.html
You are implementing a fill with a linear gradient, and you want an angle gradient, or sometimes called a conic gradient. As far as I know, SVG, CSS, and other canvases cannot do it, because the W3C cannot agree on what formulas to calculate it.
Try to google it: it can probably be emulated somehow through one place, but personally I wouldn’t drag crooked solutions into production, it’s easier to agree with the designer on altering the diagram.
Perhaps not in the topic, but here 2018newyear.ru - the counter at the top with a gradient, can it be done in the likeness as you need?
In the simplest case, you can do this: two arcs are built, connected to each other. Next, create two gradients: from 0 to 0.5 transparency and from 0.5 transparency to 1:
<defs>
<linearGradient id="gradient" x1="0%" y1="50%" x2="100%" y2="50%">
<stop offset="0%" stop-color="#f00808" stop-opacity="0"></stop>
<stop offset="100%" stop-color="#f00808" stop-opacity="0.5"></stop>
</linearGradient>
<linearGradient id="gradient_2" x1="100%" y1="50%" x2="0%" y2="50%">
<stop offset="0%" stop-color="#f00808" stop-opacity="0.5"></stop>
<stop offset="100%" stop-color="#f00808" stop-opacity="1"></stop>
</linearGradient>
</defs>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question