dbfile.posterior.insert.Rd
Function to insert a file into the dbfiles table as a posterior
dbfile.posterior.insert(
filename,
pft,
mimetype,
formatname,
con,
hostname = PEcAn.remote::fqdn()
)
the name of the file to be inserted
the name of the pft that this data is applicable to
the mime-type of the file
the name of the format to distinguish between simmilair mime-types
database connection object
the name of the host where the file is stored, this will default to the name of the current machine
data.frame with the id, filename and pathname of the posterior that is requested
This will write into the dbfiles, posteriors, machines and formats the require data to store the file
if (FALSE) { # \dontrun{
dbfile.posterior.insert('trait.data.Rdata', pft, 'application/x-RData', 'traits', dbcon)
} # }