Liking cljdoc? Tell your friends :D

puppetlabs.puppetdb.cli.pdb-dataset

Pg_restore and timeshift entries utility This command-line tool restores an empty database from a backup file (pg_dump generated file), then updates all the timestamps inside the database. It does this by calculating the period between the newest timestamp inside the file and the provided date. Then, every timestamp is shifted with that period. It accepts two parameters:

  • [Mandatory] -d / --dumpfile Path to the dumpfile that will be used to restore the database.
  • [Optional]-t / --shift-to-time Timestamp to which all timestamps from the dumpfile will be shifted after the restore. If it's not provided, the system's current timestamp will be used. !!! All timestamps are converted to a Zero timezone format. e.g timestamps like: 2015-03-26T10:58:51+10:00 will become 2015-03-26T11:58:51Z !!! !!! If the time difference between the latest entry in the dumpfile and the time provided to timeshift-to is less than 24 hours this tool will fail !!!
Pg_restore and timeshift entries utility
This command-line tool restores an empty database from a backup file (pg_dump generated file), then updates all the
timestamps inside the database.
It does this by calculating the period between the newest timestamp inside the file and the provided date.
Then, every timestamp is shifted with that period.
It accepts two parameters:
 - [Mandatory] -d / --dumpfile
   Path to the dumpfile that will be used to restore the database.
 - [Optional]-t / --shift-to-time
   Timestamp to which all timestamps from the dumpfile will be shifted after the restore.
   If it's not provided, the system's current timestamp will be used.
!!! All timestamps are converted to a Zero timezone format. e.g timestamps like: 2015-03-26T10:58:51+10:00
will become 2015-03-26T11:58:51Z !!!
!!! If the time difference between the latest entry in the dumpfile and the time provided to timeshift-to is less
than 24 hours this tool will fail !!!
raw docstring

-mainclj

(-main & args)
source

add-reports-triggerclj

(add-reports-trigger)
source

collect-pdbbox-configclj

(collect-pdbbox-config args)
source

connect-to-dbclj

(connect-to-db args methods-array)
source

copy-tableclj

(copy-table table)
source

create-copy-tableclj

(create-copy-table table)
source

create-partitionsclj

(create-partitions time-diff-reports time-diff-resource-events)

Creates new partitions for reports and resource-events tables. In order to calculate the new date of the partitions and not request creation of a new partitions for every entry, we obtain an array of unique dates shifted with the period indicated by cli user.

Creates new partitions for reports and resource-events tables.
In order to calculate the new date of the partitions and not request
creation of a new partitions for every entry, we obtain an array of
unique dates shifted with the period indicated by cli user.
sourceraw docstring

database-empty?clj

(database-empty?)
source

days-from-inst-vecclj

(days-from-inst-vec timestamp-vec column-name)
source

ensure-database-emptyclj

(ensure-database-empty _)
source

from-days-to-timestampclj

(from-days-to-timestamp instant)
source

make-minutes-time-diffclj

(make-minutes-time-diff max-time substract-time)
source

miliseconds-in-dayclj

source

miliseconds-in-minuteclj

source

minutes-in-dayclj

source

parse-timeshift-toclj

(parse-timeshift-to time-string)
source

restore-databaseclj

(restore-database args)
source

to-daysclj

(to-days timestamp)
source

update-reportsclj

(update-reports time-diff)
source

update-resource-eventsclj

(update-resource-events time-diff)
source

update-simple-tablesclj

(update-simple-tables table time-diff)
source

update-tablesclj

(update-tables args)
source

vacuum-dbclj

(vacuum-db _)
source

validate-cli!clj

(validate-cli! args)
source

validate-optionsclj

(validate-options options)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close