AFMdata S4 image is written to an SQL database in the form of a data.frame; the ID will save it in a particular table in the database, if another AFM image with the same ID exists, it will be overwritten.
Open: mydb <- DBI::dbConnect(RSQLite::SQLite(), "myFile.sqlite")
Close: DBI::dbDisconnect(mydb)
AFM.writeDB(obj, mydb, ID, vacuum = TRUE, verbose = FALSE)
S4 AFM object from nanoAFMr package, if object is NULL
, then ID will be removed from database
database connection from DBI package
unique object file ID
vacuums the database, if obj is NULL
and something is deleted; this option saves space
if TRUE
outputs verbose comments