#1 2018-04-08 09:40:44

artdelphi
Member
Registered: 2017-06-22
Posts: 4

roolback transection

hello I am not good at English and I just started learning to mormot. i have a question and It may be a stupid question.
my question.
if i insert data 10 row it 1 row error 9 row is ok mormot have a roolback transection. How i do it?
thank you.

Offline

#2 2018-04-08 09:55:54

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: roolback transection

Hi, I suggest you to use Google Translate to translate your question into English: https://translate.google.com/


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#3 2018-04-08 11:34:45

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,544
Website

Re: roolback transection

And Try to search in documentation https://synopse.info/files/html/Synopse … 01.18.html

Offline

#4 2018-04-08 11:45:22

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,242
Website

Re: roolback transection

Use à batch with automatic transaction.

Offline

#5 2018-04-08 14:20:01

artdelphi
Member
Registered: 2017-06-22
Posts: 4

Re: roolback transection

edwinsn wrote:

Hi, I suggest you to use Google Translate to translate your question into English: https://translate.google.com/

thank you

Offline

#6 2018-04-08 14:21:38

artdelphi
Member
Registered: 2017-06-22
Posts: 4

Re: roolback transection

ab wrote:

Use à batch with automatic transaction.

thank you

Offline

#7 2018-04-08 15:12:50

artdelphi
Member
Registered: 2017-06-22
Posts: 4

Re: roolback transection

ab wrote:

Use à batch with automatic transaction.

i have a one question
if my table not have field id is integer of pk field and my pk field is varchar. how i can use mormot Framework. if it work. how i can use it?
thank you.

Offline

#8 2018-04-08 21:42:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,242
Website

Re: roolback transection

You can't use the ORM (which requires an integer primary key), but you can use the other features, mainly the SOA and the SynDB layer, for very efficient client and service service writing.

See the documentation and also https://tamingthemormot.wordpress.com/2 … databases/

Offline

Board footer

Powered by FluxBB