User Tools

Site Tools


api:dk11:delphi:gisdb.tgis_dbabstract.sqlpathabsolute_string_string_char_boolean

Table of Contents

TGIS_DbAbstract.sqlPathAbsolute(String; String; Char; Boolean) method

DK11 for Delphi | GisDb.TGIS_DbAbstract.sqlPathAbsolute | Overloads | Constructors | Fields | Methods | Properties | Events

Resolves potentially emebeded database path in a connection string into an abolute path.

Available also on: .NET | Java.

Syntax

// 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 */;

Parameters

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

Result

Type Description
String if connection contains file then expanded absolute path; _connection string otherwise

Remarks

This overload assumes that _connection contains string in a format: 'someting1:someting2:something3' where ':' is a _separator.

2020/12/25 13:51

Page Tools