LibreOffice Module connectivity (master) 1
Classes | Typedefs | Functions | Variables
pq_sdbc_driver Namespace Reference

Classes

class  Array
 
class  BaseResultSet
 
struct  ColDesc
 
class  Column
 
class  ColumnDescriptor
 
class  ColumnDescriptors
 
struct  ColumnMetaData
 
class  Columns
 
struct  CommandData
 
class  Connection
 
struct  ConnectionSettings
 
class  Container
 
class  DatabaseMetaData
 
class  DisposeGuard
 
class  Driver
 
class  EventBroadcastHelper
 
class  FakedUpdateableResultSet
 necessary to avoid crashes in OOo, when an updateable result set is requested, but cannot be delivered. More...
 
struct  HashByteSequence
 
struct  ImplementationStatics
 
class  Index
 
class  IndexColumn
 
class  IndexColumnDescriptor
 
class  IndexColumnDescriptors
 
class  IndexColumns
 
class  IndexDescriptor
 
class  IndexDescriptors
 
class  Indexes
 
class  Key
 
class  KeyColumn
 
class  KeyColumnDescriptor
 
class  KeyColumnDescriptors
 
class  KeyColumns
 
class  KeyDescriptor
 
class  KeyDescriptors
 
class  Keys
 
class  PreparedStatement
 
class  ReflectionBase
 
struct  ReflectionImplementations
 
class  RefreshedBroadcaster
 
class  ResultSet
 
class  ResultSetMetaData
 
class  SequenceResultSet
 
class  SequenceResultSetMetaData
 
class  Statement
 
struct  Statics
 
class  Table
 
class  TableDescriptor
 
class  Tables
 
class  TransactionGuard
 
struct  UpdateableField
 
class  UpdateableResultSet
 
class  User
 
class  UserDescriptor
 
class  Users
 
class  View
 
class  ViewDescriptor
 
class  Views
 

Typedefs

typedef ::cppu::WeakComponentImplHelper< css::sdbc::XCloseable, css::sdbc::XResultSetMetaDataSupplier, css::sdbc::XResultSet, css::sdbc::XRow, css::sdbc::XColumnLocate > BaseResultSet_BASE
 
typedef cppu::WeakComponentImplHelper< css::sdbc::XConnection, css::sdbc::XWarningsSupplier, css::lang::XInitialization, css::sdbcx::XTablesSupplier, css::sdbcx::XViewsSupplier, css::sdbcx::XUsersSupplier > ConnectionBase
 
typedef std::unordered_map< ::rtl::ByteSequence, css::uno::WeakReference< css::sdbc::XCloseable >, HashByteSequenceWeakHashMap
 
typedef std::unordered_map< sal_Int32, OUString > Int2StringMap
 
typedef std::unordered_map< sal_Int32, DatabaseTypeDescription > Oid2DatabaseTypeDescriptionMap
 
typedef cppu::WeakComponentImplHelper< css::sdbc::XDriver, css::lang::XServiceInfo, css::sdbcx::XDataDefinitionSupplier > DriverBase
 
typedef ::cppu::WeakComponentImplHelper< css::sdbc::XPreparedStatement, css::sdbc::XParameters, css::sdbc::XCloseable, css::sdbc::XWarningsSupplier, css::sdbc::XMultipleResults, css::sdbc::XGeneratedResultSet, css::sdbc::XResultSetMetaDataSupplier > PreparedStatement_BASE
 
typedef ::cppu::WeakComponentImplHelper< css::sdbc::XStatement, css::sdbc::XCloseable, css::sdbc::XWarningsSupplier, css::sdbc::XMultipleResults, css::sdbc::XGeneratedResultSet, css::sdbc::XResultSetMetaDataSupplier > Statement_BASE
 
typedef std::vector< ColumnMetaDataColumnMetaDataVector
 
typedef std::unordered_map< OUString, sal_Int32 > BaseTypeMap
 
typedef std::unordered_map< OString, OString > String2StringMap
 
typedef std::vector< UpdateableFieldUpdateableFieldVector
 
typedef ::cppu::WeakComponentImplHelper< css::lang::XServiceInfo, css::sdbcx::XDataDescriptorFactory, css::container::XNamed > ReflectionBase_BASE
 
typedef std::unordered_map< OUString, sal_Int32 > String2IntMap
 
typedef ::cppu::WeakComponentImplHelper< css::container::XNameAccess, css::container::XIndexAccess, css::container::XEnumerationAccess, css::sdbcx::XAppend, css::sdbcx::XDrop, css::util::XRefreshable, css::sdbcx::XDataDescriptorFactory, css::container::XContainer > ContainerBase
 

Functions

::cppu::IPropertyArrayHelpergetResultSetPropertyArrayHelper ()
 
static void properties2arrays (const Sequence< PropertyValue > &args, const Reference< XTypeConverter > &tc, rtl_TextEncoding enc, cstr_vector &keywords, cstr_vector &values)
 
sal_Int32 typeNameToDataType (const OUString &typeName, std::u16string_view typtype)
 returns the constant from sdbc.DataType More...
 
static void columnMetaData2DatabaseTypeDescription (Oid2DatabaseTypeDescriptionMap &oidMap, const Reference< XResultSet > &rs, const Reference< XStatement > &stmt)
 
::cppu::IPropertyArrayHelpergetPreparedStatementPropertyArrayHelper ()
 
static bool isOperator (char c)
 
static bool isNamedParameterStart (std::string_view o, int index)
 
static bool isQuoted (std::string_view str)
 
static bool isNumber (const char *data, sal_Int32 len)
 
static bool isInteger (const char *data, sal_Int32 len)
 
static bool isDate (const char *data, sal_Int32 len)
 
static bool isTime (const char *data, sal_Int32 len)
 
static bool isTimestamp (const char *data, sal_Int32 len)
 
static void extractPrecisionAndScale (sal_Int32 atttypmod, sal_Int32 *precision, sal_Int32 *scale)
 
::cppu::IPropertyArrayHelpergetStatementPropertyArrayHelper ()
 
static void raiseSQLException (const Reference< XInterface > &owner, std::string_view sql, const char *errorMsg, const char *errorType=nullptr)
 
static std::vector< OUString > lookupKeys (const Reference< css::container::XNameAccess > &tables, const OUString &table, OUString *pSchema, OUString *pTable)
 
bool executePostgresCommand (const OString &cmd, struct CommandData *data)
 
static Sequence< OUString > getPrimaryKeyColumnNames (const Reference< XConnection > &connection, const OUString &schemaName, const OUString &tableName)
 
static void getAutoValues (String2StringMap &result, const Reference< XConnection > &connection, const OUString &schemaName, const OUString &tableName, const ConnectionSettings *pConnectionSettings)
 
Reference< XResultSet > getGeneratedValuesFromLastInsert (ConnectionSettings *pConnectionSettings, const Reference< XConnection > &connection, sal_Int32 nLastOid, std::u16string_view lastTableInserted, const OString &lastQuery)
 
css::uno::Reference< css::sdbc::XResultSet > getGeneratedValuesFromLastInsert (ConnectionSettings *pConnectionSettings, const css::uno::Reference< css::sdbc::XConnection > &connection, sal_Int32 nLastOid, std::u16string_view lastTableInserted, const OString &lastQuery)
 
static cppu::IPropertyArrayHelpercreatePropertyArrayHelper (PropertyDef const *props, int count, sal_Int16 attr)
 
static cppu::IPropertyArrayHelpercreatePropertyArrayHelper (PropertyDefEx const *props, int count)
 
