sql_location_string

PlasmaCalcs.tools.sql_tools.sql_location_string(location=None)

returns “normalized” location string from location input.

location: None or str
None or ‘:memory:’ –> in-memory, equivalent to “:memory:”. Will not edit any files.
str –> Online database connection string starts with “postgresql://” or “postgres://”.
All other strings interpreted as filepath, and converted to abspath.