{"id":23122871,"url":"https://github.com/wissance/edgedb.net.configurator","last_synced_at":"2025-04-04T04:21:35.121Z","repository":{"id":133047385,"uuid":"592617059","full_name":"Wissance/EdgeDb.Net.Configurator","owner":"Wissance","description":"Single line EdgeDb.Net configurator","archived":false,"fork":false,"pushed_at":"2023-10-29T16:57:24.000Z","size":28,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T17:08:34.942Z","etag":null,"topics":["edgedb","edgedb-extension","edgedb-net"],"latest_commit_sha":null,"homepage":"https://wissance.github.io/EdgeDb.Net.Configurator/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wissance.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":"2023-01-24T06:02:12.000Z","updated_at":"2023-08-29T18:14:01.000Z","dependencies_parsed_at":"2023-08-29T10:59:27.433Z","dependency_job_id":"6cd07a30-1b33-4686-ae01-a22663615a73","html_url":"https://github.com/Wissance/EdgeDb.Net.Configurator","commit_stats":null,"previous_names":["wissance/edgedbnet.configurator"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wissance%2FEdgeDb.Net.Configurator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wissance%2FEdgeDb.Net.Configurator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wissance%2FEdgeDb.Net.Configurator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wissance%2FEdgeDb.Net.Configurator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wissance","download_url":"https://codeload.github.com/Wissance/EdgeDb.Net.Configurator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247119038,"owners_count":20886676,"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":["edgedb","edgedb-extension","edgedb-net"],"created_at":"2024-12-17T07:31:09.608Z","updated_at":"2025-04-04T04:21:35.090Z","avatar_url":"https://github.com/Wissance.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## EdgeDb.Net.Configurator\nIs a lib that helps to easily configure and add `EdgeDb.Net` in a ***single line*** (`services.ConfigureEdgeDbDatabase(Settings.Database.ProjectName, poolCfg)`) using just only project name, see following full example that a bit larger then single line:\n\n```csharp\nprivate void ConfigureDatabase(IServiceCollection services)\n{\n    EdgeDBClientPoolConfig poolCfg = new EdgeDBClientPoolConfig()\n    {\n        ClientType = EdgeDBClientType.Tcp,\n        SchemaNamingStrategy = INamingStrategy.CamelCaseNamingStrategy,\n        DefaultPoolSize = 256,\n        ConnectionTimeout = 5000,\n        MessageTimeout = 10000\n    };\n    services.ConfigureEdgeDbDatabase(\"10.50.55.41\", Settings.Database.ProjectName, poolCfg, null, true);\n}\n```\n\nor you could pass an array of directories where edgedb project credentials could be found, i.e. `services.ConfigureEdgeDbDatabase(\"10.50.55.41\", Settings.Database.ProjectName, poolCfg, new[] {\"/usr/myapp/edgedb\", \"/usr/share\"}, true);`\n\nor if you are running app \u0026\u0026 edgedb on the same machine use simplified method `ConfigureLocalEdgeDbDatabase`:\n\n```csharp\nprivate void ConfigureDatabase(IServiceCollection services)\n{\n    EdgeDBClientPoolConfig poolCfg = new EdgeDBClientPoolConfig()\n    {\n        ClientType = EdgeDBClientType.Tcp,\n        SchemaNamingStrategy = INamingStrategy.CamelCaseNamingStrategy,\n        DefaultPoolSize = 256,\n        ConnectionTimeout = 5000,\n        MessageTimeout = 10000\n    };\n    services.ConfigureLocalEdgeDbDatabase(Settings.Database.ProjectName, poolCfg);\n}\n```\n\n### LIMITATIONS\n\n1. works if your `edgedb` server on the same machine as application.\n2. supports only `Windows` and `Linux`, if required more `OS`, please add `PR` and/or issue.\n\nAdvantage of this - you just need **only EdgeDb Project name**.\n\n### NuGet\n[Configurator Nuget package](https://www.nuget.org/packages/Wissance.EdgeDb.Configurator/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwissance%2Fedgedb.net.configurator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwissance%2Fedgedb.net.configurator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwissance%2Fedgedb.net.configurator/lists"}