LibreOffice Module connectivity (master) 1
Namespaces | Functions
pq_tools.cxx File Reference
#include <sal/config.h>
#include <o3tl/any.hxx>
#include <o3tl/string_view.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/XParameters.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/sdbc/KeyRule.hpp>
#include <com/sun/star/sdbcx/KeyType.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include "pq_tools.hxx"
#include "pq_statics.hxx"
#include <libpq-fe.h>
#include <string.h>
#include <string_view>
Include dependency graph for pq_tools.cxx:

Go to the source code of this file.

Namespaces

namespace  pq_sdbc_driver
 

Functions

OUString pq_sdbc_driver::concatQualified (std::u16string_view a, std::u16string_view b)
 
static OString pq_sdbc_driver::iOUStringToOString (std::u16string_view str, ConnectionSettings const *settings)
 
OString pq_sdbc_driver::OUStringToOString (std::u16string_view str, ConnectionSettings const *settings)
 
void pq_sdbc_driver::bufferEscapeConstant (OUStringBuffer &buf, std::u16string_view value, ConnectionSettings *settings)
 
static void pq_sdbc_driver::ibufferQuoteConstant (OUStringBuffer &buf, std::u16string_view value, ConnectionSettings *settings)
 
void pq_sdbc_driver::bufferQuoteConstant (OUStringBuffer &buf, std::u16string_view value, ConnectionSettings *settings)
 
void pq_sdbc_driver::bufferQuoteAnyConstant (OUStringBuffer &buf, const Any &val, ConnectionSettings *settings)
 
static void pq_sdbc_driver::ibufferQuoteIdentifier (OUStringBuffer &buf, std::u16string_view toQuote, ConnectionSettings *settings)
 
void pq_sdbc_driver::bufferQuoteIdentifier (OUStringBuffer &buf, std::u16string_view toQuote, ConnectionSettings *settings)
 
void pq_sdbc_driver::bufferQuoteQualifiedIdentifier (OUStringBuffer &buf, std::u16string_view schema, std::u16string_view table, ConnectionSettings *settings)
 
void pq_sdbc_driver::bufferQuoteQualifiedIdentifier (OUStringBuffer &buf, std::u16string_view schema, std::u16string_view table, std::u16string_view col, ConnectionSettings *settings)
 
OUString pq_sdbc_driver::extractStringProperty (const Reference< XPropertySet > &descriptor, const OUString &name)
 
bool pq_sdbc_driver::extractBoolProperty (const Reference< XPropertySet > &descriptor, const OUString &name)
 
sal_Int32 pq_sdbc_driver::extractIntProperty (const Reference< XPropertySet > &descriptor, const OUString &name)
 
void pq_sdbc_driver::disposeObject (const css::uno::Reference< css::uno::XInterface > &r)
 
void pq_sdbc_driver::disposeNoThrow (const css::uno::Reference< css::uno::XInterface > &r)
 
Reference< XConnection > pq_sdbc_driver::extractConnectionFromStatement (const Reference< XInterface > &stmt)
 
bool pq_sdbc_driver::isWhitespace (sal_Unicode c)
 
OUString pq_sdbc_driver::extractTableFromInsert (std::u16string_view sql)
 
static bool pq_sdbc_driver::isOperator (char c)
 
void pq_sdbc_driver::splitSQL (const OString &sql, std::vector< OString > &vec)
 
void pq_sdbc_driver::tokenizeSQL (const OString &sql, std::vector< OString > &vec)
 
void pq_sdbc_driver::splitConcatenatedIdentifier (std::u16string_view source, OUString *first, OUString *second)
 
OUString pq_sdbc_driver::array2String (const css::uno::Sequence< Any > &seq)
 
std::vector< Any > pq_sdbc_driver::parseArray (std::u16string_view str)
 
std::vector< sal_Int32 > pq_sdbc_driver::parseIntArray (const OUString &str)
 
void pq_sdbc_driver::fillAttnum2attnameMap (Int2StringMap &map, const Reference< css::sdbc::XConnection > &conn, const OUString &schema, const OUString &table)
 
OString pq_sdbc_driver::extractSingleTableFromSelect (const std::vector< OString > &vec)
 
OUString pq_sdbc_driver::getColExprForDefaultSettingVal (ConnectionSettings const *settings)
 
css::uno::Sequence< sal_Int32 > pq_sdbc_driver::string2intarray (const OUString &str)
 
Sequence< OUString > pq_sdbc_driver::convertMappedIntArray2StringArray (const Int2StringMap &map, const Sequence< sal_Int32 > &intArray)
 
OUString pq_sdbc_driver::sqltype2string (const Reference< XPropertySet > &desc)
 
static void pq_sdbc_driver::keyType2String (OUStringBuffer &buf, sal_Int32 keyType)
 
void pq_sdbc_driver::bufferKey2TableConstraint (OUStringBuffer &buf, const Reference< XPropertySet > &key, ConnectionSettings *settings)
 
void pq_sdbc_driver::extractNameValuePairsFromInsert (String2StringMap &map, const OString &lastQuery)
 
OUString pq_sdbc_driver::querySingleValue (const css::uno::Reference< css::sdbc::XConnection > &connection, const OUString &query)
 
bool pq_sdbc_driver::implSetObject (const Reference< XParameters > &_rxParameters, const sal_Int32 _nColumnIndex, const Any &_rValue)