Feature #209

Provide FML like API for VIEW

Added by Madars Vitolins 3 months ago. Updated 10 days ago.

Status:ResolvedStart date:09/08/2017
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


In the end we need functions like:

- tpjsontoview()
- tpviewtojson()


#1 Updated by Madars Vitolins 3 months ago

API could look like:

int Bvget(char *vbuf, char *viewname,char *fieldname, int occ, char *userbuf, int *len)
int CBvget(char *vbuf, char *viewname,char *fieldname, int occ, char *userbuf, int *len, usertype)

int Bvset(char *vbuf, char *viewname,char *fieldname, int occ, char *userbuf, int len)
int CBvset(char *vbuf, char *viewname,char *fieldname, int occ, char *userbuf, int len, usertype)

int Bvsizeof(char *viewname);
int Bvoccur(char *vbuf, char *viewname, char *fieldname); /* get number of current occurances */
int Bvsetoccur(char *vbuf, char *viewname, char *fieldname); /* use for occurrence reduction */
int Bvnext (char *vbuf, char *viewname, char *out_fieldname, int * in_out_fieldname_len, BFLDOCC *out_occ, char *out_buf, BFLDLEN *out_len);

On these functions we could build tpjsontoview() and tpviewtojson().

And afterwards plug the json2view on rest-in/rest-out interfaces

#2 Updated by Madars Vitolins 10 days ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF