I\'m trying to auto-populate some raw data on a sheet in my google sheets file with a query.
It doesn\'t look like sheets has any built in functionality to do so lik
The answer really depends on the database you are using. I'll mention the solutions not already addressed above:
Zapier provides nifty integrations with databases like Typeform, Gmail emails, facebook leads, Trello cards, Slack, Mailchimp, Clickfunnels, Survey Monkey, Asana, Airtable data, Twitter, and many many more etc.
If you want to connect to Mongodb, use Mongodb stitch, as mentioned here: https://www.mongodb.com/blog/post/stitching-sheets-using-mongodb-stitch-to-create-an-api-for-data-in-google-sheets
Postgreql to Sheets: Zapier integration (https://zapier.com/apps/google-sheets/integrations/postgresql) or actiondesk/kloud integration (https://www.actiondesk.io/blog/4-tools-to-connect-postgresql-to-google-sheets)
If it is a custom. DB, you can always develop your own plugin using the APIs mentioned here: https://developers.google.com/sheets/api
Which database do you want to connect to?