vacuum_db | R Documentation |
This is a convenience function that calls the VACUUM
command on a database. This command will
rebuild the database file, repacking it into a minimal amount of disk space.
vacuum_db(db)
db |
A database connection to an m-Path Sense database. |
a scalar numeric that specifies the number of rows affected by the vacuum.
# Create a database in a temporary directory
db <- create_db(tempdir(), "mydb.db")
# Assuming that we have imported some data into the database, we can vacuum it
vacuum_db(db)
# Cleanup
close_db(db)
file.remove(file.path(tempdir(), "mydb.db"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.