\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
move_table¶
View page sourceMove Table¶
Prototype¶
# at_cascade.move_table
def move_table(
connection, src_name, dst_name
) :
assert type(src_name) == str
assert type(dst_name) == str
Purpose¶
Change the name of a table in the database.
connection¶
Is a dismod_at open connection to the database.
src_name¶
is a str containing the name of the table before moving it.
dst_name¶
is a str containing the name of the table after moving it.
Log Table¶
As row is added to the log table with the ref:add_log_entry.message that says that table src_name was moved to table dst_name.
log_id: is the integer length of the log table before the message
message_type is text
at_cascadetable_name is null
row_id is null
seconds is the integer unit time
message is the text message