analytics/priv/data_migrations/PopulateEventSessionColumns/sql/get-disks.sql.eex
Karl-Aksel Puulmann 26d41ddbb9
Mutation to populate event session columns (#3844)
* WIP mutation to populate event session columns

* Remove duplication

* report errors, allow_nondeterministic_updates

* use right columns

* Update existing columns instead of session_* ones

* Make dialyzer happy

* Fix issue with passing pre-existing params in

* Logger -> IO.puts

* Use IngestRepo.config for connection settings

* Make dictionary options configurable

* Move allow_nondeterministic_mutations to within the migration

* Solve credo warning about too deep nesting

* Missed logger call

* Pattern matching in function head
2024-03-08 09:27:24 +02:00

8 lines
207 B
Elixir

SELECT
name,
path,
formatReadableSize(total_space - free_space) AS full_space,
formatReadableSize(total_space),
round((total_space - free_space) / total_space * 100, 2)
FROM system.disks