http://digital-flame.ru/

# Class TDataBaseUnitServer

Description | Hierarchy | Fields | Methods | Properties

## Unit

uDataBaseUnitServer

## Declaration

`type TDataBaseUnitServer = class(TDataModule)`

## Description

myUnits

## Hierarchy

- TDataModule
- TDataBaseUnitServer

## Overview

### Fields

| `FDConnection: TFDConnection;`
| `FDPhysMySQLDriverLink: TFDPhysMySQLDriverLink;`
| `qSelectFilesFromFolder: TFDQuery;`
| `qInsertFolderOrFile: TFDQuery;`
| `qDelete: TFDQuery;`
| `qUpdateIdParent: TFDQuery;`
| `qSelectWhereParent: TFDQuery;`
| `qUpdateUsers_id: TFDQuery;`
| `qGetLastInsertedID: TFDQuery;`
| `qInsertFolderOrFileNullUsers_id: TFDQuery;`
| `qSelectFileType: TFDQuery;`
| `qInsertFileType: TFDQuery;`
| `qSelectFileTypeWhere: TFDQuery;`
| `qSelectChildren: TFDQuery;`
| `qGetAbsAdressByID: TFDQuery;`
| `qIsFolder: TFDQuery;`
| `qSelectFromFoldersAndFilesWhereID: TFDQuery;`
| `qSelectFromFoldersAndFilesWhereRelPath: TFDQuery;`
| `qSelectFileExtension: TFDQuery;`
| `qInsertFileExtension: TFDQuery;`
| `qSelectFileExtensions: TFDQuery;`
| `qSelectFileExtensionsByType: TFDQuery;`

### Methods

| `constructor Create(AOwner: TComponent); override;`
| `destructor Destroy; override;`
| `function Connect:Boolean;`
| `function GetFileSize(AFilePath: String): Int64;`
| `procedure SynchronizeDirWithDataBase(dir: string; var RelDir:string; var SDAResult: TStringDynArray; idParent: integer; idUser:integer );`
| `function GetAbsAdressByID(AID: integer): string;`
| `function IsFolder(Aid: integer): boolean;`
| `procedure DeleteRecord(AID:integer);`

### Properties

| `property DataBase: string read FDataBase write FDataBase;`
| `property Password: string read FPassword write FPassword;`
| `property User_Name: string read FUser_Name write FUser_Name;`
| `property Port: string read FPort write FPort;`
| `property Server: string read FServer write FServer;`
| `property CharacterSet: string read FCharacterSet write FCharacterSet;`
| `property FileTypeServer: TFileTypeServer read FFileTypeServer write FFileTypeServer;`

## Description

### Fields

| `FDConnection: TFDConnection;`

| `FDPhysMySQLDriverLink: TFDPhysMySQLDriverLink;`

| `qSelectFilesFromFolder: TFDQuery;`

| `qInsertFolderOrFile: TFDQuery;`

| `qDelete: TFDQuery;`

| `qUpdateIdParent: TFDQuery;`

| `qSelectWhereParent: TFDQuery;`

| `qUpdateUsers_id: TFDQuery;`

| `qGetLastInsertedID: TFDQuery;`

| `qInsertFolderOrFileNullUsers_id: TFDQuery;`

| `qSelectFileType: TFDQuery;`

| `qInsertFileType: TFDQuery;`

| `qSelectFileTypeWhere: TFDQuery;`

| `qSelectChildren: TFDQuery;`

| `qGetAbsAdressByID: TFDQuery;`

| `qIsFolder: TFDQuery;`

| `qSelectFromFoldersAndFilesWhereID: TFDQuery;`

| `qSelectFromFoldersAndFilesWhereRelPath: TFDQuery;`

| `qSelectFileExtension: TFDQuery;`

| `qInsertFileExtension: TFDQuery;`

| `qSelectFileExtensions: TFDQuery;`

| `qSelectFileExtensionsByType: TFDQuery;`

### Methods

| `constructor Create(AOwner: TComponent); override;`
Public declarations

| `destructor Destroy; override;`

| `function Connect:Boolean;`

| `function GetFileSize(AFilePath: String): Int64;`

| `procedure SynchronizeDirWithDataBase(dir: string; var RelDir:string; var SDAResult: TStringDynArray; idParent: integer; idUser:integer );`

| `function GetAbsAdressByID(AID: integer): string;`
will get AbsAdress from ID

| `function IsFolder(Aid: integer): boolean;`
checks if Current Record Folder or not

| `procedure DeleteRecord(AID:integer);`

### Properties

| `property DataBase: string read FDataBase write FDataBase;`

| `property Password: string read FPassword write FPassword;`

| `property User_Name: string read FUser_Name write FUser_Name;`

| `property Port: string read FPort write FPort;`

| `property Server: string read FServer write FServer;`

| `property CharacterSet: string read FCharacterSet write FCharacterSet;`

| `property FileTypeServer: TFileTypeServer read FFileTypeServer write FFileTypeServer;`

Generated by PasDoc 0.14.0.