paust-team / paust-db

GNU General Public License v3.0
6 stars 5 forks source link

Implement between query feature for client #29

Closed dragon0170 closed 5 years ago

dragon0170 commented 5 years ago

Reference

24

Between query 설계 초안

1. user key, type 명시

dragon0170 commented 5 years ago

Working branch

code-to-gold commented 5 years ago
  1. 의 response value에서 speed는 뭔가요?
dragon0170 commented 5 years ago

https://github.com/paust-team/paust-db/issues/29#issuecomment-448843741 오타네요ㅋㅋㅋㅋ type의 값을 변경한다는 게 실수로 data를 변경했네요.

dragon0170 commented 5 years ago
type BetweenQuery struct {
    Start   int64  `json:"start"`
    End     int64  `json:"end"`
    UserKey []byte `json:"userKey"`
    Type    string `json:"type"`
}

1. user key, type 명시

dragon0170 commented 5 years ago

https://github.com/paust-team/paust-db/issues/22#issuecomment-448918493 의 영향으로 아래와 같이 query struct 통일

type DataQuery struct {
    Start   int64  `json:"start"`
    End     int64  `json:"end"`
    UserKey []byte `json:"userKey"`
    Type    string `json:"type"`
}