StaticsgetStatics ()
 
OUString concatQualified (std::u16string_view a, std::u16string_view b)
 
static OString iOUStringToOString (std::u16string_view str, ConnectionSettings const *settings)
 
OString OUStringToOString (std::u16string_view str, ConnectionSettings const *settings)
 
void bufferEscapeConstant (OUStringBuffer &buf, std::u16string_view value, ConnectionSettings *settings)
 
static void ibufferQuoteConstant (OUStringBuffer &buf, std::u16string_view value, ConnectionSettings *settings)
 
void bufferQuoteConstant (OUStringBuffer &buf, std::u16string_view value, ConnectionSettings *settings)
 
void bufferQuoteAnyConstant (OUStringBuffer &buf, const Any &val, ConnectionSettings *settings)
 
static void ibufferQuoteIdentifier (OUStringBuffer &buf, std::u16string_view toQuote, ConnectionSettings *settings)
 
void bufferQuoteIdentifier (OUStringBuffer &buf, std::u16string_view toQuote, ConnectionSettings *settings)
 
void bufferQuoteQualifiedIdentifier (OUStringBuffer &buf, std::u16string_view schema, std::u16string_view table, ConnectionSettings *settings)
 
void bufferQuoteQualifiedIdentifier (OUStringBuffer &buf, std::u16string_view schema, std::u16string_view table, std::u16string_view col, ConnectionSettings *settings)
 
OUString extractStringProperty (const Reference< XPropertySet > &descriptor, const OUString &name)
 
bool extractBoolProperty (const Reference< XPropertySet > &descriptor, const OUString &name)
 
sal_Int32 extractIntProperty (const Reference< XPropertySet > &descriptor, const OUString &name)
 
void disposeObject (const css::uno::Reference< css::uno::XInterface > &r)
 
void disposeNoThrow (const css::uno::Reference< css::uno::XInterface > &r)
 
Reference< XConnection > extractConnectionFromStatement (const Reference< XInterface > &stmt)
 
bool isWhitespace (sal_Unicode c)
 
OUString extractTableFromInsert (std::u16string_view sql)
 
static bool isOperator (char c)
 
void splitSQL (const OString &sql, std::vector< OString > &vec)
 
void tokenizeSQL (const OString &sql, std::vector< OString > &vec)
 
void splitConcatenatedIdentifier (std::u16string_view source, OUString *first, OUString *second)
 
OUString array2String (const css::uno::Sequence< Any > &seq)
 
std::vector< Any > parseArray (std::u16string_view str)
 
std::vector< sal_Int32 > parseIntArray (const OUString &str)
 
void fillAttnum2attnameMap (Int2StringMap &map, const Reference< css::sdbc::XConnection > &conn, const OUString &schema, const OUString &table)
 
OString extractSingleTableFromSelect (const std::vector< OString > &vec)
 
OUString getColExprForDefaultSettingVal (ConnectionSettings const *settings)
 
css::uno::Sequence< sal_Int32 > string2intarray (const OUString &str)
 
Sequence< OUString > convertMappedIntArray2StringArray (const Int2StringMap &map, const Sequence< sal_Int32 > &intArray)
 
OUString sqltype2string (const Reference< XPropertySet > &desc)
 
static void keyType2String (OUStringBuffer &buf, sal_Int32 keyType)
 
void bufferKey2TableConstraint (OUStringBuffer &buf, const Reference< XPropertySet > &key, ConnectionSettings *settings)
 
void extractNameValuePairsFromInsert (String2StringMap &map, const OString &lastQuery)
 
OUString querySingleValue (const css::uno::Reference< css::sdbc::XConnection > &connection, const OUString &query)
 
bool implSetObject (const Reference< XParameters > &_rxParameters, const sal_Int32 _nColumnIndex, const Any &_rValue)
 
void bufferQuoteAnyConstant (OUStringBuffer &buf, const css::uno::Any &val, ConnectionSettings *settings)
 
OUString sqltype2string (const css::uno::Reference< css::beans::XPropertySet > &column)
 
void bufferKey2TableConstraint (OUStringBuffer &buf, const css::uno::Reference< css::beans::XPropertySet > &key, ConnectionSettings *settings)
 
OUString extractStringProperty (const css::uno::Reference< css::beans::XPropertySet > &descriptor, const OUString &name)
 
sal_Int32 extractIntProperty (const css::uno::Reference< css::beans::XPropertySet > &descriptor, const OUString &name)
 
bool extractBoolProperty (const css::uno::Reference< css::beans::XPropertySet > &descriptor, const OUString &name)
 
OUString array2String (const css::uno::Sequence< css::uno::Any > &seq)
 
css::uno::Reference< css::sdbc::XConnection > extractConnectionFromStatement (const css::uno::Reference< css::uno::XInterface > &stmt)
 
void fillAttnum2attnameMap (Int2StringMap &map, const css::uno::Reference< css::sdbc::XConnection > &conn, const OUString &schema, const OUString &table)
 
css::uno::Sequence< OUString > convertMappedIntArray2StringArray (const Int2StringMap &map, const css::uno::Sequence< sal_Int32 > &source)
 
bool implSetObject (const css::uno::Reference< css::sdbc::XParameters > &_rxParameters, const sal_Int32 _nColumnIndex, const css::uno::Any &_rValue)
 
static Any isCurrency (std::u16string_view typeName)
 
static Any isAutoIncrement (std::u16string_view defaultValue)
 
OUString columnMetaData2SDBCX (ReflectionBase *pBase, const css::uno::Reference< css::sdbc::XRow > &xRow)
 
void alterColumnByDescriptor (std::u16string_view schemaName, std::u16string_view tableName, ConnectionSettings *settings, const Reference< XStatement > &stmt, const css::uno::Reference< css::beans::XPropertySet > &past, const css::uno::Reference< css::beans::XPropertySet > &future)
 
void alterColumnByDescriptor (std::u16string_view schemaName, std::u16string_view tableName, ConnectionSettings *settings, const css::uno::Reference< css::sdbc::XStatement > &stmt, const css::uno::Reference< css::beans::XPropertySet > &past, const css::uno::Reference< css::beans::XPropertySet > &future)
 
static sal_Int32 findInSequence (const Sequence< OUString > &seq, std::u16string_view str)
 
static sal_Int32 string2keytype (std::u16string_view type)
 
static sal_Int32 string2keyrule (std::u16string_view rule)
 
static void appendColumnList (OUStringBuffer &buf, const Reference< XColumnsSupplier > &columnSupplier, ConnectionSettings *settings)
 
static void appendKeyList (OUStringBuffer &buf, const Reference< XKeysSupplier > &keySupplier, ConnectionSettings *settings)
 

Variables

const sal_Int32 BASERESULTSET_CURSOR_NAME = 0
 
const sal_Int32 BASERESULTSET_ESCAPE_PROCESSING = 1
 
const sal_Int32 BASERESULTSET_FETCH_DIRECTION = 2
 
const sal_Int32 BASERESULTSET_FETCH_SIZE = 3
 
const sal_Int32 BASERESULTSET_IS_BOOKMARKABLE = 4
 
const sal_Int32 BASERESULTSET_RESULT_SET_CONCURRENCY = 5
 
const sal_Int32 BASERESULTSET_RESULT_SET_TYPE = 6
 
const sal_Int32 PREPARED_STATEMENT_CURSOR_NAME = 0
 
const sal_Int32 PREPARED_STATEMENT_ESCAPE_PROCESSING = 1
 
const sal_Int32 PREPARED_STATEMENT_FETCH_DIRECTION = 2
 
