{"id":21748201,"url":"https://github.com/voronchuk/ecto_gss","last_synced_at":"2025-07-21T15:04:41.579Z","repository":{"id":57493157,"uuid":"94710158","full_name":"Voronchuk/ecto_gss","owner":"Voronchuk","description":"Elixir library to persist Ecto records and changesets in Google Spreadsheets.","archived":false,"fork":false,"pushed_at":"2023-06-30T14:23:05.000Z","size":345,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T12:54:39.535Z","etag":null,"topics":["ecto","ecto-adapter","elixir","elixir-library","google-spreadsheets"],"latest_commit_sha":null,"homepage":null,"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/Voronchuk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-18T20:02:57.000Z","updated_at":"2025-07-13T13:06:10.000Z","dependencies_parsed_at":"2024-11-26T08:12:36.077Z","dependency_job_id":"39bbd0b8-af33-47a0-8415-c32870eb6608","html_url":"https://github.com/Voronchuk/ecto_gss","commit_stats":{"total_commits":19,"total_committers":4,"mean_commits":4.75,"dds":"0.26315789473684215","last_synced_commit":"8efbf8845eb0295c3d53db7e4c1149032b3eaa13"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/Voronchuk/ecto_gss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voronchuk%2Fecto_gss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voronchuk%2Fecto_gss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voronchuk%2Fecto_gss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voronchuk%2Fecto_gss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Voronchuk","download_url":"https://codeload.github.com/Voronchuk/ecto_gss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voronchuk%2Fecto_gss/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266324446,"owners_count":23911226,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ecto","ecto-adapter","elixir","elixir-library","google-spreadsheets"],"created_at":"2024-11-26T08:12:27.545Z","updated_at":"2025-07-21T15:04:41.529Z","avatar_url":"https://github.com/Voronchuk.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EctoGss\nElixir library to persist Ecto records and changesets in Google Spreadsheets.\n\nThis library is based on [elixir_google_spreadsheets](https://github.com/Voronchuk/elixir_google_spreadsheets) on a transport layer,\nwhich relies on __Google Cloud API v4__ and uses __Google Service Accounts__ to manage it's content.\n\n# Setup\n1. Use elixir_google_spreadsheets [setup instructions](https://github.com/Voronchuk/elixir_google_spreadsheets)\nto set Google Spreadsheet access.\n2. Add `{:ecto_gss, \"~\u003e 0.3\"}` to __mix.exs__ under `deps` function (may also need to add `:elixir_google_spreadsheets` in your extra_applications list).\n3. Run `mix deps.get \u0026\u0026 mix deps.compile`.\n\n# Usage\nConfigure Ecto schema by a provided sample:\n\n```\ndefmodule Account do\n    use EctoGSS.Schema, {\n        :model,\n        columns: [\"A\", \"Y\"]\n    }\n    use Ecto.Schema\n\n    @schema_prefix \"1h85keViqbRzgTN245gEw5s9roxpaUtT7i-mNXQtT8qQ\"\n\n    schema \"List3\" do\n        field :nickname, EctoGSS.Schema.List3.A\n        field :email, EctoGSS.Schema.List3.Y\n    end\nend\n```\n\n* `spreadsheet` is an id of Google spreadsheet which is used as storage file, can be passed as `@schema_prefix`;\n* `list` is the name of spreadsheet list where values will be stored (tested only with latin and numeric names), can be passed as schema name;\n* `columns` are the list of Google spreadsheet columns which are used to map a schema values;\n\nType for each schema column will be generated automatically, based on a provided config values, in a format like `EctoGSS.Schema.[LIST].[COLUMN]`.\n\nKeep in mind that `:id` is used as a system field to store row index information, if you need secure identifier, it's recommended to add `:uid` column and generate it explicitly, for instance with [elixir-uuid](https://github.com/zyro/elixir-uuid) library.\n\n### Ignore rows\nAll rows where the first column is equal to `!!` are ignored and considered comments.\n\n## Repo\nWhen you schema is properly defined, use `EctoGSS.Repo` to work with the supported operations:\n\n* `EctoGSS.Repo.get(Account, id)`\n* `EctoGSS.Repo.all(Account, start_id: 5, end_id: 10)`\n* `EctoGSS.Repo.all(Account, rows: [1, 3, 5])`\n* `EctoGSS.Repo.insert(changeset)`\n* `EctoGSS.Repo.update(changeset)`\n* `EctoGSS.Repo.insert_or_update(changeset)`\n* `EctoGSS.Repo.delete(record)`\n\nBanged operations are also available, check the hex docs for the full list of a supported operations.\n\n# Restrictions\n* __This library is in it's early beta, use on your own risk. Pull requests / reports / feedback are welcome.__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoronchuk%2Fecto_gss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoronchuk%2Fecto_gss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoronchuk%2Fecto_gss/lists"}