使用数据库(DB) / 连接到数据库

uses FireDAC.Comp.Client;

var
  Conn: TFDConnection;
begin
  Conn := TFDConnection.Create(nil);
  Conn.DriverName := 'SQLite';
  //the file is created when missing
  Conn.Params.Database := 'data.db';
  Conn.Open;

  WriteLn('connected: ', Conn.Connected);
end.