Permalink
Commits on Nov 3, 2018
  1. Bumped version number to v0.15.0.

    drujensen committed Nov 3, 2018
  2. Include clause when using custom select statement (#305)

    hfjallemark authored and drujensen committed Nov 3, 2018
    * Include clause when using custom select statement
    
    * Move #select into adapter base class
    
    * Make ensure_clause_template in pg adapter public
Commits on Nov 2, 2018
  1. Crystal 0.27.0 (#302)

    Blacksmoke16 committed Nov 2, 2018
    * Support for next crystal version
    
    * Fix specs
    
    * Update shards.yml crystal version
Commits on Oct 28, 2018
  1. Belongs_to refactor (#304)

    Blacksmoke16 authored and drujensen committed Oct 28, 2018
    * Bring belongs_to into new double splat world
    
    Includes passed in json/yaml options on field declaration
    
    * Add some specs
    
    * Oops
  2. Use env vars to specify sqlite version (#303)

    Blacksmoke16 authored and drujensen committed Oct 28, 2018
    * Use env vars to specify sqlite version
    
    * Specify defaults on docker args
  3. Only define `updated/created_at` properties if they are wanted (#301)

    Blacksmoke16 authored and drujensen committed Oct 28, 2018
    * Add specs for json/yaml field options
    
    * Conditionally add created/updated at fields
    
    Add specs for json/yaml options with timestamp fields
    
    * Oops forgot the file
Commits on Oct 23, 2018
  1. fix assembler count (#299)

    c910335 authored and drujensen committed Oct 23, 2018
Commits on Oct 22, 2018
  1. Add support for AND and OR clause (#297)

    drujensen committed Oct 22, 2018
    * Add support for AND and OR clause
    
    This adds two new methods: `and` and `or`.  The where method was
    modified to generate the where SQL with appropriate clauses.
    
    * fix specs
    
    * refactor sql assembler
    
    * add spec
Commits on Oct 18, 2018
  1. Test PG11 on travis (#294)

    Blacksmoke16 authored and drujensen committed Oct 18, 2018
Commits on Oct 17, 2018
  1. Better UUID support (#293)

    Blacksmoke16 authored and drujensen committed Oct 17, 2018
    * Auto UUID generation support
    
    * Update docs
Commits on Oct 16, 2018
  1. Bumped version number to v0.14.2.

    drujensen committed Oct 16, 2018
  2. update query documentation (#292)

    drujensen committed Oct 16, 2018
    * update query documentation
    
    * pr changes
  3. Dj/include query builder (#290)

    drujensen committed Oct 16, 2018
    * extend query builder methods
    
    * use string for class name
    
    * disable first for now
    
    * move clear to transactions
    
    * fix specs
Commits on Oct 14, 2018
  1. Annotation support (#289)

    Blacksmoke16 authored and drujensen committed Oct 14, 2018
    * Ability to add third-party annotations to fields
    
    Moves yaml/json includes to macro includes to not override includes in model
    
    * Allow property options on primary macro
    
    Refactors primary macro to use double splat
    
    * Update readme
    
    Left justify everything
    
    * Add some comments to the annotation code
  2. Support PG Array types (#286)

    Blacksmoke16 authored and drujensen committed Oct 14, 2018
    * Support PG Array types
    
    Bump docker crystal version to latest
    
    * Revert back to 0.26.0
  3. inverse query builder inheritance (#285)

    drujensen committed Oct 14, 2018
    * reverse query builder
    
    Because SQL is fairly standard and the only differences are related to
    param replacement, this reverses the base class to contain the main code
    and moves the differences to the driver specific class.
    
    * add support for operators in where clause
    
    * fix specs
    
    * default to pg for specs
    
    * remove Adapter dependency
    
    By adding a new DbType to the assembler, it is no longer dependent on
    the Granite::Adapter.  This keeps a cleaner separation and allows for
    easier testing.
    
    * replace case statement with namedtuple lookup
    
    * test all 3 dbs
    
    * fix specs
    
    * minor bug fixes
  4. crystal 0.26.1 support (#288)

    Blacksmoke16 authored and drujensen committed Oct 14, 2018
Commits on Oct 9, 2018
  1. Bumped version number to v0.14.1.

    drujensen committed Oct 9, 2018
Commits on Oct 8, 2018
  1. Add limit and offset to QueryBuilder, mild refactoring (#284)

    c910335 authored and robacarp committed Oct 8, 2018
    * fix typo "include" => "extend"
    
    * refactor builder assemblers
    
    * add limit and offset
    
    * add limit and offset spec
    
    * remove SQLBuilder
Commits on Oct 6, 2018
  1. Refactored the validator helpers and added exclusion validator (#283)

    Thellior authored and drujensen committed Oct 6, 2018
    * Seperated validators to own files
    
    * Added exclusion validator
    
    * Refactored the specs
    
    * Added exclusion spec
    
    * Added documentation
    
    * Made a typo in the documentation
Commits on Sep 9, 2018
  1. add spaces (#281)

    drujensen committed Sep 9, 2018
  2. list the documentation instead of the docs directory (#280)

    drujensen committed Sep 9, 2018
  3. Bumped version number to v0.14.0.

    drujensen committed Sep 9, 2018
  4. Dj/129 has many (#278)

    drujensen committed Sep 9, 2018
    * remove pluralized table name
    
    * do not try to remove plural  from association
    
    * support type declaration for has_many
    
    * fix specs
    
    * pr changes
    
    * support class_name, foreign_key and through
    
    * update foreign key example
    
    * update belongs_to example
    
    * support type declaration for has_one and has_many
    
    * update docs
Commits on Sep 8, 2018
  1. Clear errors before validating models (#279)

    yumoose authored and drujensen committed Sep 8, 2018
Commits on Aug 29, 2018
  1. Fix connection leak

    drujensen committed Aug 29, 2018
  2. Test multiple databases (#270)

    Thellior authored and drujensen committed Aug 29, 2018
    * Everything is now scoped by one adapter at a time
    
    * Fixed granite spec
    
    * Changed default env to pg
    
    * Changed travis CI and ameba fixes
    
    * Restored granite spec location
    
    * Update .env
    
    * Removed log
    
    * Fixing timestamps_spec.cr
    
    * crystal tool format
    
    * Testing travis config
    
    * Travis env is not working for multiple versions
    
    * Testing matrix option
    
    * Added postgres to the matrix
    
    * Removed old version that are redundant. Added sqlite
    
    * Running with multiple docker-compose files
    
    * Seperate docker compose files so only the needed images are build
    
    * Changed docker folder
    
    * typo
    
    * Fixed the duplicate env("CURRENT_ADAPTER")
    
    * Added documentation about the env variables
    
    * Added more docs
    
    * Removed graniteexample because it's not used anymore
    
    * Setting default to sqlite
    
    * remove extra require spec
    
    * Only test the 2 latests versions
  3. Dj/lazy load connection (#277)

    drujensen committed Aug 29, 2018
    * singleton pattern.  lazy load connection
    
    * specify return type
    
    * maintain a private database variable
  4. Example for String foreign_key (#265)

    winhackua authored and drujensen committed Aug 29, 2018
    an example of that when it is necessary to establish foreign_key instead of default Int64 on String
  5. Dj/271 maintain one database connection (#274)

    drujensen committed Aug 29, 2018
    * fix multiple connection issue #271
    
    * create a single connection per registered adapter
Commits on Aug 23, 2018
  1. Has one relationship (#264)

    zaidakram authored and robacarp committed Aug 23, 2018
    * Added simple has_one association with tests
    
    * Added documentation of has_one relationship
    
    * Added examples to the documentation of has_one relationship
    
    * Docs formatting + Comments
    
    * Removed the extra line in relationships docs
    
    * Removed remaining extra lines in relationships docs
    
    * Removed redundant comments
Commits on Aug 21, 2018
  1. Make the "through class" a symbol (#269)

    Hansterdam authored and Blacksmoke16 committed Aug 21, 2018
    The "through class" when defining a has_many through: class needs to be written as a symbol.
Commits on Aug 17, 2018
  1. ticking version to 0.13.0

    robacarp committed Aug 17, 2018
  2. Fix time parsing on Crystal 26.0 (#267)

    msa7 authored and robacarp committed Aug 17, 2018
  3. Targeting CI at Crystal 0.26 (#268)

    robacarp committed Aug 17, 2018