News for hackers. Stuff that matters.
Re:Writing Cloud Functions by planetjones on Wednesday February 10, 2016 @02:41AM (#11071282)
So the local data comment implies the file system is writable? Or is it read only? After a bad experience with Google cloud end points I think I'll give this a mess - especially as Amazon have (what at first glance) seems a much mature and feature complete offering with lambda.

I wasn't aware of those libraries for accessing Google cloud sql - so thanks for those.

Re:Writing Cloud Functions by waprin on Wednesday February 10, 2016 @02:59AM (#11071336)
I agree the docs could use some improvements.

After playing around with it, I'm not sure if the filesystem works, which makes sense given you just have a bucket or repo underneath and the code can be called at unpredictable times. You can, however, add additional javascript files via the package.json and import them, so if you can express your data as JSON or base64, you're good to go. Maybe there is a way to add other types of resources via the package.json but I haven't figured it out yet.

Generally you would interact with Cloud SQL using a regular node MySQL library, since it's just managed MySQL. The API would only be used to automate creating and setting up the CloudSQL instance.