AutoReference-class {pgUtils} | R Documentation |
Objects of the type AutoReference are used in the functions insertIntoTable
and updateDBTable
to define relations between database tables.
Objects can be created by calls of the form new("AutoReference", ...)
.
Usually the object should be created with new("AutoReference",source.table="<source table name>",ref.table="ref table name",source.table.column="<column in data>",ref.table.column="<attribute in ref table>")
source.table
:"character"
the name of the source table (that will contain later the foreign key to the referenced table) ref.table
:"character"
the name of the referenced table source.table.column
:"character"
the column name of the data submitted thats value is the same as the value in the ref table, attribute ref.table.column ref.table.column
:"character"
the column (attribute) name, where the value of the source.table.column should compared with signature(object = "AutoReference")
: returns the primary key of the referenced table (<ref.table.name>_pk) signature(object = "AutoReference")
: returns the ref.table.column parameter signature(object = "AutoReference")
: returns the name of the referenced table signature(object = "AutoReference")
: returns the name of the foreign key in the source table (usually <ref.table.name>_fk) signature(object = "AutoReference")
: returns the source.table.column attribute signature(object = "AutoReference")
: show method Johannes Rainer
createDBTable
,
insertIntoTable
,
updateDBTable