const sal_Int32 PREPARED_STATEMENT_FETCH_SIZE = 3
 
const sal_Int32 PREPARED_STATEMENT_MAX_FIELD_SIZE = 4
 
const sal_Int32 PREPARED_STATEMENT_MAX_ROWS = 5
 
const sal_Int32 PREPARED_STATEMENT_QUERY_TIME_OUT = 6
 
const sal_Int32 PREPARED_STATEMENT_RESULT_SET_CONCURRENCY = 7
 
const sal_Int32 PREPARED_STATEMENT_RESULT_SET_TYPE = 8
 
const int PQ_VARHDRSZ = sizeof( sal_Int32 )
 
const sal_Int32 STATEMENT_CURSOR_NAME = 0
 
const sal_Int32 STATEMENT_ESCAPE_PROCESSING = 1
 
const sal_Int32 STATEMENT_FETCH_DIRECTION = 2
 
const sal_Int32 STATEMENT_FETCH_SIZE = 3
 
const sal_Int32 STATEMENT_MAX_FIELD_SIZE = 4
 
const sal_Int32 STATEMENT_MAX_ROWS = 5
 
const sal_Int32 STATEMENT_QUERY_TIME_OUT = 6
 
const sal_Int32 STATEMENT_RESULT_SET_CONCURRENCY = 7
 
const sal_Int32 STATEMENT_RESULT_SET_TYPE = 8
 
const sal_Int32 TABLE_INDEX_CATALOG = 0
 
const sal_Int32 TABLE_INDEX_SCHEMA = 1
 
const sal_Int32 TABLE_INDEX_NAME = 2
 
const sal_Int32 TABLE_INDEX_TYPE = 3
 
const sal_Int32 TABLE_INDEX_REMARKS = 4
 

Typedef Documentation

◆ BaseResultSet_BASE

typedef ::cppu::WeakComponentImplHelper< css::sdbc::XCloseable, css::sdbc::XResultSetMetaDataSupplier, css::sdbc::XResultSet, css::sdbc::XRow, css::sdbc::XColumnLocate > pq_sdbc_driver::BaseResultSet_BASE

Definition at line 66 of file pq_baseresultset.hxx.

◆ BaseTypeMap

typedef std::unordered_map< OUString, sal_Int32> pq_sdbc_driver::BaseTypeMap

Definition at line 94 of file pq_statics.hxx.

◆ ColumnMetaDataVector

Definition at line 88 of file pq_statics.hxx.

◆ ConnectionBase

typedef cppu::WeakComponentImplHelper< css::sdbc::XConnection, css::sdbc::XWarningsSupplier, css::lang::XInitialization, css::sdbcx::XTablesSupplier, css::sdbcx::XViewsSupplier, css::sdbcx::XUsersSupplier > pq_sdbc_driver::ConnectionBase

Definition at line 97 of file pq_connection.hxx.

◆ ContainerBase

typedef ::cppu::WeakComponentImplHelper< css::container::XNameAccess, css::container::XIndexAccess, css::container::XEnumerationAccess, css::sdbcx::XAppend, css::sdbcx::XDrop, css::util::XRefreshable, css::sdbcx::XDataDescriptorFactory, css::container::XContainer> pq_sdbc_driver::ContainerBase

Definition at line 105 of file pq_xcontainer.hxx.

◆ DriverBase

typedef cppu::WeakComponentImplHelper< css::sdbc::XDriver, css::lang::XServiceInfo, css::sdbcx::XDataDefinitionSupplier > pq_sdbc_driver::DriverBase

Definition at line 65 of file pq_driver.hxx.

◆ Int2StringMap

typedef std::unordered_map< sal_Int32, OUString> pq_sdbc_driver::Int2StringMap

Definition at line 118 of file pq_connection.hxx.

◆ Oid2DatabaseTypeDescriptionMap

typedef std::unordered_map< sal_Int32, DatabaseTypeDescription> pq_sdbc_driver::Oid2DatabaseTypeDescriptionMap

Definition at line 1391 of file pq_databasemetadata.cxx.

◆ PreparedStatement_BASE

typedef ::cppu::WeakComponentImplHelper< css::sdbc::XPreparedStatement, css::sdbc::XParameters, css::sdbc::XCloseable, css::sdbc::XWarningsSupplier, css::sdbc::XMultipleResults, css::sdbc::XGeneratedResultSet, css::sdbc::XResultSetMetaDataSupplier > pq_sdbc_driver::PreparedStatement_BASE

Definition at line 73 of file pq_preparedstatement.hxx.

◆ ReflectionBase_BASE

typedef ::cppu::WeakComponentImplHelper< css::lang::XServiceInfo, css::sdbcx::XDataDescriptorFactory, css::container::XNamed > pq_sdbc_driver::ReflectionBase_BASE

Definition at line 52 of file pq_xbase.hxx.

◆ Statement_BASE

typedef ::cppu::WeakComponentImplHelper< css::sdbc::XStatement, css::sdbc::XCloseable, css::sdbc::XWarningsSupplier, css::sdbc::XMultipleResults, css::sdbc::XGeneratedResultSet, css::sdbc::XResultSetMetaDataSupplier > pq_sdbc_driver::Statement_BASE

Definition at line 75 of file pq_statement.hxx.

◆ String2IntMap

typedef std::unordered_map< OUString, sal_Int32> pq_sdbc_driver::String2IntMap

Definition at line 93 of file pq_xcontainer.hxx.

◆ String2StringMap

typedef std::unordered_map< OString, OString > pq_sdbc_driver::String2StringMap

Definition at line 139 of file pq_tools.hxx.

◆ UpdateableFieldVector

Definition at line 61 of file pq_updateableresultset.hxx.

◆ WeakHashMap

typedef std::unordered_map< ::rtl::ByteSequence, css::uno::WeakReference< css::sdbc::XCloseable >, HashByteSequence > pq_sdbc_driver::WeakHashMap

Definition at line 111 of file pq_connection.hxx.

Function Documentation

◆ alterColumnByDescriptor() [1/2]

void pq_sdbc_driver::alterColumnByDescriptor ( std::u16string_view  schemaName,
std::u16string_view  tableName,
ConnectionSettings settings,
const css::uno::Reference< css::sdbc::XStatement > &  stmt,
const css::uno::Reference< css::beans::XPropertySet > &  past,
const css::uno::Reference< css::beans::XPropertySet > &  future 
)

◆ alterColumnByDescriptor() [2/2]

void pq_sdbc_driver::alterColumnByDescriptor ( std::u16string_view  schemaName,
std::u16string_view  tableName,
ConnectionSettings settings,
const Reference< XStatement > &  stmt,
const css::uno::Reference< css::beans::XPropertySet > &  past,
const css::uno::Reference< css::beans::XPropertySet > &  future 
)

◆ appendColumnList()

static void pq_sdbc_driver::appendColumnList ( OUStringBuffer &  buf,
const Reference< XColumnsSupplier > &  columnSupplier,
ConnectionSettings settings 
)
static

◆ appendKeyList()

static void pq_sdbc_driver::appendKeyList ( OUStringBuffer &  buf,
const Reference< XKeysSupplier > &  keySupplier,
ConnectionSettings settings 
)
static

Definition at line 217 of file pq_xtables.cxx.

References bufferKey2TableConstraint().

Referenced by pq_sdbc_driver::Tables::appendByDescriptor().

◆ array2String() [1/2]

OUString pq_sdbc_driver::array2String ( const css::uno::Sequence< Any > &  seq)

