Driver disable without "Zeos.inc"
Posted: 12.07.2021, 16:23
Hi,
I want to disable some database drivers. But I don't want to do this with "Zeos.inc". I could not do this with the codes I added in "project1.inc" in my sample project. Can I disable drivers with "project1.inc"?
I want to disable some database drivers. But I don't want to do this with "Zeos.inc". I could not do this with the codes I added in "project1.inc" in my sample project. Can I disable drivers with "project1.inc"?
Code: Select all
unit Unit1;
interface
{$I project1.inc}
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, ZSqlUpdate, Data.DB, ZAbstractRODataset,
ZAbstractDataset, ZDataset, ZAbstractConnection, ZConnection;
type
TForm1 = class(TForm)
ZQuery1: TZQuery;
ZUpdateSQL1: TZUpdateSQL;
ZConnection1: TZConnection;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
Code: Select all
project1.inc content
{.$DEFINE ZEOS_DISABLE_MYSQL}
{$DEFINE ZEOS_DISABLE_POSTGRESQL}
{.$DEFINE ZEOS_DISABLE_DBLIB}
{$DEFINE ZEOS_DISABLE_ADO}
{.$DEFINE ZEOS_DISABLE_INTERBASE}
{.$DEFINE ZEOS_DISABLE_FIREBIRD}
{$DEFINE ZEOS_DISABLE_SQLITE}
{$DEFINE ZEOS_DISABLE_ORACLE}
{$DEFINE ZEOS_DISABLE_ASA}
{$DEFINE ZEOS_DISABLE_SQLANY}
{.$DEFINE ZEOS_DISABLE_POOLED}
{$DEFINE ZEOS_DISABLE_OLEDB}
{$DEFINE ZEOS_DISABLE_ODBC}
{$DEFINE ZEOS_DISABLE_PROXY}
{$DEFINE ZEOS_PROXY_USE_INTERNAL_PROXY}