Re: [Quickfix-developers] newbie mysql questions
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-09-08 20:24:38
|
There are two factories you can use. There is the MysqlStoreFactory, =20= and the MysqlLogFactory. You need to instantiate these in your code =20 and pass them to your initiator or acceptor. This is what you would =20 use in place of the FileStoreFactory or FileLogFactory. You will then =20= need to give them the appropriate configuration settings: =20 http://www.quickfixengine.org/quickfix/doc/html/=20 configuration.html#Storage The default settings should work with a standard default MySQL =20 installation running on the local machine. --oren On Sep 8, 2004, at 2:04 PM, Clark Sims wrote: > well I ran the psql script to create the quickfix database. I can get =20= > into the database, and type "show tables". Once in the database when I = =20 > querry sessions,=A0 "select * from sessions;"=A0 I get : > > mysql> select * from sessions; > +-------------+--------------+--------------+---------------------=20 > +-----------------+-----------------+ > | beginstring | sendercompid | targetcompid | creationtime=A0=A0=A0=A0=A0= =A0=A0 | =20 > incoming_seqnum | outgoing_seqnum | > +-------------+--------------+--------------+---------------------=20 > +-----------------+-----------------+ > | FIX.4.2=A0=A0=A0=A0 | SETGET=A0=A0=A0=A0=A0=A0 | TEST=A0=A0=A0=A0=A0=A0= =A0=A0 | 2004-06-22 07:36:48 | > =A0 1 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 1 | > +-------------+--------------+--------------+---------------------=20 > +-----------------+-----------------+ > 1 row in set (0.00 sec) > > This is a very old session. I guess I am not using mysqlstorefactory. =20= > How do I turn this option on?=A0 Do I need something like: > > MySQLStoreDatabase=A0=A0=A0 quickfix > > in the config file?=A0 Do I need to write something in the C++ code = to =20 > turn on mysqlstorefactory? > > Thanks in Advance, > > Clark Sims > > =A0 > > =A0 > > Do you Yahoo!? > Win 1 of 4,000 free domain names from Yahoo! Enter now.= |