Like Joe said, the replication slave plugin is a good example,
but the code you are most interested in centers around the
use of the drizzled::Execute class (drizzled/execute.h). Its
API is similar to JDBC's (at least it tries to be). I created a blog
post about how the slave plugin uses this here:

http://dshrewsbury.blogspot.com/2011/02/drizzles-slave-plugin-and-execute-class.html

-Dave


On Jun 1, 2011, at 10:50 AM, Daniel Nichter wrote:

> Excellent!  Thanks.  I'll read that code.
> 
> Le 1 juin 2011 à 08:33, Joe Daly <[email protected]> a écrit :
>> If thats the case the slave plugin uses a real table to keep track of 
>> replication state. The implementation is in 
>> plugin/slave/replication_schema.cc
>> 
>> On Wed, Jun 1, 2011 at 10:20 AM, Daniel Nichter <[email protected]> wrote:
>> Hi Joe,
>> 
>> I was thinking of a real table, but I'll look at the data dictionary source 
>> files to start.
>> 
>> Thanks,
>> 
>> Daniel
>> 
>> 
>> Le 1 juin 2011 à 05:38, Joe Daly <[email protected]> a écrit :
>>> Hi Daniel, 
>>> 
>>> Where you thinking a data dictionary table? There are some examples of this 
>>> in transaction_log/data_dictionary_schema.cc and 
>>> logging_stats/stats_schema.cc there are more but I think this should get 
>>> you started. 
>>> 
>>> --Joe
>>> 
>>> On Tue, May 31, 2011 at 11:45 PM, Daniel Nichter <[email protected]> wrote:
>>> Hi,
>>> 
>>> I want to extend my query log plugin to log to a table.  I also want to 
>>> make an error log plugin that logs to a table.
>>> 
>>> Can someone get me started in the correct direction regarding how I would 
>>> access a table via a plugin in this manner?  What source files should I 
>>> begin to look at?  Are there any plugins that currently do this?
>>> 
>>> Thanks,
>>> 
>>> Daniel
>>> 
>>> 
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~drizzle-discuss
>>> Post to     : [email protected]
>>> Unsubscribe : https://launchpad.net/~drizzle-discuss
>>> More help   : https://help.launchpad.net/ListHelp
>>> 
>> 
> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to