Skip to content

Comments

[WIP] mongoDB対応#26

Open
cassy1003 wants to merge 1 commit intodevelopfrom
cassy/mongodb
Open

[WIP] mongoDB対応#26
cassy1003 wants to merge 1 commit intodevelopfrom
cassy/mongodb

Conversation

@cassy1003
Copy link
Owner

まだマージしないでください。
まだまだ途中w

現在のDBからmongoDBに移行しようと思います。
とりあえず雰囲気だけ作ってみました。
ここおかしいとかあれば、
こうしたほうが良いとかあれば、コメントください。

  • database.py
    main.pyからdatabaseへアクセスするためのファイル。
    databaseに関する諸々の処理をここで行う。
  • tmpConvertDB.py
    現在のDBのデータをmongoDBに移すためのスクリプトファイル。

3/10くらいまでには、エラーは出ない感じにして、
今までのDBと併用して、テスト運用したい。

@cassy1003
Copy link
Owner Author

#20
MySQL案もありましたが、mongoDBでやってみようということになりました。

Copy link
Owner Author

Choose a reason for hiding this comment

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

databaseの名前何にしよー?
とりあえずテスト。。。

@torufuruya
Copy link
Collaborator

さすが早いっすね!

@cassy1003
Copy link
Owner Author

動くかわからんけどなww
自分のVPSにmongodb入れて試したけど・・・
VMにはまだ入れてないから、さてどうなることやら。

@cassy1003
Copy link
Owner Author

とりあえずinsert系はだいたい終わり!
select系が難しい。。。
mysqlでいうwhereの仕方とかよくわからないし、
取って来た値をよしなに変換しなアカンからちょっとめんどくさい。

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.

2 participants