Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support set map value by key and fix dependency #43

Open
wants to merge 43 commits into
base: master
Choose a base branch
from

Commits on Sep 15, 2018

  1. [dep] Init glide #1

    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    14bc2eb View commit details
    Browse the repository at this point in the history
  2. [dep] Fix gocql ColumnClusterKey etc.

    - upstream relops#36
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    490ad34 View commit details
    Browse the repository at this point in the history
  3. [gen] Format generated columns.go

    - the template would result in extra space
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    c0a9108 View commit details
    Browse the repository at this point in the history
  4. [test] Bump go and cassandra version in Travis

    - #3
    - not sure if I can run ccm locally
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    939cc7b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3c41034 View commit details
    Browse the repository at this point in the history
  6. [test] Install glide to $GOPATH/bin

    - when use /usr/local/bin got permission denied ...
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    d524090 View commit details
    Browse the repository at this point in the history
  7. [test] Move project to right go path

    - it should be using relops/cqlc, but default travis will be using
    pingginp/cqlc, that's the problem of enable travis on fork
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    2a3fdb1 View commit details
    Browse the repository at this point in the history
  8. [test] Use C* 2.2.1

    - it seems 3.11 is invalid for ccm
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    38ead15 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c65af03 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e10a96c View commit details
    Browse the repository at this point in the history
  11. [test] go get github.com/gocql/cql for generator

    - generator generates files in /tmp for testing, so need global gocql in
    $GOPATH to work ...
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    9d2aff5 View commit details
    Browse the repository at this point in the history
  12. [test] Only test cqlc, remove generator

    - generator was comparing type, and due to use vendor and global go
    path, there will be type mismatch https://travis-ci.org/pingginp/cqlc/builds/428908553
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    eca906a View commit details
    Browse the repository at this point in the history
  13. [gen] Add set map value by key #2

    - only support `col[?] = ?`, value binding should work, because there
    was `WHERE foo in (?,?,?)` so in `Prepare` cqlc would flat the slice
    before passing to gocql
    - #2
    - [ ] TODO: need to test against a real database to see if it works
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    69de726 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    361e785 View commit details
    Browse the repository at this point in the history
  15. Fix #6 set broadcast_addr and correct port

    - in port mapping, was using 904 instead of 9042 ...
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    d623f38 View commit details
    Browse the repository at this point in the history
  16. [gen] C*3 seems to be broken

    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    3df5870 View commit details
    Browse the repository at this point in the history
  17. [gen] Set Map value didn't work ...

    - got "can not marshal []interface {} into map(varchar, varchar)"
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    69d2188 View commit details
    Browse the repository at this point in the history
  18. [gen] Bind value for map didn't work #2

    - when insert, use SetStringStringMap
    - when update, SetStringStringMapValue didn't work ... got gocql: expected 3 values send got 2
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    6b9a8cc View commit details
    Browse the repository at this point in the history
  19. [gen] Flatten binding in BuildStatement #2 works

    - BuildStatement is called by Exec, Prepare is called by Fetch,
    previously flatten is only applied in Prepare
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    faf7b6a View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    30cbe8e View commit details
    Browse the repository at this point in the history
  21. [gen] Use separated type for map key value

    - previous implementation is wrong, it blindly expand all value slice,
    which would break AppendSlice, now we use struct KeyValue as binding
    value and expand based on CollectionType and CollectionOperationType
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    11e8efc View commit details
    Browse the repository at this point in the history
  22. [test] Run gocql and cqlc in parallel

    - string map worked fine, not sure about slice though ...
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    52941fa View commit details
    Browse the repository at this point in the history
  23. [test] Fix #3 use docker for e2e test

    - I don't know if old integration test still work though ....
    pingginp committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    3cff150 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    ff73b30 View commit details
    Browse the repository at this point in the history
  25. Merge pull request #4 from pingginp/reboot

    Reboot
    
    - Fix #1 we are now using glide
    - Fix #2 support set map by key, the generated interface `cqlc/columns.go` is updated, the runtime `BuildStatement` is updated to flatten the `KeyValue` struct to a slice of length 2
    - Fix #3 use docker-compose to test locally and on CI, the e2e works because we don't allow parallel and go will run them serial in the order they are defined. Also if the schema is changed, the test need to be run twice and the first one will fail (same as latex bib index), the generated package can only be pick up next time
    - Fix #5 we now use template in go code using long text
    - Fix #6 need to set broadcast_address to 127.0.0.1 and avoid typo in port mapping
    pingginp authored Sep 15, 2018
    Configuration menu
    Copy the full SHA
    42d844c View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2018

  1. [runtime] Use logrus instead of stdlog

    - similar to #8
    pingginp committed Sep 16, 2018
    Configuration menu
    Copy the full SHA
    e6dfa5d View commit details
    Browse the repository at this point in the history
  2. [gen] Replace log.Fatalf w/ errors.Errorf

    - in generated table definitions, was using log.Fatalf, that function
    returns error, better just return errors.Errorf
    pingginp committed Sep 16, 2018
    Configuration menu
    Copy the full SHA
    d457ca9 View commit details
    Browse the repository at this point in the history
  3. [runtime] Update version defined in runtime

    - make update-ver
    pingginp committed Sep 16, 2018
    Configuration menu
    Copy the full SHA
    43a4e3a View commit details
    Browse the repository at this point in the history
  4. Merge pull request #9 from pingginp/logrus

    [runtime] Use logrus and remove log.Fatal in generated table definition
    pingginp authored Sep 16, 2018
    Configuration menu
    Copy the full SHA
    d426ffc View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2019

  1. Fix C*3 #7

    - `gocql.TypeText` was not mapped to string, so generated file is
    invalid, could be in C*2 there is no Text in mapping ...
    pingginp committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    f90e949 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #12 from pingginp/c3

    Fix C*3 #7
    pingginp authored Feb 18, 2019
    Configuration menu
    Copy the full SHA
    2760cf7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1893983 View commit details
    Browse the repository at this point in the history
  4. [dep] Init go mod support Fix #10

    pingginp committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    f33f233 View commit details
    Browse the repository at this point in the history
  5. [release] 0.12.0

    - support Cassandra 3
    - remove logrus and use interface
    pingginp committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    fda8beb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1e4e23e View commit details
    Browse the repository at this point in the history
  7. [doc] Add go mod instruction

    pingginp committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    33f9519 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2019

  1. Configuration menu
    Copy the full SHA
    7fc6fe0 View commit details
    Browse the repository at this point in the history
  2. [release] 0.12.1

    - previous release didn't fix the generator entirely, columnTypes
    mapping also need to be updated to support text #7
    pingginp committed Feb 19, 2019
    Configuration menu
    Copy the full SHA
    1de1d77 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2019

  1. Configuration menu
    Copy the full SHA
    2684311 View commit details
    Browse the repository at this point in the history
  2. [gen] Allow Eq on all columns for DELTE IF #13

    - previously only primary key and those with index support it
    pingginp committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    bb26635 View commit details
    Browse the repository at this point in the history
  3. [doc] Update change log

    pingginp committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    1910b32 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #14 from pingginp/runtime/delete-if

    [runtime] Support if in delete statement #13
    pingginp authored Mar 10, 2019
    Configuration menu
    Copy the full SHA
    292abab View commit details
    Browse the repository at this point in the history
  5. [release] 0.13.0

    pingginp committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    fc04d23 View commit details
    Browse the repository at this point in the history