Definition at line 569 of file pq_tools.cxx.

References i.

Referenced by pq_sdbc_driver::PreparedStatement::setArray().

◆ array2String() [2/2]

OUString pq_sdbc_driver::array2String ( const css::uno::Sequence< css::uno::Any > &  seq)

◆ bufferEscapeConstant()

void pq_sdbc_driver::bufferEscapeConstant ( OUStringBuffer &  buf,
std::u16string_view  value,
ConnectionSettings settings 
)

◆ bufferKey2TableConstraint() [1/2]

void pq_sdbc_driver::bufferKey2TableConstraint ( OUStringBuffer &  buf,
const css::uno::Reference< css::beans::XPropertySet > &  key,
ConnectionSettings settings 
)

◆ bufferKey2TableConstraint() [2/2]

void pq_sdbc_driver::bufferKey2TableConstraint ( OUStringBuffer &  buf,
const Reference< XPropertySet > &  key,
ConnectionSettings settings 
)

◆ bufferQuoteAnyConstant() [1/2]

void pq_sdbc_driver::bufferQuoteAnyConstant ( OUStringBuffer &  buf,
const Any &  val,
ConnectionSettings settings 
)

◆ bufferQuoteAnyConstant() [2/2]

void pq_sdbc_driver::bufferQuoteAnyConstant ( OUStringBuffer &  buf,
const css::uno::Any &  val,
ConnectionSettings settings 
)

◆ bufferQuoteConstant()

void pq_sdbc_driver::bufferQuoteConstant ( OUStringBuffer &  buf,
std::u16string_view  value,
ConnectionSettings settings 
)

◆ bufferQuoteIdentifier()

void pq_sdbc_driver::bufferQuoteIdentifier ( OUStringBuffer &  buf,
std::u16string_view  toQuote,
ConnectionSettings settings 
)

◆ bufferQuoteQualifiedIdentifier() [1/2]

void pq_sdbc_driver::bufferQuoteQualifiedIdentifier ( OUStringBuffer &  buf,
std::u16string_view  schema,
std::u16string_view  table,
ConnectionSettings settings 
)

◆ bufferQuoteQualifiedIdentifier() [2/2]

void pq_sdbc_driver::bufferQuoteQualifiedIdentifier ( OUStringBuffer &  buf,
std::u16string_view  schema,
std::u16string_view  table,
std::u16string_view  col,
ConnectionSettings settings 
)

Definition at line 189 of file pq_tools.cxx.

References col, ibufferQuoteIdentifier(), and table.

◆ columnMetaData2DatabaseTypeDescription()

static void pq_sdbc_driver::columnMetaData2DatabaseTypeDescription ( Oid2DatabaseTypeDescriptionMap oidMap,
const Reference< XResultSet > &  rs,
const Reference< XStatement > &  stmt 
)
static

Definition at line 1393 of file pq_databasemetadata.cxx.

References disposeNoThrow().

Referenced by pq_sdbc_driver::DatabaseMetaData::getColumns().

◆ columnMetaData2SDBCX()

OUString pq_sdbc_driver::columnMetaData2SDBCX ( ReflectionBase pBase,
const css::uno::Reference< css::sdbc::XRow > &  xRow 
)

◆ concatQualified()

OUString pq_sdbc_driver::concatQualified ( std::u16string_view  a,
std::u16string_view  b 
)

◆ convertMappedIntArray2StringArray() [1/2]

css::uno::Sequence< OUString > pq_sdbc_driver::convertMappedIntArray2StringArray ( const Int2StringMap map,
const css::uno::Sequence< sal_Int32 > &  source 
)

◆ convertMappedIntArray2StringArray() [2/2]

Sequence< OUString > pq_sdbc_driver::convertMappedIntArray2StringArray ( const Int2StringMap map,
const Sequence< sal_Int32 > &  intArray 
)

Definition at line 917 of file pq_tools.cxx.

References i, and map.

Referenced by getPrimaryKeyColumnNames(), and pq_sdbc_driver::Keys::refresh().

◆ createPropertyArrayHelper() [1/2]

static cppu::IPropertyArrayHelper * pq_sdbc_driver::createPropertyArrayHelper ( PropertyDef const *  props,
int  count,
sal_Int16  attr 
)
static

Definition at line 88 of file pq_statics.cxx.

References count, i, name, Property, props, and type.

Referenced by getStatics().

◆ createPropertyArrayHelper() [2/2]

static cppu::IPropertyArrayHelper * pq_sdbc_driver::createPropertyArrayHelper ( PropertyDefEx const *  props,
int  count 
)
static

Definition at line 100 of file pq_statics.cxx.

References attribute, count, i, name, Property, props, and type.

◆ disposeNoThrow()

void pq_sdbc_driver::disposeNoThrow ( const css::uno::Reference< css::uno::XInterface > &  r)

◆ disposeObject()

void pq_sdbc_driver::disposeObject ( const css::uno::Reference< css::uno::XInterface > &  r)

Definition at line 228 of file pq_tools.cxx.

References comp.

Referenced by disposeNoThrow().

◆ executePostgresCommand()

bool pq_sdbc_driver::executePostgresCommand ( const OString &  cmd,
struct CommandData data 
)

◆ extractBoolProperty() [1/2]

bool pq_sdbc_driver::extractBoolProperty ( const css::uno::Reference< css::beans::XPropertySet > &  descriptor,
const OUString &  name 
)

◆ extractBoolProperty() [2/2]

bool pq_sdbc_driver::extractBoolProperty ( const Reference< XPropertySet > &  descriptor,
const OUString &  name 
)

Definition at line 212 of file pq_tools.cxx.

References name, and value.

Referenced by pq_sdbc_driver::Indexes::appendByDescriptor(), and appendColumnList().

◆ extractConnectionFromStatement() [1/2]

css::uno::Reference< css::sdbc::XConnection > pq_sdbc_driver::extractConnectionFromStatement ( const css::uno::Reference< css::uno::XInterface > &  stmt)

◆ extractConnectionFromStatement() [2/2]

Reference< XConnection > pq_sdbc_driver::extractConnectionFromStatement ( const Reference< XInterface > &  stmt)

◆ extractIntProperty() [1/2]

sal_Int32 pq_sdbc_driver::extractIntProperty ( const css::uno::Reference< css::beans::XPropertySet > &  descriptor,
const OUString &  name 
)

◆ extractIntProperty() [2/2]

sal_Int32 pq_sdbc_driver::extractIntProperty ( const Reference< XPropertySet > &  descriptor,
const OUString &  name 
)

◆ extractNameValuePairsFromInsert()

void pq_sdbc_driver::extractNameValuePairsFromInsert ( String2StringMap map,
const OString &  lastQuery 
)

Definition at line 1080 of file pq_tools.cxx.

References equalsIgnoreAsciiCase(), map, n, name, and tokenizeSQL().

Referenced by getGeneratedValuesFromLastInsert().

◆ extractPrecisionAndScale()

static void pq_sdbc_driver::extractPrecisionAndScale ( sal_Int32  atttypmod,
sal_Int32 *  precision,
sal_Int32 *  scale 
)
static

◆ extractSingleTableFromSelect()

OString pq_sdbc_driver::extractSingleTableFromSelect ( const std::vector< OString > &  vec)

Definition at line 732 of file pq_tools.cxx.

References getLength(), i, and pData.

Referenced by executePostgresCommand().

◆ extractStringProperty() [1/2]

OUString pq_sdbc_driver::extractStringProperty ( const css::uno::Reference< css::beans::XPropertySet > &  descriptor,
const OUString &  name 
)

