Click here to Skip to main content
15,885,365 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Trying to Disable string operator= Pin
CPallini8-Jan-23 23:20
mveCPallini8-Jan-23 23:20 
GeneralRe: Trying to Disable string operator= Pin
ForNow9-Jan-23 1:38
ForNow9-Jan-23 1:38 
QuestionWhere to find connect declaration of this mysql instace Pin
coco2437-Jan-23 13:29
coco2437-Jan-23 13:29 
AnswerRe: Where to find connect declaration of this mysql instace Pin
RedDk7-Jan-23 15:35
RedDk7-Jan-23 15:35 
AnswerRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan7-Jan-23 21:06
mveRichard MacCutchan7-Jan-23 21:06 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco2438-Jan-23 1:27
coco2438-Jan-23 1:27 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan8-Jan-23 1:37
mveRichard MacCutchan8-Jan-23 1:37 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco2438-Jan-23 1:58
coco2438-Jan-23 1:58 
When I installed Connector C++, there were unziped the headers that contains declarations of classes and functions.
I suposed that is logical to find the declaration of these functions, clases constructors etc on those .h files.

I found connect declaration in driver.h file:

C++
class CPPCONN_PUBLIC_FUNC Driver
{
protected:
  virtual ~Driver() {}
public:
  // Attempts to make a database connection to the given URL.

  virtual Connection * connect(const sql::SQLString& hostName, const sql::SQLString& userName, const sql::SQLString& password) = 0;

  virtual Connection * connect(ConnectOptionsMap & options) = 0;

  virtual int getMajorVersion() = 0;

  virtual int getMinorVersion() = 0;

  virtual int getPatchVersion() = 0;

  virtual const sql::SQLString & getName() = 0;

  virtual void setCallBack(sql::Fido_Callback &cb) = 0;

  virtual void setCallBack(sql::Fido_Callback &&cb) = 0;

  virtual void threadInit() = 0;

  virtual void threadEnd() = 0;
};


And I found that the connection type(or class) of the connect defined in the connection.h file:

class CPPCONN_PUBLIC_FUNC Connection
{
  /* Prevent use of these */
  Connection(const Connection &);
  void operator=(Connection &);
public:

  Connection() {};

  virtual ~Connection() {};

  virtual void clearWarnings() = 0;

  virtual Statement *createStatement() = 0;

  virtual void close()  = 0;

  virtual void commit() = 0;

  virtual bool getAutoCommit() = 0;

  virtual sql::SQLString getCatalog() = 0;

  virtual Driver *getDriver() = 0;

  virtual sql::SQLString getSchema() = 0;

  virtual sql::SQLString getClientInfo() = 0;

  virtual void getClientOption(const sql::SQLString & optionName, void * optionValue) = 0;

  virtual sql::SQLString getClientOption(const sql::SQLString & optionName) = 0;

  virtual DatabaseMetaData * getMetaData() = 0;

  virtual enum_transaction_isolation getTransactionIsolation() = 0;

  virtual const SQLWarning * getWarnings() = 0;

  virtual bool isClosed() = 0;

  virtual bool isReadOnly() = 0;

  virtual bool isValid() = 0;

  virtual bool reconnect() = 0;

  virtual sql::SQLString nativeSQL(const sql::SQLString& sql) = 0;

  virtual PreparedStatement * prepareStatement(const sql::SQLString& sql) = 0;

  virtual PreparedStatement * prepareStatement(const sql::SQLString& sql, int autoGeneratedKeys) = 0;

  virtual PreparedStatement * prepareStatement(const sql::SQLString& sql, int* columnIndexes) = 0;

  virtual PreparedStatement * prepareStatement(const sql::SQLString& sql, int resultSetType, int resultSetConcurrency) = 0;

  virtual PreparedStatement * prepareStatement(const sql::SQLString& sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) = 0;

  virtual PreparedStatement * prepareStatement(const sql::SQLString& sql, sql::SQLString columnNames[]) = 0;

  virtual void releaseSavepoint(Savepoint * savepoint) = 0;

  virtual void rollback() = 0;

  virtual void rollback(Savepoint * savepoint) = 0;

  virtual void setAutoCommit(bool autoCommit) = 0;

  virtual void setCatalog(const sql::SQLString& catalog) = 0;

  virtual void setSchema(const sql::SQLString& catalog) = 0;

  virtual sql::Connection * setClientOption(const sql::SQLString & optionName, const void * optionValue) = 0;

  virtual sql::Connection * setClientOption(const sql::SQLString & optionName, const sql::SQLString & optionValue) = 0;

  virtual void setHoldability(int holdability) = 0;

  virtual void setReadOnly(bool readOnly) = 0;

  virtual Savepoint * setSavepoint() = 0;

  virtual Savepoint * setSavepoint(const sql::SQLString& name) = 0;

  virtual void setTransactionIsolation(enum_transaction_isolation level) = 0;

  /* virtual void setTypeMap(Map map) = 0; */
};


Maybe this operator:

C++
void operator=(Connection &);
, tries to tell something that I don't understand I will keep digging to understand something.

Thank you,
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan8-Jan-23 3:04
mveRichard MacCutchan8-Jan-23 3:04 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco2438-Jan-23 5:53
coco2438-Jan-23 5:53 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan8-Jan-23 22:28
mveRichard MacCutchan8-Jan-23 22:28 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco2439-Jan-23 10:21
coco2439-Jan-23 10:21 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan9-Jan-23 21:50
mveRichard MacCutchan9-Jan-23 21:50 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 4:10
coco24310-Jan-23 4:10 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan10-Jan-23 5:29
mveRichard MacCutchan10-Jan-23 5:29 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 6:03
coco24310-Jan-23 6:03 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan10-Jan-23 6:42
mveRichard MacCutchan10-Jan-23 6:42 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 8:12
coco24310-Jan-23 8:12 
GeneralRe: Where to find connect declaration of this mysql instace Pin
markkuk10-Jan-23 2:27
markkuk10-Jan-23 2:27 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 4:11
coco24310-Jan-23 4:11 
AnswerRe: Where to find connect declaration of this mysql instace Pin
RedDk8-Jan-23 9:12
RedDk8-Jan-23 9:12 
Questiondll access violation with Excel 32 / 64 bits Pin
Danilo Lemos 20216-Jan-23 1:30
Danilo Lemos 20216-Jan-23 1:30 
AnswerRe: dll access violation with Excel 32 / 64 bits Pin
Victor Nijegorodov6-Jan-23 5:49
Victor Nijegorodov6-Jan-23 5:49 
QuestionLinker error when adding Ole to my application, what am I missing? Pin
charlieg4-Jan-23 16:15
charlieg4-Jan-23 16:15 
AnswerRe: Linker error when adding Ole to my application, what am I missing? Pin
CPallini4-Jan-23 22:14
mveCPallini4-Jan-23 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.