IPrimarySQLiteSPLD.FileName

Syntax

FileName: String;

Description

The FileName property determines a path and a name of the file that stores repository data.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MbMan: IMetabaseManager;
    MbDefs: IMetabaseDefinitions;
    MbDef: IMetabaseDefinition;
    SQLiteSPLD: IPrimarySQLiteSPLD;
Begin
    MbMan := MetabaseManagerFactory.Active;
    MbDefs := MbMan.Definitions;
    MbDef := MbDefs.Add;
    MbDef.DriverId := "SQLITE";
    MbDef.Id := "SQLITE_REPO";
    MbDef.Name := "SQLITE_REPO";
    MbDef.SecurityPackage := "STANDARDSECURITYPACKAGE";
    SQLiteSPLD := MbDef.LogonData As IPrimarySQLiteSPLD;
    SQLiteSPLD.FileName := "C:\Work\sqlite_repo";
    MbDef.Save;
End Sub UserProc;

After executing the example a new description of the repository is created. The repository, to which connection is established, is based on SQLite DBMS and is located in the specified local file.

See also:

IPrimarySQLiteSPLD