◆ extractStringProperty() [2/2]

OUString pq_sdbc_driver::extractStringProperty ( const Reference< XPropertySet > &  descriptor,
const OUString &  name 
)

◆ extractTableFromInsert()

OUString pq_sdbc_driver::extractTableFromInsert ( std::u16string_view  sql)

Definition at line 318 of file pq_tools.cxx.

References i, isWhitespace(), o3tl::matchIgnoreAsciiCase(), start, o3tl::trim(), and u.

Referenced by executePostgresCommand().

◆ fillAttnum2attnameMap() [1/2]

void pq_sdbc_driver::fillAttnum2attnameMap ( Int2StringMap map,
const css::uno::Reference< css::sdbc::XConnection > &  conn,
const OUString &  schema,
const OUString &  table 
)

◆ fillAttnum2attnameMap() [2/2]

void pq_sdbc_driver::fillAttnum2attnameMap ( Int2StringMap map,
const Reference< css::sdbc::XConnection > &  conn,
const OUString &  schema,
const OUString &  table 
)

◆ findInSequence()

static sal_Int32 pq_sdbc_driver::findInSequence ( const Sequence< OUString > &  seq,
std::u16string_view  str 
)
static

Definition at line 90 of file pq_xindexcolumns.cxx.

References index.

Referenced by pq_sdbc_driver::IndexColumns::refresh().

◆ getAutoValues()

static void pq_sdbc_driver::getAutoValues ( String2StringMap result,
const Reference< XConnection > &  connection,
const OUString &  schemaName,
const OUString &  tableName,
const ConnectionSettings pConnectionSettings 
)
static

◆ getColExprForDefaultSettingVal()

OUString pq_sdbc_driver::getColExprForDefaultSettingVal ( ConnectionSettings const *  settings)

◆ getGeneratedValuesFromLastInsert() [1/2]

css::uno::Reference< css::sdbc::XResultSet > pq_sdbc_driver::getGeneratedValuesFromLastInsert ( ConnectionSettings pConnectionSettings,
const css::uno::Reference< css::sdbc::XConnection > &  connection,
sal_Int32  nLastOid,
std::u16string_view  lastTableInserted,
const OString &  lastQuery 
)

◆ getGeneratedValuesFromLastInsert() [2/2]

Reference< XResultSet > pq_sdbc_driver::getGeneratedValuesFromLastInsert ( ConnectionSettings pConnectionSettings,
const Reference< XConnection > &  connection,
sal_Int32  nLastOid,
std::u16string_view  lastTableInserted,
const OString &  lastQuery 
)

◆ getPreparedStatementPropertyArrayHelper()

::cppu::IPropertyArrayHelper & pq_sdbc_driver::getPreparedStatementPropertyArrayHelper ( )
static

◆ getPrimaryKeyColumnNames()

static Sequence< OUString > pq_sdbc_driver::getPrimaryKeyColumnNames ( const Reference< XConnection > &  connection,
const OUString &  schemaName,
const OUString &  tableName 
)
static

◆ getResultSetPropertyArrayHelper()

::cppu::IPropertyArrayHelper & pq_sdbc_driver::getResultSetPropertyArrayHelper ( )
static

◆ getStatementPropertyArrayHelper()

::cppu::IPropertyArrayHelper & pq_sdbc_driver::getStatementPropertyArrayHelper ( )
static

◆ getStatics()

Statics & pq_sdbc_driver::getStatics ( )

Definition at line 112 of file pq_statics.cxx.

References pq_sdbc_driver::Statics::baseTypeMap, pq_sdbc_driver::Statics::BEGIN, pq_sdbc_driver::Statics::CATALOG, pq_sdbc_driver::Statics::CATALOG_NAME, pq_sdbc_driver::Statics::CHECK_OPTION, pq_sdbc_driver::ReflectionImplementations::column, pq_sdbc_driver::ReflectionImplementations::columnDescriptor, columnName, pq_sdbc_driver::Statics::columnRowNames, pq_sdbc_driver::Statics::COMMAND, pq_sdbc_driver::Statics::COMMIT, pq_sdbc_driver::Statics::cPERCENT, pq_sdbc_driver::Statics::CREATE, createPropertyArrayHelper(), pq_sdbc_driver::Statics::CURSOR_NAME, pq_sdbc_driver::Statics::DEFAULT_VALUE, pq_sdbc_driver::Statics::DELETE, pq_sdbc_driver::Statics::DELETE_RULE, pq_sdbc_driver::Statics::DESCRIPTION, pq_sdbc_driver::Statics::ESCAPE_PROCESSING, pq_sdbc_driver::Statics::EXECUTE, pq_sdbc_driver::Statics::FALSE, pq_sdbc_driver::Statics::FETCH_DIRECTION, pq_sdbc_driver::Statics::FETCH_SIZE, cppu::UnoType< typename T >::get(), pq_sdbc_driver::Statics::HELP_TEXT, i, pq_sdbc_driver::ImplementationStatics::implName, pq_sdbc_driver::ReflectionImplementations::index, pq_sdbc_driver::Statics::INDEX, pq_sdbc_driver::Statics::INDEX_COLUMN, pq_sdbc_driver::ReflectionImplementations::indexColumn, pq_sdbc_driver::ReflectionImplementations::indexColumnDescriptor, pq_sdbc_driver::ReflectionImplementations::indexDescriptor, pq_sdbc_driver::Statics::indexinfoColumnNames, pq_sdbc_driver::Statics::INSERT, pq_sdbc_driver::Statics::IS_ASCENDING, pq_sdbc_driver::Statics::IS_AUTO_INCREMENT, pq_sdbc_driver::Statics::IS_BOOKMARKABLE, pq_sdbc_driver::Statics::IS_CLUSTERED, pq_sdbc_driver::Statics::IS_CURRENCY, pq_sdbc_driver::Statics::IS_NULLABLE, pq_sdbc_driver::Statics::IS_PRIMARY_KEY_INDEX, pq_sdbc_driver::Statics::IS_ROW_VERSISON, pq_sdbc_driver::Statics::IS_UNIQUE, isAutoIncrement(), isCurrency(), isNullable, pq_sdbc_driver::ReflectionImplementations::key, pq_sdbc_driver::Statics::KEY, pq_sdbc_driver::Statics::KEY_COLUMN, pq_sdbc_driver::ReflectionImplementations::keycolumn, pq_sdbc_driver::ReflectionImplementations::keycolumnDescriptor, pq_sdbc_driver::ReflectionImplementations::keyDescriptor, pq_sdbc_driver::Statics::NAME, pq_sdbc_driver::Statics::NO, pq_sdbc_driver::Statics::NO_NULLS, pq_sdbc_driver::Statics::NULABLE, pq_sdbc_driver::Statics::NULLABLE_UNKNOWN, p, pq_sdbc_driver::Statics::PASSWORD, pq_sdbc_driver::ImplementationStatics::pProps, precision, pq_sdbc_driver::Statics::PRECISION, pq_sdbc_driver::Statics::primaryKeyNames, pq_sdbc_driver::Statics::PRIVATE_COLUMN_INDEXES, pq_sdbc_driver::Statics::PRIVATE_COLUMNS, pq_sdbc_driver::Statics::PRIVATE_FOREIGN_COLUMNS, pq_sdbc_driver::Statics::PRIVILEGES, READONLY, pq_sdbc_driver::Statics::REFERENCED_TABLE, pq_sdbc_driver::Statics::REFERENCES, pq_sdbc_driver::Statics::refl, pq_sdbc_driver::Statics::RELATED_COLUMN, pq_sdbc_driver::Statics::RESULT_SET_CONCURRENCY, pq_sdbc_driver::Statics::RESULT_SET_TYPE, pq_sdbc_driver::Statics::resultSetArrayColumnNames, pq_sdbc_driver::Statics::ROLLBACK, pq_sdbc_driver::Statics::RULE, scale, pq_sdbc_driver::Statics::SCALE, pq_sdbc_driver::Statics::SCHEMA_NAME, pq_sdbc_driver::Statics::schemaNames, schemaTableName, pq_sdbc_driver::Statics::SELECT, pq_sdbc_driver::ImplementationStatics::serviceNames, pq_sdbc_driver::Statics::SYSTEM_TABLE, pq_sdbc_driver::ReflectionImplementations::table, pq_sdbc_driver::Statics::TABLE, TABLE_INDEX_CATALOG, TABLE_INDEX_NAME, TABLE_INDEX_REMARKS, TABLE_INDEX_SCHEMA, TABLE_INDEX_TYPE, pq_sdbc_driver::ReflectionImplementations::tableDescriptor, tableName, pq_sdbc_driver::Statics::tablesRowNames, pq_sdbc_driver::Statics::tableTypeData, pq_sdbc_driver::Statics::tableTypeNames, pq_sdbc_driver::Statics::TEMPORARY, pq_sdbc_driver::Statics::TRIGGER, pq_sdbc_driver::Statics::TRUE, type, pq_sdbc_driver::Statics::TYPE, pq_sdbc_driver::Statics::TYPE_NAME, pq_sdbc_driver::Statics::typeinfoColumnNames, pq_sdbc_driver::Statics::typeInfoMetaData, typeName, pq_sdbc_driver::Statics::UNKNOWN, pq_sdbc_driver::Statics::UPDATE, pq_sdbc_driver::Statics::UPDATE_RULE, pq_sdbc_driver::Statics::USAGE, pq_sdbc_driver::ReflectionImplementations::user, pq_sdbc_driver::Statics::USER, pq_sdbc_driver::ReflectionImplementations::userDescriptor, pq_sdbc_driver::ReflectionImplementations::view, pq_sdbc_driver::Statics::VIEW, pq_sdbc_driver::ReflectionImplementations::viewDescriptor, and pq_sdbc_driver::Statics::YES.

