Search found 3 matches

by noxe
Wed 02 Feb 2022 18:09
Forum: EntityDAC
Topic: EntityDac/MyDac Lost Connection
Replies: 1
Views: 11279

EntityDac/MyDac Lost Connection

How do I get the TMyConnection that EntityDac uses in the background if I have set the provider MyDac. I want as in the topic
viewtopic.php?f=7&t=44291&p=178104&hili ... 74#p178104

described, implement an automatic reconnect if a "Lost Connection" occurs. For that I need the TMyConnection instance.

Thanks in advance
by noxe
Wed 27 Jan 2021 14:12
Forum: SQLite Data Access Components
Topic: ESQLiteError locate causing SQL-Query
Replies: 1
Views: 16997

ESQLiteError locate causing SQL-Query

Hello,
it is possible to determine and display the causing SQL command within an ESQLiteError command.
It would also suffice to find out the TLiteQuery components that caused it.

ESQLiteError.Component supplies the connection. Can I use it to determine the last command or TLiteQuery component that was executed. Anything like that would help me.

Or is it because of SQLite that it does not provide enough information and therefore LiteDac can no longer deliver.

Otherwise it would possibly be in the LiteDac source code in one of the next versions that for each TLiteQuery.Excecute / Open its name would be "noted" in the TLiteConnection. You can then access the information via ESQLiteError.Component.

This question also applies to MyDac. So everywhere in the above text replace Lite [/ i] with My [/ i] ..
by noxe
Wed 27 Jan 2021 13:17
Forum: SQLite Data Access Components
Topic: Information about Unit LiteError not found
Replies: 1
Views: 16321

Information about Unit LiteError not found

Hello, is it possible to add Information about Unit LiteError to your Documentation?

I need Exception Handling, i search an hour to find out which unit to add.
In the LiteDac.chm is nothing about LiteError, ^^