Created
August 12, 2023 17:14
-
-
Save jorgesancha/d0f34478848aa79886b0ee52e4035106 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mongo to Tinybird | |
mongoexport --uri mongodb+srv://<username>:<password>@<your_cluster>mongodb.net/sample_analytics --collection customers --type csv -f _id,username,name,address,birthdate,email,active,accounts,tier_and_details | \ | |
curl -H 'Authorization: Bearer <tb_token>' \ | |
-X POST 'https://api.us-east.tinybird.co/v0/datasources?format=csv&name=customers&mode=create' \ | |
-F csv=@- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment