|
|
| version 1.17, 2001/10/29 17:35:50 | version 1.20, 2001/12/15 21:28:20 |
|---|---|
| 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://paf.design.ru) |
| $Id$ | $Id$ |
| */ | */ |
| Line 10 | Line 10 |
| #ifndef PA_SQL_CONNECTION_H | #ifndef PA_SQL_CONNECTION_H |
| #define PA_SQL_CONNECTION_H | #define PA_SQL_CONNECTION_H |
| #include "pa_config_includes.h" | |
| #include "pa_pool.h" | #include "pa_pool.h" |
| #include "pa_sql_driver.h" | #include "pa_sql_driver.h" |
| #include "pa_sql_driver_manager.h" | #include "pa_sql_driver_manager.h" |
| Line 36 public: | Line 35 public: |
| time_stamp(0) { | time_stamp(0) { |
| } | } |
| const String& url() { return furl; } | const String& get_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 |
| Line 45 public: | Line 44 public: |
| bool expired(time_t older_dies) { | bool expired(time_t older_dies) { |
| return time_stamp<older_dies; | return time_stamp<older_dies; |
| } | } |
| time_t get_time_stamp() { return time_stamp; } | |
| void close() { | void close() { |
| SQL_driver_manager->close_connection(furl, *this); | SQL_driver_manager->close_connection(furl, *this); |