Skip to content

Feat/problem#12

Open
ghost wants to merge 11 commits into
masterfrom
feat/problem
Open

Feat/problem#12
ghost wants to merge 11 commits into
masterfrom
feat/problem

Conversation

@ghost

@ghost ghost commented Sep 19, 2017

Copy link
Copy Markdown

SQLの機能

  • database_init()をいちいちコメントアウトしなくてもいいようにした
  • 問題詳細を返すget_description()の追加

ファイルアップロード機能

  1. localhost:3000/uploadに接続 
  2. ファイル選択でCSVファイルを選択してsubmit
  3. コンソールにCSVファイルの内容が出力されて流れてくる

※CSV形式の文字列(カンマ区切りの文字列)の解析機は実装してないです

Comment thread templates/base.hbs Outdated
@@ -0,0 +1,15 @@
<!DOCTYPE html>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APIサーバだからhtmlは返さないようにしたい

@ghost

ghost commented Sep 20, 2017

Copy link
Copy Markdown
Author

・templatesにあるファイルを削除(htmlを返さないようにした)
・curl -F file=@test.csv localhost:3000/upload でファイルアップロード

@palloc

palloc commented Sep 20, 2017

Copy link
Copy Markdown
Member

LGTM:+1:

Comment thread src/main.rs
for var in csv_parser::parse(s.as_str()){
println!("{}",var[0]);
}
let splitted = csv_parser::parse(s.as_str()); //Stringだとlifetimeの関係上引数で渡せない

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

つらそう

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant