up vote 1 down vote favorite
1
share [fb]

As I am developing database api for a project.

  • I am developing commands for getting data from database.
  • e.g. i have one gib table so command for that is

getgib name alias limit fields

if user pass the name e.g.

getgib rahul

than it will return all the gib data whose name is like rahul. if alias is given than it will return the all the gib owned by the user whose alias(userid) given . So i want to design the commands. limit : is to limit the record in query, fields : is the extra fields i want to add in the select query .

so as now commands are set but now Question 1 : i want the gibs by the gibid , so how to make this or any suggestion to improve my command is welcome.

Question 2 : if user don't want to specify the name , and he want only the gibs by providing alias then at this what separator at the place of name i should used.

link|improve this question

Can you clarify what language you are using for this API? There are many design patterns and support frameworks that will not require you to invent a new API that no-one else knows. – Gary Rowe Dec 24 '10 at 10:47
@gary i am using php , can you suggest about the d-p and framework – Rahul Mehta Dec 24 '10 at 12:16
Possibly stackoverflow territory, though it's a bit on the border. – Orbling Jan 3 at 13:33
feedback

1 Answer

up vote 1 down vote accepted

Checkout Zend, Cake PHP, Doctrine, etc

link|improve this answer
+1 for suggesting Zend – Amit Wadhwa Jan 5 at 21:39
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.