add_log_entry

View page source

Add Log Table Entry

Prototype

# at_cascade.add_log_entry
def add_log_entry(connection, message) :
   assert type(message) == str

Purpose

Change the name of a table in the database.

connection

is a dismod_at open connection to the database.

message

is a str containing the message that is added at the end of the log table

Log Table

As row is added at the end of the log table with the following columns values:

  1. log_id : is the integer length of the log table before the message

  2. message_type : is the text at_cascade

  3. table_name : is null

  4. row_id : is null

  5. unix_time : is the integer unit time

  6. message : is the text message