Class tfbservice

Unit

Declaration

type tfbservice = class(tmsecomponent)

Description

No description available, ancestor tmsecomponent description follows

Hierarchy

Overview

Methods

Protected function connectionmessage(atext: pchar): msestring;
Protected procedure loaded(); override;
Protected procedure doasyncevent(var atag: int32); override;
Protected procedure connect();
Protected procedure closeconn();
Protected procedure disconnect();
Protected procedure readstate(reader: treader); override;
Protected procedure raiseerror(const e: exception; const dberr: boolean);
Protected procedure dberror(const msg: string; const comp: tcomponent; const dberr: boolean);
Protected procedure checkerror(const procname : string; const status : statusvectorty);
Protected procedure checkerror(const procname : string; const status: integer);
Protected procedure checkbusy();
Protected procedure invalidresponse(const procname: string);
Protected procedure start(const procname: string; const params: string);
Protected function getinfo(const procname: string; const items: array of byte; const async: boolean): string;
Protected procedure runcommand(const procname: string; const params: string);
Protected function getmsestringitem(var buffer: pointer; out res: msestring; const cutspace: boolean = false): boolean;
Protected function getmsestringitem(var buffer: pointer; const id: int32; var value: msestring): boolean;
Protected procedure addmseparam(var params: string; const id: int32; const value: msestring);
Protected function internalusers(const ausername: string): fbuserinfoarty;
Protected procedure gettext(const procname: string; const params: string; var res: msestringarty; const maxrowcount: integer);
Protected procedure startmonitor(const procname: string; const aparams: string);
Protected function serviceisrunning: boolean;
Protected procedure tagaction(const aprocname: string; const aaction: int32; var res: msestringarty; const maxrowcount: int32);
Protected procedure tagaction(const aprocname: string; const aaction: int32);
Protected procedure traceaction(const aprocname: string; const aaction: int32; const aid: card32; var res: msestringarty; const maxrowcount: int32);
Protected procedure adduserparams(var params1: string; const ainfo: fbuserinfoty; const aitems: fbuseritemsty);
Public constructor create(aowner: tcomponent); override;
Public destructor destroy(); override;
Public function todbstring(const avalue: msestring): string;
Public function tomsestring(const avalue: string): msestring;
Public procedure cancel();
Public function busy(): boolean;
Public function serverinfo(): fbserverinfoty;
Public function users(): fbuserinfoarty;
Public function user(const ausername: msestring; var ainfo: fbuserinfoty): boolean;
Public procedure adduser(const ainfo: fbuserinfoty; const items: fbuseritemsty);
Public procedure modifyuser(const ainfo: fbuserinfoty; const items: fbuseritemsty);
Public procedure deleteuser(const ausername: msestring; const arolename: msestring = '');
Public procedure getlog(var res: msestringarty; const maxrowcount: int32 = -1);
Public procedure tracestart(const cfg: msestring; const _name: msestring = '');
Public procedure tracelist(var res: msestringarty; const maxrowcount: int32 = -1);
Public procedure tracestop(const aid: card32; var res: msestringarty; const maxrowcount: int32 = -1);
Public procedure tracesuspend(const aid: card32; var res: msestringarty; const maxrowcount: int32 = -1);
Public procedure traceresume(const aid: card32; var res: msestringarty; const maxrowcount: int32 = -1);
Public procedure setmapping();
Public procedure dropmapping();
Public procedure dbstats(const adbname: msestring; const aoptions: dbstatoptionsty; const acommandline: msestring; var res: msestringarty; const maxrowcount: int32 = -1);
Public procedure properties(const adbname: msestring; const ainfo: fbpropertyinfoty; const aitems: fbpropertyitemsty; var res: msestringarty; const maxrowcount: integer= -1);
Public procedure validatestart(const dbname: msestring; const tabincl: msestring = ''; const tabexcl: msestring = ''; const idxincl: msestring = ''; const idxexcl: msestring = ''; const locktimeout: card32 = 0);
Public procedure backupstart(const dbname: msestring; const backupfiles: array of msestring; const lengths: array of card32; const verbose: boolean = false; const stat: string = ''; const aoptions: backupoptionsty = []; const factor: card32 = 0);
Public procedure restorestart(const backupfiles: array of msestring; const dbfiles: array of msestring; const lengths: array of card32; const verbose: boolean = false; const stat: string = ''; const aoptions: restoreoptionsty = []; const accessmode: accessmodety = amo_readwrite; const buffers: card32 = 0; const pagesize: card32 = 0; const fixfssdata: string = ''; const fixfssmetadata: string = '');
Public procedure nbakstart(const dbname: msestring; const _file: msestring; const level: card32; const options: nbakoptionsty; const direct: string = '');
Public procedure nreststart(const dbname: msestring; const files: array of msestring; const options: nbakoptionsty);
Public procedure repairstart(const adbname: msestring; const aoptions: repairoptionsty);

