Did you know ... Search Documentation:
PublicShow source
Source cql_update_history_hook(+Schema, +TableName, +AttributeName, +PrimaryKeyAttributeName, +PrimaryKeyValue, +ApplicationValueBefore, +ApplicationValueAfter, +AccessToken, +UserId, +UserIpAddress, +TransactionId, +TransactionTimestamp, +ThreadId, +Spid, +Connection, +Goal)[multifile]
Use this hook predicate to actually record database attribute value changes.

You are free to let this predicate fail or raise an exception - the database layer will ignore both of these eventualities.

Schema- <atom>
TableName- <atom> (lower case)
AttributeName- <atom> (lower case)
PrimaryKeyAttributeName- <atom> (lower case)
PrimaryKeyValue- <int>
ApplicationValueBefore- <domain dependent>
ApplicationValueAfter- <domain dependent>
AccessToken- <atom>
UserId- <atom>
UserIpAddress- <atom>
TransactionId- <atom>
TransactionTimestamp- <t7/7>
ThreadId- <atom>
Spid- <int>
Connection- <opaque>
Goal- <goal term> The goal passed to pri_db_trans

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source odbc_value_to_application_value_hook(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7)
Source application_value_to_odbc_value_hook(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7)