Cell data protocol and conversions between Clojure values and Google Sheets API types. Extend CellDataValue for custom write-time type coercions.
Cell data protocol and conversions between Clojure values and Google Sheets API types. Extend CellDataValue for custom write-time type coercions.
(cell->clj cell-data)Convert a raw Google Sheets API cell map to a Clojure value. Handles effectiveValue / userEnteredValue; prefers effectiveValue. Types: boolValue → Boolean, stringValue → String, DATE number → LocalDate, CURRENCY number → BigDecimal, number → Double, empty → nil.
Convert a raw Google Sheets API cell map to a Clojure value.
Handles effectiveValue / userEnteredValue; prefers effectiveValue.
Types: boolValue → Boolean, stringValue → String, DATE number → LocalDate,
CURRENCY number → BigDecimal, number → Double, empty → nil.Coerce a Clojure value to a CellData instance for writing to Google Sheets.
Coerce a Clojure value to a CellData instance for writing to Google Sheets.
(->cell-data v)(date-cell pattern local-date)CellData containing local-date formatted with the given Excel date pattern,
e.g. "yyyy-mm-dd" or "M/d/yyyy".
CellData containing `local-date` formatted with the given Excel date pattern, e.g. "yyyy-mm-dd" or "M/d/yyyy".
(date-serial-number local-date)Google Sheets date serial number for a java.time.LocalDate. Days since 1899-12-30, returned as Double.
Google Sheets date serial number for a java.time.LocalDate. Days since 1899-12-30, returned as Double.
(row->row-data row)Convert a vector of values (anything satisfying CellDataValue) to a RowData instance for use in UpdateCellsRequest.
Convert a vector of values (anything satisfying CellDataValue) to a RowData instance for use in UpdateCellsRequest.
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 |