18 messages in com.mysql.lists.plusplusRe: Problems with timestamp
FromSent OnAttachments
Королев Илья16 Oct 2006 05:57 
Warren Young16 Oct 2006 17:36 
Королев Илья17 Oct 2006 00:34 
Warren Young17 Oct 2006 01:46 
Королев Илья17 Oct 2006 02:05 
Warren Young17 Oct 2006 03:12 
Королев Илья17 Oct 2006 03:26 
Warren Young17 Oct 2006 05:03 
Королев Илья17 Oct 2006 06:24 
Warren Young18 Oct 2006 05:20 
Королев Илья18 Oct 2006 06:40 
Warren Young18 Oct 2006 11:34 
Королев Илья24 Oct 2006 01:20 
Warren Young24 Oct 2006 14:39 
Королев Илья24 Oct 2006 22:39 
Warren Young25 Oct 2006 05:13 
Королев Илья20 Nov 2006 03:10 
Warren Young20 Nov 2006 11:32 
Subject:Re: Problems with timestamp
From:Королев Илья (bre@begun.ru)
Date:11/20/2006 03:10:13 AM
List:com.mysql.lists.plusplus

Query::insert declared as

template <class T> Query& insert(const T& v) { reset();

// See above comment for cast rationale dynamic_cast<std::ostream&>(*this) << std::setprecision(16) << "INSERT INTO " << v.table() << " (" << v.field_list() << ") VALUES (" << v.value_list() << ')'; return *this; }

So, I guess base class can have at least such methods - table() - field_list() - value_list() - equal_list()

Explain please, why "It doesn't have to have _any_ methods to be useful"?

В сообщении от 25 октября 2006 16:14 Warren Young написал(a):

Королев Илья wrote:

5. SSQLS structures should derive from a common base class. This let you put some useful common code in the MySQL++ library itself, but more importantly, it would let you make methods like Query::insert() into regular methods instead of templates.

Give a more detailed description (example), please.

What else needs to be explained? It would be useful if all SSQLSes derived from a common base class that lives in the MySQL++ library. There's nothing more complicated than that to it.

I mean "what do you think about interface of that common base class" :)

It doesn't have to have _any_ methods to be useful. Just the ability to pass it to Query::insert() and similar methods will make it useful enough. If you want to get ideas for other methods it might have, try running some v2.1 SSQLSes through doc/ssqls-pretty