Properties

Public property lasterror: statusvectorty read flasterror;
Public property lasterrormessage: msestring read flasterrormessage;
Public property asynctext: msestringarty read fasynctext write fasynctext;
Published property asyncmaxrowcount: int32 read fasyncmaxrowcount write fasyncmaxrowcount default 0;
Published property hostname : ansistring read fhostname write fhostname;
Published property username : ansistring read fusername write fusername;
Published property password : ansistring read fpassword write fpassword;
Published property connected: boolean read getconnected write setconnected default false;
Published property options: fbserviceoptionsty read foptions write foptions default [];
Published property infotimeout: int32 read finfotimeout write finfotimeout default defaultinfotimeout;
Published property onasynctext: fbservicetexteventty read fonasynctext write fonasynctext;
Published property onasyncend: fbserviceendeventty read fonasyncend write fonasyncend;
Published property onasyncendmain: fbserviceendeventty read fonasyncendmain write fonasyncendmain;
Published property onerror: fbserviceerroreventty read fonerror write fonerror;

Description

Methods

Protected function connectionmessage(atext: pchar): msestring;
 
Protected procedure loaded(); override;
 
Protected procedure doasyncevent(var atag: int32); override;
 
Protected procedure connect();
 
Protected procedure closeconn();
 
Protected procedure disconnect();
 
Protected procedure readstate(reader: treader); override;
 
Protected procedure raiseerror(const e: exception; const dberr: boolean);
 
Protected procedure dberror(const msg: string; const comp: tcomponent; const dberr: boolean);
 
Protected procedure checkerror(const procname : string; const status : statusvectorty);
 
Protected procedure checkerror(const procname : string; const status: integer);
 
Protected procedure checkbusy();
 
Protected procedure invalidresponse(const procname: string);
 
Protected procedure start(const procname: string; const params: string);
 
Protected function getinfo(const procname: string; const items: array of byte; const async: boolean): string;
 
Protected procedure runcommand(const procname: string; const params: string);
 
Protected function getmsestringitem(var buffer: pointer; out res: msestring; const cutspace: boolean = false): boolean;
 
Protected function getmsestringitem(var buffer: pointer; const id: int32; var value: msestring): boolean;
 
Protected procedure addmseparam(var params: string; const id: int32; const value: msestring);
 
Protected function internalusers(const ausername: string): fbuserinfoarty;
 
Protected procedure gettext(const procname: string; const params: string; var res: msestringarty; const maxrowcount: integer);
 
Protected procedure startmonitor(const procname: string; const aparams: string);
 
Protected function serviceisrunning: boolean;
 
Protected procedure tagaction(const aprocname: string; const aaction: int32; var res: msestringarty; const maxrowcount: int32);
 
Protected procedure tagaction(const aprocname: string; const aaction: int32);
 
Protected procedure traceaction(const aprocname: string; const aaction: int32; const aid: card32; var res: msestringarty; const maxrowcount: int32);
 
Protected procedure adduserparams(var params1: string; const ainfo: fbuserinfoty; const aitems: fbuseritemsty);
 
Public constructor create(aowner: tcomponent); override;
 
Public destructor destroy(); override;
 
