I am new to couchbase, but I have successfully created my first app using couchbase lite. Unfortunately, for a couple reasons sync gateway is not the solution I need to get my app synced with a server. The main reason is I must upload all data through php. Another is that the nature of my app requires me to mainly push data up to the server and then delete uploaded data from device storage. This app is logging large amounts of data and it is inappropriate to keep the data stored on the device. I am instead trying to insert the data into the database through php and then once the data is confirmed to be uploaded, the device safely deletes the data.
Has anyone created something like this or know of an example? I am a little lost on the implementation. Specifically I am unsure if I should just upload the document to php as a file, then use the php-couchbase-sdk to upload it to the server. Or if there is a way I can upload the document and have it inserted directly into the database though php.
Any feedback and thoughts are appreciated.