e-metrotel / ex_queb Goto Github PK
View Code? Open in Web Editor NEWGeneric Ecto Query Builder
License: MIT License
Generic Ecto Query Builder
License: MIT License
hi,
I have a PR that is pending to be merged, and so I wanted to use my github fork in mix.exs
by the following line:
{:ex_queb, [env: :prod, github: "vraravam/ex_queb", hex: :ex_queb, override: true]}, # NOTE: Transitive dependency: Only reqd till the original authors release a new version with my fixes
But, this is the error I am getting:
module Ecto.Query is not loaded and could not be found
Hi there. I see this project still uses ecto ~> 2.0
as a dependency. Will this project be updated to support ecto ~> 3.0
? Would you accept a pull request to enable a new version that supports ecto 3.0? Thanks!
Please update all your packages on hex.pm
LIKE in PostgreSQL is case-sensitive, so in filters would be better to use case-insensitive ILIKE
https://github.com/E-MetroTel/ex_queb/blob/master/lib/ex_queb.ex#L26
ecto dependency is locked to ecto 1 which is causing an issue with ex_admin master
build_order_bys
should support :csv action.
Hi,
I Got DateTime.cast/1 error, I too new to elixir and ecto stuff, so I just report issue and my workaround here, and thank for you shares, it save a lot!
** (exit) an exception was raised:
** (UndefinedFunctionError) function DateTime.cast/1 is undefined or private
(elixir) DateTime.cast("2019-11-30 00:00:00.000000")
(elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
(elixir) lib/enum.ex:1440: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(elixir) lib/enum.ex:1440: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
(ecto) deps/ecto/lib/ecto/repo/queryable.ex:161: Ecto.Repo.Queryable.execute/4
(ecto) deps/ecto/lib/ecto/repo/queryable.ex:17: Ecto.Repo.Queryable.all/3
(ecto) deps/ecto/lib/ecto/repo/queryable.ex:97: Ecto.Repo.Queryable.one/3
(scrivener_ecto) deps/scrivener_ecto/lib/scrivener/paginater/ecto/query.ex:53: Scrivener.Paginater.Ecto.Query.total_entries/3
defp _build_date_filter(query, fld, value, :gte) do
where(query, [q], fragment("? >= ?", field(q, ^fld), ^value))
# where(query, [q], fragment("? >= ?", field(q, ^fld), type(^value, DateTime)))
end
defp _build_date_filter(query, fld, value, :lte) do
where(query, [q], fragment("? <= ?", field(q, ^fld), ^value))
# where(query, [q], fragment("? <= ?", field(q, ^fld), type(^value, DateTime)))
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.