Public function todbstring(const avalue: msestring): string;
 
Public function tomsestring(const avalue: string): msestring;
 
Public procedure cancel();
 
Public function busy(): boolean;
 
Public function serverinfo(): fbserverinfoty;
 
Public function users(): fbuserinfoarty;
 
Public function user(const ausername: msestring; var ainfo: fbuserinfoty): boolean;
 
Public procedure adduser(const ainfo: fbuserinfoty; const items: fbuseritemsty);
 
Public procedure modifyuser(const ainfo: fbuserinfoty; const items: fbuseritemsty);
 
Public procedure deleteuser(const ausername: msestring; const arolename: msestring = '');
 
Public procedure getlog(var res: msestringarty; const maxrowcount: int32 = -1);
 
Public procedure tracestart(const cfg: msestring; const _name: msestring = '');
 
Public procedure tracelist(var res: msestringarty; const maxrowcount: int32 = -1);
 
Public procedure tracestop(const aid: card32; var res: msestringarty; const maxrowcount: int32 = -1);
 
Public procedure tracesuspend(const aid: card32; var res: msestringarty; const maxrowcount: int32 = -1);
 
Public procedure traceresume(const aid: card32; var res: msestringarty; const maxrowcount: int32 = -1);
 
Public procedure setmapping();
 
Public procedure dropmapping();
 
Public procedure dbstats(const adbname: msestring; const aoptions: dbstatoptionsty; const acommandline: msestring; var res: msestringarty; const maxrowcount: int32 = -1);
 
Public procedure properties(const adbname: msestring; const ainfo: fbpropertyinfoty; const aitems: fbpropertyitemsty; var res: msestringarty; const maxrowcount: integer= -1);
 
Public procedure validatestart(const dbname: msestring; const tabincl: msestring = ''; const tabexcl: msestring = ''; const idxincl: msestring = ''; const idxexcl: msestring = ''; const locktimeout: card32 = 0);
 
Public procedure backupstart(const dbname: msestring; const backupfiles: array of msestring; const lengths: array of card32; const verbose: boolean = false; const stat: string = ''; const aoptions: backupoptionsty = []; const factor: card32 = 0);
 
Public procedure restorestart(const backupfiles: array of msestring; const dbfiles: array of msestring; const lengths: array of card32; const verbose: boolean = false; const stat: string = ''; const aoptions: restoreoptionsty = []; const accessmode: accessmodety = amo_readwrite; const buffers: card32 = 0; const pagesize: card32 = 0; const fixfssdata: string = ''; const fixfssmetadata: string = '');
 
Public procedure nbakstart(const dbname: msestring; const _file: msestring; const level: card32; const options: nbakoptionsty; const direct: string = '');
 
Public procedure nreststart(const dbname: msestring; const files: array of msestring; const options: nbakoptionsty);
 
Public procedure repairstart(const adbname: msestring; const aoptions: repairoptionsty);
 

Properties

Public property lasterror: statusvectorty read flasterror;
 
Public property lasterrormessage: msestring read flasterrormessage;
 
Public property asynctext: msestringarty read fasynctext write fasynctext;
 
Published property asyncmaxrowcount: int32 read fasyncmaxrowcount write fasyncmaxrowcount default 0;
 
Published property hostname : ansistring read fhostname write fhostname;
 
Published property username : ansistring read fusername write fusername;
 
Published property password : ansistring read fpassword write fpassword;
 
Published property connected: boolean read getconnected write setconnected default false;
 
Published property options: fbserviceoptionsty read foptions write foptions default [];
 
Published property infotimeout: int32 read finfotimeout write finfotimeout default defaultinfotimeout;
 
Published property onasynctext: fbservicetexteventty read fonasynctext write fonasynctext;
 
Published property onasyncend: fbserviceendeventty read fonasyncend write fonasyncend;
 
Published property onasyncendmain: fbserviceendeventty read fonasyncendmain write fonasyncendmain;
 
Published property onerror: fbserviceerroreventty read fonerror write fonerror;
 

Generated by PasDoc 0.16.0.