Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dolthub/transform-file-server
simple example of a file upload transform server
https://github.com/dolthub/transform-file-server
Last synced: 3 days ago
JSON representation
simple example of a file upload transform server
- Host: GitHub
- URL: https://github.com/dolthub/transform-file-server
- Owner: dolthub
- License: mit
- Created: 2023-03-31T17:31:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-31T17:38:40.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T08:32:25.677Z (about 2 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# transform-file-server
simple example of a file upload transform serverTo run:
```bash
go run .
Serving http on : 1709
```This server will respond to Transform `POST` requests with example CSV content. If run with `--sql`, will respond with SQL content that will create multiple branches.
Server logs are like:
```
received request
request headers: X-Import-Filename: [states.csv]
request headers: User-Agent: [Go-http-client/1.1]
request headers: X-Dolthub-Database: [example-database]
request headers: X-Dolthub-From-Branch: [example-user/import-fashionable-wolf]
request headers: X-Dolthub-Owner: [example-user]
request headers: X-Dolthub-To-Branch: [main]
request headers: Content-Type: [text/csv]
request headers: X-Import-Md5: [UjtXMOXuBEBXKXh4tkmvhQ==]
request headers: Accept-Encoding: [gzip]
content-length: 42
status-code: 200
```