User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_dbabstract.sqlpathabsolute_string_string_char_boolean

Table of Contents

TGIS_DbAbstract.sqlPathAbsolute(string, string, Char, bool) method

DK11 for .NET | TatukGIS.NDK.TGIS_DbAbstract.sqlPathAbsolute | Overloads | Constructors | Fields | Methods | Properties | Events

Resolves potentially embedded database path in a connection string into an absolute path.

Available also on: Delphi | Java.

Syntax

// C#
public string sqlPathAbsolute(
  string _folder,
  string _connection,
  Char _separator,
  bool _jdbc
);
' VisualBasic
Public Function sqlPathAbsolute(
  ByVal _folder As String,
  ByVal _connection As String,
  ByVal _separator As Char,
  ByVal _jdbc As Boolean
) As String
// Oxygene
public
  function sqlPathAbsolute(
    _folder : String;
    _connection : String;
    _separator : Char;
    _jdbc : Boolean = False
  ) : String;

Parameters

Name Type Description
_folder string
String
base folder for opening file based databases
_connection string
String
connection string
_separator Char items separator
_jdbc bool
Boolean
if set (default is False) path will be represented according to JDBC

Result

Type Description
string
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.

2021/09/28 01:34

Page Tools