src/Connection.h
branchv_0
changeset 28 498d5d3406c3
parent 27 9441a517fa1f
child 29 b0ef1e1dc9c8
equal deleted inserted replaced
27:9441a517fa1f 28:498d5d3406c3
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    16  */
    16  */
    17 #pragma once
    17 #pragma once
    18 
    18 
    19 #include <memory>
       
    20 #include <string>
       
    21 #include <sstream>
       
    22 #include <regex>
       
    23 #include <vector>
       
    24 #include <locale>
       
    25 #include <codecvt>
       
    26 #include <unistd.h>
       
    27 #include <cassert>
       
    28 #include <sys/stat.h>
       
    29 
       
    30 #include <sqlite3.h>
    19 #include <sqlite3.h>
    31 
    20 
    32 #include <relpipe/reader/typedefs.h>
       
    33 #include <relpipe/reader/TypeId.h>
       
    34 #include <relpipe/reader/handlers/RelationalReaderValueHandler.h>
       
    35 #include <relpipe/reader/handlers/AttributeMetadata.h>
       
    36 
       
    37 #include <relpipe/writer/Factory.h>
       
    38 
       
    39 #include "Configuration.h"
       
    40 #include "SqlException.h"
    21 #include "SqlException.h"
    41 #include "PreparedStatement.h"
    22 #include "PreparedStatement.h"
    42 
    23 
    43 namespace relpipe {
    24 namespace relpipe {
    44 namespace tr {
    25 namespace tr {
    45 namespace sql {
    26 namespace sql {
    46 
       
    47 using namespace std;
       
    48 using namespace relpipe;
       
    49 using namespace relpipe::reader;
       
    50 using namespace relpipe::reader::handlers;
       
    51 
    27 
    52 class Connection {
    28 class Connection {
    53 private:
    29 private:
    54 	sqlite3* db;
    30 	sqlite3* db;
    55 	void begin();
    31 	void begin();