{"repo":"elixir-mongo/mongodb_ecto","free":true,"listed":false,"github":"https://github.com/elixir-mongo/mongodb_ecto","clone":"git clone https://github.com/elixir-mongo/mongodb_ecto.git","description":"MongoDB adapter for Ecto","language":"Elixir","stars":378,"topics":["ecto","elixir","mongodb"],"license":"Apache-2.0","category":"data-pipelines","readme_excerpt":"Mongo.Ecto Mongo.Ecto is a MongoDB adapter for Ecto. For detailed information read the documentation for the Mongo.Ecto module, or check out examples below. Example Usage Add :mongodb ecto as a dependency in your mix.exs file. To use the adapter in your repo: For additional information on usage please see the documentation for the Mongo.Ecto module and for Ecto. Data Type Mapping BSON Ecto ------------------ ----------------------- double :float string :string object :map array {:array, subtype} binary data :binary binary data (uuid) Ecto.UUID object id :binary id boolean :boolean date Ecto.DateTime regular expression Mongo.Ecto.Regex JavaScript Mongo.Ecto.JavaScript symbol (see below) 32-bit integer :integer timestamp BSON.Timestamp 64-bit integer :integer Symbols are deprecated by the BSON specification. They will be converted to simple strings on reads. There is no possibility of persisting them to the database. Additionally special values are translated as follows: BSON Ecto ------- ----------- null nil min key :BSON min max key :BSON max Supported Mongo versions The adapter and the driver are tested against most recent versions from 5.0, 6.0, and 7.0. Migrating to 2.0 Release 2.0 changes the underlying driver from mongodb to mongodb driver 1.4. Calls to the Ecto adapter itself should not require any changes. Some config options are no longer used and can be simply deleted: pool , pool overflow , pool timeout . If you make direct calls to the Mongo driver, you will need t","default_branch":null,"files":null,"tree":[],"storefront":"/r/elixir-mongo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/elixir-mongo/mongodb_ecto/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}