rel
rel copied to clipboard
:gem: Modern ORM for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API
Would be nice to have ability to specify some common functions in filters and default values. At least few I can think of: * Current date and time (current_timestamp, current_date,...
Currently looks like because of map usage for storing column data each time insert/update/select SQL statements are generated column order is different, that makes grouping of SQL statements for perf...
The entity manager is an implementation of the Facade pattern based on `rel.Changeset`. All entities have 3 states: - `new`: base state for new entity - not managed by the...
In PG correct way to generate boolean comparison via predicate`IS`, like `IS TRUE`, `IS NOT TRUE`, etc. https://www.postgresql.org/docs/9.0/datatype-boolean.html
``` var e = employee{Name: "Wael"} if err = repo.Insert(context.Background(), &e); err != nil { panic(err) } fmt.Println("employee ", e, "created") var e2 = employee{Name: "Abbas"} e2.ID = e.ID time.Sleep(60...
## Background Optimistic locking (or optimistic concurrency control) is a technique that allows concurrent edits on a single record (more: https://hexdocs.pm/ecto/0.9.0/Ecto.Model.OptimisticLock.html) ## Implementation - [ ] Detect Optimistic Locking enabled...
It would be nice to have support to provide multiple connections with role write or read-only so that it would possible to use for example with PostgreSQL cluster that has...
Currently there is no way at least for migrations to create/drop schemas for databases that support them like PostgreSQL
## Idea 2 ### Example ```go type Channel struct { ID int Name string // mapped to singular version of field name defined in "db" (subscriber) inside through association. //...