Samchon Framework for CPP  1.0.0
TSQLStatement.cpp
1 #include <samchon/library/TSQLStatement.hpp>
2 
3 #include <samchon/library/SQLi.hpp>
4 #include <samchon/library/XML.hpp>
5 
6 using namespace std;
7 using namespace samchon;
8 using namespace samchon::library;
9 
10 TSQLStatement::TSQLStatement(SQLi *sqli)
11  : SQLStatement(sqli) {}
12 TSQLStatement::~TSQLStatement() {}
13 
14 auto TSQLStatement::toXML() const -> shared_ptr<XML>
15 {
16  fetch();
17  string &str = super::at<std::string>(0);
18 
19  shared_ptr<XML> xml(new XML(str));
20  return xml;
21 }
Definition: RWMutex.hpp:4
Package of libraries.
Definition: library.hpp:84
A SQL interface; DBMS connector.
Definition: SQLi.hpp:42
XML is a class representing xml object.
Definition: XML.hpp:72
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7
virtual auto toXML() const -> std::shared_ptr< XML > override
Return an XML representing records.