文件名称:hstore:Hstore对Postgrex的支持
文件大小:7KB
文件格式:ZIP
更新时间:2024-06-08 02:53:37
Elixir
Hstore HStore对Postgrex的支持 def deps do [{ :hstore , " ~> 0.0.2 " }] end 现在,一切都在您的iex -S mix : opts = [ hostname: " localhost " , username: " postgres " , database: " hstore_database " , encoder: & Hstore . encoder / 3 , decoder: & Hstore . decoder / 4 , formatter: & Hstore . formatter / 1 ] { :ok , pid} = Postgrex . Connection . start_link (opts) Postgrex
【文件预览】:
hstore-master
----mix.exs(984B)
----lib()
--------hstore()
--------hstore.ex(718B)
----.travis.yml(86B)
----config()
--------config.exs(1KB)
----test()
--------hstore()
--------hstore_test.exs(428B)
--------test_helper.exs(15B)
----README.md(478B)
----mix.lock(198B)
----.gitignore(34B)