Due to the recent ScriptDb deprecation I need to replace it. I chose MongoDb(as I need noSQL db). Google does not provide any guides on how to connect mongo. It's just said that one should use mongolab and URL Fetch service.
I created a data base on mongolab. They gave me the following ways of connecting to it:
To connect using the shell:
mongo ds045679.mongolab.com:45679/prjacc -u <dbuser> -p <dbpassword>
To connect using a driver via the standard URI (what's this?):
mongodb://<dbuser>:<dbpassword>@ds045679.mongolab.com:45679/prjacc
But there's no driver for google script
so I can't figure out how to replace my old code:
var db = ScriptDb.getMyDb();
// work with db...
with access to mongo using URL Fetch Service.
Any help is appreciated!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…