Handles all work related to database table partitioning
Handles all work related to database table partitioning
(create-partition parent-table prefix date)Inputs: [parent-table :- s/Str prefix :- s/Str date :- (s/cond-pre LocalDate LocalDateTime ZonedDateTime Instant java.sql.Timestamp)]
Inputs: [parent-table :- s/Str prefix :- s/Str date :- (s/cond-pre LocalDate LocalDateTime ZonedDateTime Instant java.sql.Timestamp)]
(create-reports-partition date)Creates a partition in the reports table
Creates a partition in the reports table
(create-resource-events-partition date)Creates a partition in the resource_events table
Creates a partition in the resource_events table
(get-partition-names table)Return all partition names given the parent table name
Return all partition names given the parent table name
(get-temporal-partitions parent-table)Returns a vector of {:table full-table-name :part partition-key} values for all the existing partitions associated with the name-prefix, e.g. request for "reports" might produce a vector of maps like {:table "reports_20200802z" :part "20200802z"}.
Returns a vector of {:table full-table-name :part partition-key}
values for all the existing partitions associated with the
name-prefix, e.g. request for "reports" might produce a vector of
maps like {:table "reports_20200802z" :part "20200802z"}.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |