Skip to content

Instantly share code, notes, and snippets.

@alissapajer
Last active November 12, 2020 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alissapajer/561149ef0b1cde27fa1e414947e0b839 to your computer and use it in GitHub Desktop.
Save alissapajer/561149ef0b1cde27fa1e414947e0b839 to your computer and use it in GitHub Desktop.
curl -X POST -H "Content-Type: application/vnd.precog.destination; version=1" -d "{\"name\": \"sqlserver precogtest schema foo create\", \"type\": {\"name\": \"sql-server\", \"version\": 1}, \"config\": {\"schema\": \"foo\", \"writeMode\": \"create\", \"connection\": {\"jdbcUrl\":\"jdbc:sqlserver://localhost:1433;user=SA;password=%3CYourStrong%40Passw0rd%3E;database=precogtest\"}}}" "http://localhost:55932/api/destination/"
curl -X POST -H "Content-Type: application/vnd.precog.destination; version=1" -d "{\"name\": \"sqlserver precogtest schema foo create\", \"type\": {\"name\": \"sql-server\", \"version\": 1}, \"config\": {\"schema\": \"foo\", \"writeMode\": \"create\", \"connection\": {\"jdbcUrl\":\"jdbc:sqlserver://localhost:1433;user=SA;password=<YourStrong@Passw0rd>;database=precogtest\"}}}" "http://localhost:55932/api/destination/"
curl -X POST -H "Content-Type: application/vnd.precog.destination; version=1" -d "{\"name\": \"sqlserver precogtest schema foo create\", \"type\": {\"name\": \"sql-server\", \"version\": 1}, \"config\": {\"schema\": \"foo\", \"writeMode\": \"create\", \"connection\": {\"jdbcUrl\":\"jdbc:sqlserver://localhost:1433;user=SA;password=<YourStrong@Passw0rd>;database=precogtest\"}}}" "http://localhost:55932/api/destination/"
curl -X POST -H "Content-Type: application/vnd.precog.destination; version=1" -d "{\"name\": \"sqlserver precogtest schema foo create\", \"type\": {\"name\": \"sql-server\", \"version\": 1}, \"config\": {\"schema\": \"foo\", \"writeMode\": \"create\", \"connection\": {\"jdbcUrl\":\"jdbc:sqlserver://localhost:1433;user=SA;password=%3CYourStrong@Passw0rd%3E;database=precogtest\"}}}" "http://localhost:55932/api/destination/"
sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Mypassw0rd" -p 1433:1433 --name sql5 -h sql5 -d mcr.microsoft.com/mssql/server:2019-latest
curl -X POST -H "Content-Type: application/vnd.precog.destination; version=1" -d "{\"name\": \"sqlserver precogtest schema foo create\", \"type\": {\"name\": \"sql-server\", \"version\": 1}, \"config\": {\"schema\": \"foo\", \"writeMode\": \"create\", \"connection\": {\"jdbcUrl\":\"jdbc:sqlserver://localhost:1433;user=SA;password=Mypassw0rd\"}}}" "http://localhost:55932/api/destination/"
curl -X POST -H "Content-Type: application/vnd.precog.destination; version=1" -d "{\"name\": \"sqlserver precogtest schema foo create\", \"type\": {\"name\": \"sql-server\", \"version\": 1}, \"config\": {\"schema\": \"foo\", \"writeMode\": \"create\", \"connection\": {\"jdbcUrl\":\"jdbc:sqlserver://0.0.0.0:1433;user=SA;password=Mypassw0rd\"}}}" "http://localhost:55932/api/destination/"
curl -X POST -H "Content-Type: application/vnd.precog.destination; version=1" -d "{\"name\": \"sqlserver precogtest schema foo create\", \"type\": {\"name\": \"sql-server\", \"version\": 1}, \"config\": {\"schema\": \"foo\", \"writeMode\": \"create\", \"connection\": {\"jdbcUrl\":\"jdbc:sqlserver://host.docker.internal:1433;user=SA;password=Mypassw0rd\"}}}" "http://localhost:55932/api/destination/"
curl -X POST -H "Content-Type: application/vnd.precog.destination; version=1" -d "{\"name\": \"sqlserver precogtest schema foo create\", \"type\": {\"name\": \"sql-server\", \"version\": 1}, \"config\": {\"schema\": \"foo\", \"writeMode\": \"create\", \"connection\": {\"jdbcUrl\":\"jdbc:sqlserver://sql5:1433;user=SA;password=Mypassw0rd\"}}}" "http://localhost:55932/api/destination/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment