Author: wyoung
Date: Wed Oct 24 15:36:55 2007
New Revision: 1781
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1781&view=rev
Log:
Refactored util convenience library used by examples into two different
modules: printdata, containing all of the print_*() routines (except
print_usage()) and cmdline containing the att_getopt() implementation
and a wrapper function for same that replaces connect_to_db(). The
database connection establishment no longer happens down in libutil, it
only returns the connection parameters. This makes the examples more
verbose, and it's technically duplicated code, but it's a critical step;
we can't hide it from the people trying to learn MySQL++.
Added:
trunk/examples/cmdline.cpp
- copied, changed from r1774, trunk/examples/att_getopt.cpp
trunk/examples/cmdline.h
trunk/examples/printdata.cpp
- copied, changed from r1774, trunk/examples/util.cpp
trunk/examples/printdata.h
- copied, changed from r1774, trunk/examples/util.h
Removed:
trunk/examples/att_getopt.cpp
trunk/examples/att_getopt.h
trunk/examples/util.cpp
trunk/examples/util.h
Modified:
trunk/examples/custom1.cpp
trunk/examples/custom2.cpp
trunk/examples/custom3.cpp
trunk/examples/custom4.cpp
trunk/examples/custom5.cpp
trunk/examples/custom6.cpp
trunk/examples/dbinfo.cpp
trunk/examples/fieldinf.cpp
trunk/examples/for_each.cpp
trunk/examples/load_jpeg.cpp
trunk/examples/multiquery.cpp
trunk/examples/resetdb.cpp
trunk/examples/simple1.cpp
trunk/examples/simple2.cpp
trunk/examples/simple3.cpp
trunk/examples/store_if.cpp
trunk/examples/tquery1.cpp
trunk/examples/tquery2.cpp
trunk/examples/usequery.cpp
trunk/examples/xaction.cpp
trunk/mysql++.bkl
[This mail would be too long, it was shortened to contain the URLs only.]
Removed: trunk/examples/att_getopt.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/att_getopt.cpp?rev=1780&view=auto
Removed: trunk/examples/att_getopt.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/att_getopt.h?rev=1780&view=auto
Copied: trunk/examples/cmdline.cpp (from r1774, trunk/examples/att_getopt.cpp)
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/cmdline.cpp?p2=trunk/examples/cmdline.cpp&p1=trunk/examples/att_getopt.cpp&r1=1774&r2=1781&rev=1781&view=diff
Added: trunk/examples/cmdline.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/cmdline.h?rev=1781&view=auto
Modified: trunk/examples/custom1.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/custom1.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/custom2.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/custom2.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/custom3.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/custom3.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/custom4.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/custom4.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/custom5.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/custom5.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/custom6.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/custom6.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/dbinfo.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/dbinfo.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/fieldinf.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/fieldinf.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/for_each.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/for_each.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/load_jpeg.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/load_jpeg.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/multiquery.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/multiquery.cpp?rev=1781&r1=1780&r2=1781&view=diff
Copied: trunk/examples/printdata.cpp (from r1774, trunk/examples/util.cpp)
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/printdata.cpp?p2=trunk/examples/printdata.cpp&p1=trunk/examples/util.cpp&r1=1774&r2=1781&rev=1781&view=diff
Copied: trunk/examples/printdata.h (from r1774, trunk/examples/util.h)
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/printdata.h?p2=trunk/examples/printdata.h&p1=trunk/examples/util.h&r1=1774&r2=1781&rev=1781&view=diff
Modified: trunk/examples/resetdb.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/resetdb.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/simple1.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/simple1.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/simple2.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/simple2.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/simple3.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/simple3.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/store_if.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/store_if.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/tquery1.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/tquery1.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/tquery2.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/tquery2.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/examples/usequery.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/usequery.cpp?rev=1781&r1=1780&r2=1781&view=diff
Removed: trunk/examples/util.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/util.cpp?rev=1780&view=auto
Removed: trunk/examples/util.h
URL: http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/util.h?rev=1780&view=auto
Modified: trunk/examples/xaction.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/xaction.cpp?rev=1781&r1=1780&r2=1781&view=diff
Modified: trunk/mysql++.bkl
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/mysql%2B%2B.bkl?rev=1781&r1=1780&r2=1781&view=diff
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits