3 ms·
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
by planetjones 11y ago
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.
- waprin 11y agoI 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.