database api commands
Posted
by
Rahul Mehta
on Programmers
See other posts from Programmers
or by Rahul Mehta
Published on 2010-12-24T06:45:30Z
Indexed on
2011/01/03
13:59 UTC
Read the original article
Hit count: 505
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.
© Programmers or respective owner