data_base
❭ dbopen
❭ create_reldb_path
create_reldb_path¶
- data_base.dbopen.create_reldb_path(path)¶
Create a relative database path
Relative database paths are of the form
reldb://...
. They are used for references to files that are known to be within the same database. Figuring out the absolute file location is then a matter of finding the shared parent database path.This method takes an absolute path and a database, and returns the relative path.
Attention
Relative database paths always refer to the first parent database in the path. If the database is a sub-database, the path will be relative to the sub-database, not the parent database.