Learn R Programming

rpg (version 1.6)

trace_conn: PostgeSQL connection tracing

Description

Functions to manage connection tracing

Usage

trace_conn(filename = "", append = FALSE)

untrace_conn(remove = FALSE)

trace_filename()

dump_conn_trace(warn = FALSE, ...)

Arguments

filename

where to send the tracing

append

if true, append to existing file

remove

if true, unlink the tracing file

warn

if true, readLines will issue warnings

...

passed to readLines

Value

trace_filename: the name of the file containing trace information.

Details

PostgeSQL tracing lets you observe all information passing between rpg and the database server.

trace_conn begins tracing and untrace_conn stops tracing.

dump_conn_trace invokes readLines on the trace file.

Examples

Run this code
# 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