Referenced by alterColumnByDescriptor(), pq_sdbc_driver::Table::alterColumnByIndex(), pq_sdbc_driver::Columns::appendByDescriptor(), pq_sdbc_driver::Container::appendByDescriptor(), pq_sdbc_driver::Indexes::appendByDescriptor(), pq_sdbc_driver::Tables::appendByDescriptor(), pq_sdbc_driver::Users::appendByDescriptor(), pq_sdbc_driver::Views::appendByDescriptor(), appendColumnList(), bufferKey2TableConstraint(), pq_sdbc_driver::User::changePassword(), columnMetaData2SDBCX(), pq_sdbc_driver::TransactionGuard::commit(), pq_sdbc_driver::Columns::dropByIndex(), pq_sdbc_driver::Indexes::dropByIndex(), pq_sdbc_driver::Keys::dropByIndex(), pq_sdbc_driver::Tables::dropByIndex(), pq_sdbc_driver::Users::dropByIndex(), pq_sdbc_driver::Views::dropByIndex(), pq_sdbc_driver::PreparedStatement::execute(), pq_sdbc_driver::Statement::execute(), pq_sdbc_driver::Index::getColumns(), pq_sdbc_driver::Key::getColumns(), pq_sdbc_driver::Table::getColumns(), pq_sdbc_driver::DatabaseMetaData::getColumns(), pq_sdbc_driver::ResultSetMetaData::getColumnType(), pq_sdbc_driver::ResultSetMetaData::getColumnTypeName(), pq_sdbc_driver::Table::getIndexes(), pq_sdbc_driver::DatabaseMetaData::getIndexInfo(), pq_sdbc_driver::Table::getKeys(), pq_sdbc_driver::ReflectionBase::getName(), pq_sdbc_driver::Table::getName(), pq_sdbc_driver::View::getName(), pq_sdbc_driver::DatabaseMetaData::getPrimaryKeys(), pq_sdbc_driver::Array::getResultSetAtIndex(), pq_sdbc_driver::DatabaseMetaData::getSchemas(), pq_sdbc_driver::DatabaseMetaData::getTables(), pq_sdbc_driver::DatabaseMetaData::getTableTypes(), pq_sdbc_driver::DatabaseMetaData::getTypeInfo(), pq_sdbc_driver::ResultSetMetaData::isAutoIncrement(), pq_sdbc_driver::ResultSetMetaData::isCurrency(), pq_sdbc_driver::ResultSetMetaData::isNullable(), lookupKeys(), pq_sdbc_driver::Columns::refresh(), pq_sdbc_driver::IndexColumns::refresh(), pq_sdbc_driver::Indexes::refresh(), pq_sdbc_driver::KeyColumns::refresh(), pq_sdbc_driver::Keys::refresh(), pq_sdbc_driver::Tables::refresh(), pq_sdbc_driver::Users::refresh(), pq_sdbc_driver::Views::refresh(), pq_sdbc_driver::Table::rename(), pq_sdbc_driver::View::rename(), sqltype2string(), typeNameToDataType(), pq_sdbc_driver::UpdateableResultSet::updateBoolean(), and pq_sdbc_driver::TransactionGuard::~TransactionGuard().

◆ ibufferQuoteConstant()

static void pq_sdbc_driver::ibufferQuoteConstant ( OUStringBuffer &  buf,
std::u16string_view  value,
ConnectionSettings settings 
)
static

Definition at line 131 of file pq_tools.cxx.

References bufferEscapeConstant(), and value.

Referenced by bufferQuoteConstant().

◆ ibufferQuoteIdentifier()

static void pq_sdbc_driver::ibufferQuoteIdentifier ( OUStringBuffer &  buf,
std::u16string_view  toQuote,
ConnectionSettings settings 
)
static

◆ implSetObject() [1/2]

bool pq_sdbc_driver::implSetObject ( const css::uno::Reference< css::sdbc::XParameters > &  _rxParameters,
const sal_Int32  _nColumnIndex,
const css::uno::Any &  _rValue 
)

◆ implSetObject() [2/2]

bool pq_sdbc_driver::implSetObject ( const Reference< XParameters > &  _rxParameters,
const sal_Int32  _nColumnIndex,
const Any &  _rValue 
)

Definition at line 1157 of file pq_tools.cxx.

References o3tl::tryAccess(), and xStream.

Referenced by pq_sdbc_driver::PreparedStatement::setObject().

◆ iOUStringToOString()

static OString pq_sdbc_driver::iOUStringToOString ( std::u16string_view  str,
ConnectionSettings const *  settings 
)
static

◆ isAutoIncrement()

static Any pq_sdbc_driver::isAutoIncrement ( std::u16string_view  defaultValue)
static

Definition at line 90 of file pq_xcolumns.cxx.

References Any, o3tl::starts_with(), and u.

Referenced by appendColumnList(), columnMetaData2SDBCX(), and getStatics().

◆ isCurrency()

static Any pq_sdbc_driver::isCurrency ( std::u16string_view  typeName)
static

Definition at line 79 of file pq_xcolumns.cxx.

References Any, o3tl::equalsIgnoreAsciiCase(), typeName, and u.

