Skip to content

Commit 1d4918c

Browse files
committed
add Readme
1 parent e2e8721 commit 1d4918c

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

Cargo.toml

+20
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ authors = ["Markus Klein <markus-klein@live.de>"]
55
edition = "2018"
66
repository = "https://github.com/pacman82/odbc2parquet"
77
documentation = "https://docs.rs/odbc2parquet/"
8+
license = "MIT"
9+
10+
# A short blurb about the package. This is not rendered in any format when
11+
# uploaded to crates.io (aka this is not markdown).
12+
description = "Query an ODBC data source and store the result in a Parquet file."
13+
14+
# This is a list of up to five keywords that describe this crate. Keywords
15+
# are searchable on crates.io, and you may choose any words that would
16+
# help someone find this crate.
17+
keywords = ["odbc", "parquet", "sql"]
18+
19+
# This is a list of up to five categories where this crate would fit.
20+
# Categories are a fixed list available at crates.io/category_slugs, and
21+
# they must match exactly.
22+
categories = ["command-line-utilities"]
23+
24+
# This points to a file under the package root (relative to this `Cargo.toml`).
25+
# The contents of this file are stored and indexed in the registry.
26+
# crates.io will render this file and place the result on the crate's page.
27+
readme = "README.md"
828

929
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1030

License

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Markus Klein
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Parquet2Odbc
2+
3+
## Usage
4+
5+
```shell
6+
odbc2parquet run "Driver={ODBC Driver 17 for SQL Server};Server=localhost;UID=SA;PWD=<YourStrong@Passw0rd>;" "SELECT * FROM Birthdays" out.par1
7+
```
8+
9+
Use `odbc2parquet --help` to see all option.
10+
11+
## Installation
12+
13+
Currently only deployed via cargo. Use `cargo +nightly install odbc2parquet` to install it.
14+
15+
## Mapping of types
16+
17+
The tool queries the ODBC Data source for type information and maps it to parquet type as such:
18+
19+
| ODBC SQL Type | Parquet Logical Type |
20+
|---------------|------------------------|
21+
| Double | Double |
22+
| Float | Float |
23+
| Small Integer | Int16 |
24+
| Integer | Int32 |
25+
| Big Int | Int64 |
26+
| Date | Date |
27+
| Timestamp | Timestamp Microseconds |
28+
| All others | Utf8 Byte Array |

0 commit comments

Comments
 (0)