powered by
Functions to manage connection tracing
trace_conn(filename = "", append = FALSE)untrace_conn(remove = FALSE)trace_filename()dump_conn_trace(warn = FALSE, ...)
untrace_conn(remove = FALSE)
trace_filename()
dump_conn_trace(warn = FALSE, ...)
where to send the tracing
if true, append to existing file
if true, unlink the tracing file
if true, readLines will issue warnings
readLines
passed to readLines
trace_filename: the name of the file containing trace information.
trace_filename
PostgeSQL tracing lets you observe all information passing between rpg and the database server.
rpg
trace_conn begins tracing and untrace_conn stops tracing.
trace_conn
untrace_conn
dump_conn_trace invokes readLines on the trace file.
dump_conn_trace
# NOT RUN { createdb("rpgtesting") connect("rpgtesting") trace_conn() list_tables() dump_conn_trace(n = 40) untrace_conn(remove = TRUE) disconnect() dropdb("rpgtesting") # }
Run the code above in your browser using DataLab