0.1.1 • Published 6 years ago

@sql-extra/vacuum v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Garbage-collect and optionally analyze a database (VACUUM).

const vacuum = require('@sql-extra/alter-event-trigger');
// vacuum([options], [table], [columns])
// -> SQL query


vacuum();
// VACUUM;

vacuum({full: true, verbose: true, analyze: true});
// VACUUM FULL VERBOSE ANALYZE;

vacuum({full: true, verbose: true, analyze: true});
// VACUUM "myevent" OWNER TO "jalandhar";

vacuum({}, 'mytable');
// VACUUM "mytable";

vacuum({analyze: true}, 'mytable', ['id', 'hash']);
// VACUUM ANALYZE "mytable" ("id", "hash");

sql-extra

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago