{"id":24738660,"url":"https://github.com/zweifisch/eno","last_synced_at":"2025-10-10T08:30:24.653Z","repository":{"id":57495238,"uuid":"57438629","full_name":"zweifisch/eno","owner":"zweifisch","description":"Lightweight SQL toolkit for Elixir","archived":false,"fork":false,"pushed_at":"2016-05-07T06:06:02.000Z","size":18,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-11T02:09:27.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zweifisch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-30T11:14:17.000Z","updated_at":"2020-05-22T01:51:17.000Z","dependencies_parsed_at":"2022-08-31T12:51:34.464Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/eno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Feno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Feno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Feno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Feno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/eno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235936104,"owners_count":19068828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-27T22:55:17.150Z","updated_at":"2025-10-10T08:30:19.330Z","avatar_url":"https://github.com/zweifisch.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eno\n\n[![Build Status][travis-image]][travis-url]\n\nLightweight SQL toolkit for elixir inspired by [yesql](https://github.com/krisajenkins/yesql) and [ragtime](https://github.com/weavejester/ragtime).\n\nFor the moment only PostgreSQL is supported, and you need to add [postgrex](http://github.com/ericmj/postgrex) as a dependency.\n\n## Installation\n\nIt's [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add eno to your list of dependencies in `mix.exs`:\n\n        def deps do\n          [{:eno, \"~\u003e 0.0.1\"}]\n        end\n\n## Usage\n\nlib/yourapp/repo.ex\n\n    defmodule YourApp.Repo do\n      use Eno\n    end\n\nlib/yourapp/repo.sql\n\n    -- name: user_list\n    select * from users offset :offset limit :limit;\n\n    -- name: user_get\n    select * from users where user_id = :id;\n\nlib/yourapp.ex\n\n    children = [\n      worker(YourApp.Repo, []),\n    ]\n\nconfig/config.ex\n\n    config :eno, YourApp.Repo,\n      adapter: Eno.Adapters.Postgres,\n      hostname: \"localhost\",\n      username: \"user\",\n      password: \"pass\",\n      database: \"db\"\n\nfinally\n\n    iex\u003e YourApp.Repo.user_list offset: 0, limit: 10\n\n    iex\u003e YourApp.Repo.user_get 1\n\n## Migration\n\n    $ mix eno.gen.migration init_users\n\npriv/migrations/repo/20160507022535_init_users.up.sql\n\n    create table users (id SERIAL PRIMARY KEY, name varchar(255) NOT NULL UNIQUE);\n\npriv/migrations/repo/20160507022535_init_users.down.sql\n\n    drop table users;\n\nconfig/config.ex\n\n    config :yourapp,\n      eno_repos: [YourApp.Repo]\n\nup\n\n    $ mix eno.migrate [-r YourApp.Repo]\n\ndown\n\n    $ mix eno.rollback [-r YourApp.Repo]\n\n## Status\n\nNot ready for production use yet. The API is subject to change.\n\n\n[travis-image]: https://img.shields.io/travis/zweifisch/eno.svg?style=flat\n[travis-url]: https://travis-ci.org/zweifisch/eno\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Feno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Feno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Feno/lists"}