所有软件外包项目 Gray arrow bg Simple object proxy using Poco

Simple object proxy using Poco 资金已经托管 线上项目,线下洽谈,智城安排

发包方 : Dorothy yorke 接包方 : Alisonb 状态 :完成
项目编号 : 91646
项目预算 : 多于$100
开发周期 : 7 天
技能 : MySQL SQL C Remoting
发布日期 : 2009-11-12

描述

I need to execute mysql queries on the client side (Win32 c++ app) aginst a mysql database. I could connect directly to the database using standard mysql libraies executing queries, and then process the resulting recordset on the client as usual.



But I need some blocking behavoiur to some queries, eg. one query inititated from a client should wait to finish another query inititated from another one.



To achieve this insted of 2 tier architecture I need a 3 tier architecture, in other worlds I need a so called lockproxy between the client and the database...

Each query intantiated from the client against the lockproxy will have a lockid(int32), and before executing each query the lockproxy will check it's internal list of the actually running querries and if one found with the same lockid, it waits to finish it before executing other querries



I've found Poco (http://www.appinf.com/docs/poco/) libriary is ideal for the server side locking architecture using it's built in remoting mechnism and database classes.

So the client app will use poco to connect to the server and passing an sql query string to together with a lockid. The server is also implemented using poco, checks for lockid, and if no other running process found with the same lockid, it executes the query against the database and returns the resulting recordset to the client using remoting...












竞标

请您先登录,然后提交此项目的竞标方案。
还不是智城用户? 智城期待您的加入,请注册成为我们的一员吧!
Project ad2