Referenced by columnMetaData2SDBCX(), and getStatics().

◆ isDate()

static bool pq_sdbc_driver::isDate ( const char *  data,
sal_Int32  len 
)
static

Definition at line 229 of file pq_resultset.cxx.

References isInteger().

Referenced by pq_sdbc_driver::ResultSet::guessDataType(), and isTimestamp().

◆ isInteger()

static bool pq_sdbc_driver::isInteger ( const char *  data,
sal_Int32  len 
)
static

Definition at line 201 of file pq_resultset.cxx.

References i.

Referenced by pq_sdbc_driver::ResultSet::guessDataType(), isDate(), and isTime().

◆ isNamedParameterStart()

static bool pq_sdbc_driver::isNamedParameterStart ( std::string_view  o,
int  index 
)
static

◆ isNumber()

static bool pq_sdbc_driver::isNumber ( const char *  data,
sal_Int32  len 
)
static

Definition at line 173 of file pq_resultset.cxx.

References i.

Referenced by pq_sdbc_driver::ResultSet::guessDataType().

◆ isOperator() [1/2]

static bool pq_sdbc_driver::isOperator ( char  c)
static

◆ isOperator() [2/2]

static bool pq_sdbc_driver::isOperator ( char  c)
static

Definition at line 373 of file pq_tools.cxx.

◆ isQuoted()

static bool pq_sdbc_driver::isQuoted ( std::string_view  str)
static

◆ isTime()

static bool pq_sdbc_driver::isTime ( const char *  data,
sal_Int32  len 
)
static

Definition at line 239 of file pq_resultset.cxx.

References isInteger().

Referenced by pq_sdbc_driver::ResultSet::guessDataType(), and isTimestamp().

◆ isTimestamp()

static bool pq_sdbc_driver::isTimestamp ( const char *  data,
sal_Int32  len 
)
static

Definition at line 250 of file pq_resultset.cxx.

References isDate(), and isTime().

Referenced by pq_sdbc_driver::ResultSet::guessDataType().

◆ isWhitespace()

bool pq_sdbc_driver::isWhitespace ( sal_Unicode  c)

◆ keyType2String()

static void pq_sdbc_driver::keyType2String ( OUStringBuffer &  buf,
sal_Int32  keyType 
)
static

Definition at line 967 of file pq_tools.cxx.

Referenced by bufferKey2TableConstraint().

◆ lookupKeys()

static std::vector< OUString > pq_sdbc_driver::lookupKeys ( const Reference< css::container::XNameAccess > &  tables,
const OUString &  table,
OUString *  pSchema,
OUString *  pTable 
)
static

◆ OUStringToOString()

OString pq_sdbc_driver::OUStringToOString ( std::u16string_view  str,
ConnectionSettings const *  settings 
)

Definition at line 100 of file pq_tools.cxx.

References iOUStringToOString().

Referenced by connectivity::firebird::Connection::attachServiceManager(), connectivity::odbc::OTools::bindValue(), connectivity::evoab::OEvoabConnection::construct(), connectivity::firebird::Connection::construct(), connectivity::evoab::OEvoabResultSet::construct(), connectivity::macab::MacabRecords::createHeaderForRecordType(), connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::dbase::ODbaseIndex::createINFEntry(), connectivity::mysqlc::OStatement::execute(), pq_sdbc_driver::Statement::execute(), connectivity::odbc::OStatement_Base::execute(), connectivity::odbc::OStatement::executeBatch(), executePostgresCommand(), connectivity::odbc::OResultSet::fillNeededData(), pq_sdbc_driver::ResultSet::findColumn(), dbtools::OCharsetMap::findIanaName(), connectivity::java_lang_Class::forName(), getAutoValues(), pq_sdbc_driver::BaseResultSet::getBytes(), connectivity::OSQLParser::getFunctionReturnType(), getGeneratedValuesFromLastInsert(), connectivity::evoab::OCommonStatement::impl_executeQuery_throw(), pq_sdbc_driver::Connection::initialize(), iOUStringToOString(), connectivity::odbc::OConnection::nativeSQL(), connectivity::odbc::ODatabaseMetaDataResultSet::openColumnPrivileges(), connectivity::odbc::ODatabaseMetaDataResultSet::openColumns(), connectivity::odbc::OConnection::OpenConnection(), connectivity::odbc::ODatabaseMetaDataResultSet::openForeignKeys(), connectivity::odbc::ODatabaseMetaDataResultSet::openIndexInfo(), connectivity::odbc::ODatabaseMetaDataResultSet::openPrimaryKeys(), connectivity::odbc::ODatabaseMetaDataResultSet::openProcedureColumns(), connectivity::odbc::ODatabaseMetaDataResultSet::openProcedures(), connectivity::odbc::ODatabaseMetaDataResultSet::openSpecialColumns(), connectivity::odbc::ODatabaseMetaDataResultSet::openTablePrivileges(), connectivity::odbc::ODatabaseMetaDataResultSet::openTables(), connectivity::file::OOp_Ascii::operate(), connectivity::FunctionParser::parseFunction(), connectivity::firebird::OStatementCommonBase::prepareAndDescribeStatement(), connectivity::OSQLScanner::prepareScan(), connectivity::odbc::OPreparedStatement::prepareStatement(), connectivity::mysqlc::OConnection::prepareStatement(), pq_sdbc_driver::Connection::prepareStatement(), properties2arrays(), connectivity::firebird::Connection::runBackupService(), connectivity::odbc::OConnection::setCatalog(), connectivity::firebird::OPreparedStatement::setClob(), connectivity::odbc::OStatement_Base::setCursorName(), connectivity::mysqlc::OPreparedStatement::setObjectWithInfo(), connectivity::odbc::OPreparedStatement::setParameter(), connectivity::mysqlc::OPreparedStatement::setString(), connectivity::firebird::OPreparedStatement::setString(), pq_sdbc_driver::PreparedStatement::setString(), splitConcatenatedIdentifier(), connectivity::hsqldb::StorageContainer::throwJavaException(), and connectivity::dbase::ONDXNode::Write().

◆ parseArray()

std::vector< css::uno::Any > pq_sdbc_driver::parseArray ( std::u16string_view  str)
Exceptions
css::sdbc::SQLException

Definition at line 599 of file pq_tools.cxx.

References Any, i, and isWhitespace().

Referenced by pq_sdbc_driver::BaseResultSet::getArray().

◆ parseIntArray()

std::vector< sal_Int32 > pq_sdbc_driver::parseIntArray ( const OUString &  str)

Definition at line 691 of file pq_tools.cxx.

References i, and start.

Referenced by pq_sdbc_driver::DatabaseMetaData::getIndexInfo(), and pq_sdbc_driver::Indexes::refresh().

◆ properties2arrays()

static void pq_sdbc_driver::properties2arrays ( const Sequence< PropertyValue > &  args,
const Reference< XTypeConverter > &  tc,
rtl_TextEncoding  enc,
cstr_vector &  keywords,
cstr_vector &  values 
)
static

Definition at line 364 of file pq_connection.cxx.

References args, OUStringToOString(), SAL_WARN, v, value, and values.

Referenced by pq_sdbc_driver::Connection::initialize().

◆ querySingleValue()

OUString pq_sdbc_driver::querySingleValue ( const css::uno::Reference< css::sdbc::XConnection > &  connection,
const OUString &  query 
)

Definition at line 1141 of file pq_tools.cxx.

References query().

Referenced by getGeneratedValuesFromLastInsert().

◆ raiseSQLException()

