DK11 for Delphi | GisDb.TGIS_DbAbstract.sqlPathAbsolute | Overloads | Constructors | Fields | Methods | Properties | Events
Resolves potentially embedded database path in a connection string into an absolute path.
// Delphi public function sqlPathAbsolute( const _folder : String; const _connection : String; const _separator : Char; const _jdbc : Boolean = False ) : String; overload;
// C++ Builder public: UnicodeString sqlPathAbsolute( const UnicodeString _folder, const UnicodeString _connection, Char* const _separator, const bool _jdbc ) /* overload */;
Name | Type | Description |
---|---|---|
_folder | String | base folder for opening file based databases |
_connection | String | connection string |
_separator | Char | items separator |
_jdbc | Boolean | if set (default is False) path will be represented according to JDBC |
Type | Description |
---|---|
String | if connection contains file then expanded absolute path; _connection string otherwise |
This overload assumes that _connection contains string in a format: 'someting1:someting2:something3' where ':' is a _separator.