Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Narazaka committed Sep 18, 2016
1 parent d3ccb1f commit ccc80ed
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
# seedtable

seed yaml <-> xlsx の相互変換を夢とする変換ツール。

RubyにはExcel変換は荷が重い(遅い)のでMS謹製のC#。
seed yaml <-> xlsx を相互変換するツール

## Usage

```
# xlsx -> yaml
$ seedtable from foo.xlsx -o db/seeds hoges piyos
$ seedtable from foo.xlsx -o db/seeds hoges--2
$ seedtable from card.xlsx -o db/seeds 1--cards
$ seedtable from foo.xlsx -o db/seeds
$ seedtable from foo.xlsx -o db/seeds -O hoges piyos
$ seedtable from foo.xlsx -o db/seeds -S hoges:2
$ seedtable from foo.xlsx -o db/seeds -S 1:hoges
$ seedtable from -i doc foo.xlsx -o db/seeds
# yaml -> xlsx
$ seedtable to -s db/seeds -x doc foo.xlsx -o newdoc
```

## Engines

seedtableではxlsxファイルを扱うバックエンドとして複数のライブラリを選択できます。

`-e`オプションに指定してください。

| ライブラリ | from (xlsx -> yaml) | to (yaml -> xlsx) |
|---|---|---|
| OpenXml | 速い | 行挿入削除× |
| EPPlus | 速い | 行挿入削除〇 |
| ClosedXML | 遅い 一部数式を含むxlsxはエラー | 行挿入削除× スタイルが保存されない |

OpenXmlとEPPlusのfrom処理速度はほぼ同じですが、ファイルによって3割程度の速度差がある場合があります。
ClosedXMLはその2倍以上程度の時間がかかります。

## 未実装機能

- `-R, --require-version`オプションは動作しません
- to処理においてsubdivideは考慮されません
- `-d, --delete`オプションはEPPlusエンジンでのみ動作します

## License

このソフトウェアにはApache LicenseのソフトウェアOpen-XML-SDKが使われています
このソフトウェアにはApache Licenseのもとで頒布されているソフトウェアOpen-XML-SDKと、LGPLのもとで頒布されているソフトウェアEPPlusが使われています

このソフトウェアは[MIT License](https://narazaka.net/license/MIT?2015)のもとでリリースされています。
このソフトウェアは[MIT License](https://narazaka.net/license/MIT?2016)のもとでリリースされています。

0 comments on commit ccc80ed

Please sign in to comment.