static void pq_sdbc_driver::raiseSQLException ( const Reference< XInterface > &  owner,
std::string_view  sql,
const char *  errorMsg,
const char *  errorType = nullptr 
)
static
Exceptions
SQLException

Definition at line 241 of file pq_statement.cxx.

References Any, pq_sdbc_driver::ConnectionSettings::encoding, and SAL_WARN.

Referenced by executePostgresCommand().

◆ splitConcatenatedIdentifier()

void pq_sdbc_driver::splitConcatenatedIdentifier ( std::u16string_view  source,
OUString *  first,
OUString *  second 
)

◆ splitSQL()

void pq_sdbc_driver::splitSQL ( const OString &  sql,
std::vector< OString > &  vec 
)

Definition at line 404 of file pq_tools.cxx.

References i, length, and start.

Referenced by pq_sdbc_driver::PreparedStatement::PreparedStatement().

◆ sqltype2string() [1/2]

OUString pq_sdbc_driver::sqltype2string ( const css::uno::Reference< css::beans::XPropertySet > &  column)

◆ sqltype2string() [2/2]

OUString pq_sdbc_driver::sqltype2string ( const Reference< XPropertySet > &  desc)

◆ string2intarray()

css::uno::Sequence< sal_Int32 > pq_sdbc_driver::string2intarray ( const OUString &  str)

Definition at line 843 of file pq_tools.cxx.

References start, and o3tl::toInt32().

Referenced by getPrimaryKeyColumnNames(), and pq_sdbc_driver::Keys::refresh().

◆ string2keyrule()

static sal_Int32 pq_sdbc_driver::string2keyrule ( std::u16string_view  rule)
static

Definition at line 103 of file pq_xkeys.cxx.

References u.

Referenced by pq_sdbc_driver::Keys::refresh().

◆ string2keytype()

static sal_Int32 pq_sdbc_driver::string2keytype ( std::u16string_view  type)
static

Definition at line 93 of file pq_xkeys.cxx.

References type, and u.

Referenced by pq_sdbc_driver::Keys::refresh().

◆ tokenizeSQL()

void pq_sdbc_driver::tokenizeSQL ( const OString &  sql,
std::vector< OString > &  vec 
)

◆ typeNameToDataType()

sal_Int32 pq_sdbc_driver::typeNameToDataType ( const OUString &  typeName,
std::u16string_view  typtype 
)

Variable Documentation

◆ BASERESULTSET_CURSOR_NAME

const sal_Int32 pq_sdbc_driver::BASERESULTSET_CURSOR_NAME = 0

◆ BASERESULTSET_ESCAPE_PROCESSING

const sal_Int32 pq_sdbc_driver::BASERESULTSET_ESCAPE_PROCESSING = 1

◆ BASERESULTSET_FETCH_DIRECTION

const sal_Int32 pq_sdbc_driver::BASERESULTSET_FETCH_DIRECTION = 2

◆ BASERESULTSET_FETCH_SIZE

const sal_Int32 pq_sdbc_driver::BASERESULTSET_FETCH_SIZE = 3

◆ BASERESULTSET_IS_BOOKMARKABLE

const sal_Int32 pq_sdbc_driver::BASERESULTSET_IS_BOOKMARKABLE = 4

◆ BASERESULTSET_RESULT_SET_CONCURRENCY

const sal_Int32 pq_sdbc_driver::BASERESULTSET_RESULT_SET_CONCURRENCY = 5

◆ BASERESULTSET_RESULT_SET_TYPE

const sal_Int32 pq_sdbc_driver::BASERESULTSET_RESULT_SET_TYPE = 6

◆ PQ_VARHDRSZ

const int pq_sdbc_driver::PQ_VARHDRSZ = sizeof( sal_Int32 )

Definition at line 92 of file pq_resultsetmetadata.cxx.

Referenced by extractPrecisionAndScale().

◆ PREPARED_STATEMENT_CURSOR_NAME

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_CURSOR_NAME = 0

◆ PREPARED_STATEMENT_ESCAPE_PROCESSING

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_ESCAPE_PROCESSING = 1

◆ PREPARED_STATEMENT_FETCH_DIRECTION

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_FETCH_DIRECTION = 2

◆ PREPARED_STATEMENT_FETCH_SIZE

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_FETCH_SIZE = 3

◆ PREPARED_STATEMENT_MAX_FIELD_SIZE

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_MAX_FIELD_SIZE = 4

◆ PREPARED_STATEMENT_MAX_ROWS

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_MAX_ROWS = 5

◆ PREPARED_STATEMENT_QUERY_TIME_OUT

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_QUERY_TIME_OUT = 6

◆ PREPARED_STATEMENT_RESULT_SET_CONCURRENCY

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_RESULT_SET_CONCURRENCY = 7

◆ PREPARED_STATEMENT_RESULT_SET_TYPE

const sal_Int32 pq_sdbc_driver::PREPARED_STATEMENT_RESULT_SET_TYPE = 8

◆ STATEMENT_CURSOR_NAME

const sal_Int32 pq_sdbc_driver::STATEMENT_CURSOR_NAME = 0

◆ STATEMENT_ESCAPE_PROCESSING

const sal_Int32 pq_sdbc_driver::STATEMENT_ESCAPE_PROCESSING = 1

◆ STATEMENT_FETCH_DIRECTION

const sal_Int32 pq_sdbc_driver::STATEMENT_FETCH_DIRECTION = 2

◆ STATEMENT_FETCH_SIZE

const sal_Int32 pq_sdbc_driver::STATEMENT_FETCH_SIZE = 3

◆ STATEMENT_MAX_FIELD_SIZE

const sal_Int32 pq_sdbc_driver::STATEMENT_MAX_FIELD_SIZE = 4

◆ STATEMENT_MAX_ROWS

const sal_Int32 pq_sdbc_driver::STATEMENT_MAX_ROWS = 5

◆ STATEMENT_QUERY_TIME_OUT

const sal_Int32 pq_sdbc_driver::STATEMENT_QUERY_TIME_OUT = 6

◆ STATEMENT_RESULT_SET_CONCURRENCY

const sal_Int32 pq_sdbc_driver::STATEMENT_RESULT_SET_CONCURRENCY = 7

◆ STATEMENT_RESULT_SET_TYPE

const sal_Int32 pq_sdbc_driver::STATEMENT_RESULT_SET_TYPE = 8

◆ TABLE_INDEX_CATALOG

const sal_Int32 pq_sdbc_driver::TABLE_INDEX_CATALOG = 0

◆ TABLE_INDEX_NAME

const sal_Int32 pq_sdbc_driver::TABLE_INDEX_NAME = 2

Definition at line 130 of file pq_statics.hxx.

Referenced by getStatics(), and pq_sdbc_driver::Tables::refresh().

◆ TABLE_INDEX_REMARKS

const sal_Int32 pq_sdbc_driver::TABLE_INDEX_REMARKS = 4

Definition at line 132 of file pq_statics.hxx.

Referenced by getStatics(), and pq_sdbc_driver::Tables::refresh().

◆ TABLE_INDEX_SCHEMA

const sal_Int32 pq_sdbc_driver::TABLE_INDEX_SCHEMA = 1

Definition at line 129 of file pq_statics.hxx.

Referenced by getStatics(), and pq_sdbc_driver::Tables::refresh().

◆ TABLE_INDEX_TYPE

const sal_Int32 pq_sdbc_driver::TABLE_INDEX_TYPE = 3

Definition at line 131 of file pq_statics.hxx.

Referenced by getStatics(), and pq_sdbc_driver::Tables::refresh().