databaseTreeView {RGtkViewers}R Documentation

Core utility to create view of DBMS structure

Description

These functions are the core for creating the GtkTree for displaying the structured hierarcy of a Relational Database Management Server (RDBMS). databaseTreeView computes all the nodes before displaying the tree. databaseLazyTreeView works lazily and only builds sub-trees when they are ``opened'' by the user. It does this by creating regular nodes for the top-level databases and then associating a callback with that node so that when it is expanded the next level of nodes are created and so on.

Usage

databaseTreeView(con, callbacks = NULL, top = gtkTree(), databases = getDatabaes(con)[, 1], itemHandlers = NULL)
databaseLazyTreeView(con, callbacks = NULL, top = gtkTree(), databases = getDatabases(con)[,1], itemHandlers = NULL)

Arguments

con the database connection object. See dbConnect.
callbacks currently ignored.
top the (top-level) tree into which to put the databases. By specifying this here, one can merge the contents of two RDBMS into the same tree.
databases a vector giving the names of the databases to include. This allows one to specify a subset of the available databases if one is not interested in the others
itemHandlers a list of functions that are invoked at the different levels when the nodes in the tree are being created and these allow on to customize the behavior and appearance of the nodes.

Value

A GtkTree object.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.omegahat.org/RGtk, http://www.omegahat.org/RSDBI, http://www.gtk.org

See Also

databaseView

Examples



[Package RGtkViewers version 0.7 Index]