|
|
| version 1.11, 2001/07/23 11:19:25 | version 1.13, 2001/09/26 10:32:25 |
|---|---|
| Line 2 | Line 2 |
| Parser: sql fconnection decl. | Parser: sql fconnection decl. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) |
| $Id$ | $Id$ |
| Line 27 public: | Line 26 public: |
| fconnection(0), | fconnection(0), |
| time_stamp(0) { | time_stamp(0) { |
| } | } |
| const String& url() { return furl; } | |
| void set_services(SQL_Driver_services *aservices) { | void set_services(SQL_Driver_services *aservices) { |
| time_stamp=time(0); // they started to use at this time | time_stamp=time(0); // they started to use at this time |
| fservices=aservices; | fservices=aservices; |
| Line 43 public: | Line 45 public: |
| void connect(char *used_only_in_connect_url_cstr) { | void connect(char *used_only_in_connect_url_cstr) { |
| fdriver.connect(used_only_in_connect_url_cstr, *fservices, &fconnection); | fdriver.connect(used_only_in_connect_url_cstr, *fservices, &fconnection); |
| } | } |
| void disconnect() { fdriver.disconnect(*fservices, fconnection); fconnection=0; } | void disconnect() { fdriver.disconnect(fconnection); fconnection=0; } |
| void commit() { fdriver.commit(*fservices, fconnection); } | void commit() { fdriver.commit(*fservices, fconnection); } |
| void rollback() { fdriver.rollback(*fservices, fconnection); } | void rollback() { fdriver.rollback(*fservices, fconnection); } |
| bool ping() { return fdriver.ping(*fservices, fconnection); } | bool ping() { return fdriver.ping(*fservices, fconnection); } |