mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
93_DbLog: contrib 3.12.4
git-svn-id: https://svn.fhem.de/fhem/trunk@17502 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dcce5b5fc5
commit
b4a6ef1b37
@ -16,6 +16,7 @@
|
|||||||
############################################################################################################################################
|
############################################################################################################################################
|
||||||
# Versions History done by DS_Starter & DeeSPe:
|
# Versions History done by DS_Starter & DeeSPe:
|
||||||
#
|
#
|
||||||
|
# 3.12.4 10.10.2018 give non-saved datasets back in asynch mode only if transaction is used
|
||||||
# 3.12.3 08.10.2018 Log output of recuceLogNbl enhanced, some functions renamed
|
# 3.12.3 08.10.2018 Log output of recuceLogNbl enhanced, some functions renamed
|
||||||
# 3.12.2 07.10.2018 $hash->{HELPER}{REOPEN_RUNS_UNTIL} contains the time the DB is closed
|
# 3.12.2 07.10.2018 $hash->{HELPER}{REOPEN_RUNS_UNTIL} contains the time the DB is closed
|
||||||
# 3.12.1 19.09.2018 use Time::Local (forum:#91285)
|
# 3.12.1 19.09.2018 use Time::Local (forum:#91285)
|
||||||
@ -212,7 +213,7 @@ use Time::Local;
|
|||||||
use Encode qw(encode_utf8);
|
use Encode qw(encode_utf8);
|
||||||
no if $] >= 5.017011, warnings => 'experimental::smartmatch';
|
no if $] >= 5.017011, warnings => 'experimental::smartmatch';
|
||||||
|
|
||||||
my $DbLogVersion = "3.12.3";
|
my $DbLogVersion = "3.12.4";
|
||||||
|
|
||||||
my %columns = ("DEVICE" => 64,
|
my %columns = ("DEVICE" => 64,
|
||||||
"TYPE" => 64,
|
"TYPE" => 64,
|
||||||
@ -2098,7 +2099,7 @@ sub DbLog_PushAsync(@) {
|
|||||||
$errorh = $@;
|
$errorh = $@;
|
||||||
Log3 $hash->{NAME}, 2, "DbLog $name -> Error table history - $errorh";
|
Log3 $hash->{NAME}, 2, "DbLog $name -> Error table history - $errorh";
|
||||||
$error = encode_base64($errorh,"");
|
$error = encode_base64($errorh,"");
|
||||||
$rowlback = $rowlist;
|
$rowlback = $rowlist if($useta); # nicht gespeicherte Datensätze nur zurück geben wenn Transaktion ein
|
||||||
}
|
}
|
||||||
|
|
||||||
# update or insert current
|
# update or insert current
|
||||||
@ -5801,14 +5802,15 @@ sub DbLog_dbReadings($@) {
|
|||||||
</code><br>
|
</code><br>
|
||||||
|
|
||||||
Change the usage of database autocommit- and/or transaction- behavior. <br>
|
Change the usage of database autocommit- and/or transaction- behavior. <br>
|
||||||
This attribute is an advanced feature and should only be used in a concrete case of need or support case. <br><br>
|
If transaction "off" is used, not saved datasets are not returned to cache in asynchronous mode. <br>
|
||||||
|
This attribute is an advanced feature and should only be used in a concrete situation or support case. <br><br>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>basic_ta:on - autocommit server basic setting / transaktion on (default) </li>
|
<li>basic_ta:on - autocommit server basic setting / transaktion on (default) </li>
|
||||||
<li>basic_ta:off - autocommit server basic setting / transaktion off </li>
|
<li>basic_ta:off - autocommit server basic setting / transaktion off </li>
|
||||||
<li>ac:on_ta:on - autocommit on / transaktion on </li>
|
<li>ac:on_ta:on - autocommit on / transaktion on </li>
|
||||||
<li>ac:on_ta:off - autocommit on / transaktion off </li>
|
<li>ac:on_ta:off - autocommit on / transaktion off </li>
|
||||||
<li>ac:off_ta:on - autocommit off / transaktion on (autocommit off set transaktion on implicitly) </li>
|
<li>ac:off_ta:on - autocommit off / transaktion on (autocommit "off" set transaktion "on" implicitly) </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@ -6906,6 +6908,8 @@ sub DbLog_dbReadings($@) {
|
|||||||
</code><br>
|
</code><br>
|
||||||
|
|
||||||
Ändert die Verwendung der Datenbank Autocommit- und/oder Transaktionsfunktionen.
|
Ändert die Verwendung der Datenbank Autocommit- und/oder Transaktionsfunktionen.
|
||||||
|
Wird Transaktion "aus" verwendet, werden im asynchronen Modus nicht gespeicherte Datensätze nicht an den Cache zurück
|
||||||
|
gegeben.
|
||||||
Dieses Attribut ist ein advanced feature und sollte nur im konkreten Bedarfs- bzw. Supportfall geändert werden.<br><br>
|
Dieses Attribut ist ein advanced feature und sollte nur im konkreten Bedarfs- bzw. Supportfall geändert werden.<br><br>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@ -6913,7 +6917,7 @@ sub DbLog_dbReadings($@) {
|
|||||||
<li>basic_ta:off - Autocommit Servereinstellung / Transaktion aus </li>
|
<li>basic_ta:off - Autocommit Servereinstellung / Transaktion aus </li>
|
||||||
<li>ac:on_ta:on - Autocommit ein / Transaktion ein </li>
|
<li>ac:on_ta:on - Autocommit ein / Transaktion ein </li>
|
||||||
<li>ac:on_ta:off - Autocommit ein / Transaktion aus </li>
|
<li>ac:on_ta:off - Autocommit ein / Transaktion aus </li>
|
||||||
<li>ac:off_ta:on - Autocommit aus / Transaktion ein (Autocommit aus impliziert Transaktion ein) </li>
|
<li>ac:off_ta:on - Autocommit aus / Transaktion ein (Autocommit "aus" impliziert Transaktion "ein") </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user