Skip to content
Golang SQL Repository Layer for Clean Architecture.
Go
Branch: master
Clone or download
Fs02 save zero value when creating and updating with struct (#31)
* save zero value when creating and updating using struct

* fix reltest

* fix specs tests

* fix tests

* minor refactor
Latest commit fe0440f Jan 16, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
adapter save zero value when creating and updating with struct (#31) Jan 16, 2020
docs save zero value when creating and updating with struct (#31) Jan 16, 2020
group reltest emulate inc dec (#26) Jan 4, 2020
join reltest emulate inc dec (#26) Jan 4, 2020
reltest save zero value when creating and updating with struct (#31) Jan 16, 2020
sort use variable alias for sugared functions (#11) Dec 8, 2019
where use variable alias for sugared functions (#11) Dec 8, 2019
.gitignore renamed grimoire to rel Oct 5, 2019
.travis.yml temporary disable 1.9.x build Oct 6, 2019
Gopkg.lock Builtin Json params support (#27) Aug 21, 2018
Gopkg.toml updated query specification Mar 4, 2018
LICENSE Create LICENSE Apr 1, 2018
README.md [doc] association (#22) Jan 2, 2020
adapter.go renamed grimoire to rel Oct 5, 2019
adapter_test.go renamed grimoire to rel Oct 5, 2019
association.go More Consistent Assoc Definition (#18) Dec 25, 2019
association_test.go Improve reltest insert/update (#9) Dec 8, 2019
changes.go refactor collection field as query (#16) Dec 25, 2019
changes_test.go hide fields in changes Oct 6, 2019
collection.go Reltest preload improvement (#15) Dec 25, 2019
collection_test.go Reltest preload improvement (#15) Dec 25, 2019
convert.go renamed grimoire to rel Oct 5, 2019
convert_test.go renamed grimoire to rel Oct 5, 2019
cursor.go refactor collection field as query (#16) Dec 25, 2019
cursor_test.go Improve reltest mock repository (#7) Dec 1, 2019
docker-compose.yml renamed grimoire to rel Oct 5, 2019
document.go More Consistent Assoc Definition (#18) Dec 25, 2019
document_test.go Reltest preload improvement (#15) Dec 25, 2019
errors.go refactor collection field as query (#16) Dec 25, 2019
errors_test.go
filter_query.go In and Not In Query helper for concrete types Oct 24, 2019
filter_query_test.go Sugar query helper for in and not in with concrete types Oct 24, 2019
go.mod Improve reltest mock repository (#7) Dec 1, 2019
go.sum Improve reltest mock repository (#7) Dec 1, 2019
group_query.go refactor collection field as query (#16) Dec 25, 2019
group_query_test.go renamed grimoire to rel Oct 5, 2019
join_query.go
join_query_test.go refactor collection field as query (#16) Dec 25, 2019
limit.go refactor collection field as query (#16) Dec 25, 2019
lock.go refactor collection field as query (#16) Dec 25, 2019
logger.go renamed grimoire to rel Oct 5, 2019
logger_test.go renamed grimoire to rel Oct 5, 2019
map.go refactor collection field as query (#16) Dec 25, 2019
nullable.go renamed grimoire to rel Oct 5, 2019
nullable_test.go renamed grimoire to rel Oct 5, 2019
offset.go refactor collection field as query (#16) Dec 25, 2019
query.go [docs] query (#21) Jan 1, 2020
query_test.go [docs] query (#21) Jan 1, 2020
rel.go updated some package comments Oct 6, 2019
rel_test.go More Consistent Assoc Definition (#18) Dec 25, 2019
repository.go save zero value when creating and updating with struct (#31) Jan 16, 2020
repository_test.go save zero value when creating and updating with struct (#31) Jan 16, 2020
select_query.go refactor collection field as query (#16) Dec 25, 2019
select_query_test.go renamed grimoire to rel Oct 5, 2019
sort_query.go refactor collection field as query (#16) Dec 25, 2019
sort_query_test.go renamed grimoire to rel Oct 5, 2019
structset.go save zero value when creating and updating with struct (#31) Jan 16, 2020
structset_test.go save zero value when creating and updating with struct (#31) Jan 16, 2020
util.go refactor collection field as query (#16) Dec 25, 2019

README.md

rel

GoDoc Build Status Go Report Card Maintainability Test Coverage

Golang SQL Repository Layer for Clean (Onion) Architecture.

rel is orm-ish library for golang that aims to be the repository layer of onion architecture. It's testable and comes with it's own test library. rel also features extendable query builder that allows you to write query using builder or plain sql.

Features

  • Testable repository with builtin reltest package.
  • Elegant, yet extendable query builder.
  • Supports Eager loading.
  • Multi adapter.

Install

go get github.com/Fs02/rel

Getting Started

License

Released under the MIT License

You can’t perform that action at this time.