superuserdev / schemaserver

A microdata-based API server written in PHP using PostgreSQL
GNU Lesser General Public License v3.0
6 stars 2 forks source link

Parse json & *[] from PostrgreSQL #7

Closed shgysk8zer0 closed 7 years ago

shgysk8zer0 commented 7 years ago

Need to be able to correctly parse and create

Will need to create a method to distinguish between types text, text[], jsonb, & jsonb[]

shgysk8zer0 commented 7 years ago

How can I know without touching database what types to be INSERTing and UPDATEing?

This might require adding consts to each class to define what types to use for each property.

shgysk8zer0 commented 7 years ago

For now, only need to worry about JSON. Arrays will not be handled in this release. Since I already parse JSON, I'm marking this issue as resolved.