Function Database.attachedFilePath

Gets the path associated with an attached database.

string attachedFilePath (
  string database = "main"
);

Parameters

NameDescription
database The name of an attached database.

Returns

The absolute path of the attached database. If there is no attached database, or if database is a temporary or in-memory database, then null is returned.