{"id":22161129,"url":"https://github.com/mr-destructive/mindsdb_go_sdk","last_synced_at":"2025-03-24T15:24:19.746Z","repository":{"id":167496941,"uuid":"642886867","full_name":"Mr-Destructive/mindsdb_go_sdk","owner":"Mr-Destructive","description":"Unofficial go SDK for MindsDB API","archived":false,"fork":false,"pushed_at":"2024-01-12T15:40:08.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T20:37:19.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/mr-destructive/mindsdb_go_sdk","language":"Go","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/Mr-Destructive.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-05-19T15:10:52.000Z","updated_at":"2023-10-07T12:48:15.000Z","dependencies_parsed_at":"2024-01-12T20:45:56.111Z","dependency_job_id":"a9a3be30-777d-4043-ba74-35b82cee4a8d","html_url":"https://github.com/Mr-Destructive/mindsdb_go_sdk","commit_stats":null,"previous_names":["mr-destructive/mindsdb_go_sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Destructive%2Fmindsdb_go_sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Destructive%2Fmindsdb_go_sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Destructive%2Fmindsdb_go_sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Destructive%2Fmindsdb_go_sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mr-Destructive","download_url":"https://codeload.github.com/Mr-Destructive/mindsdb_go_sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245295618,"owners_count":20592072,"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":"2024-12-02T04:13:17.077Z","updated_at":"2025-03-24T15:24:19.727Z","avatar_url":"https://github.com/Mr-Destructive.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Mindsdb Golang SDK\n\nAn unoffical golang sdk for [Mindsdb](https://mindsdb.com/). \n\n\n### Installation\n\nInstall the golang package from GitHub.\n\n```bash\ngo get github.com/Mr-Destructive/mindsdb_go_sdk\n```\n\n### Usage\n\n#### Basic Authentication\n\n- Create a .env file for storing your credentials to authenticate to the mindsdb server.\n\n```env\nemail=abc@def.com\npassword=secret_password\n```\n\n- Access the credentials from .env file using the helper functions `LoadEnvFromFile` with parameter as the key name in the file. Here we have `email` and `password`.\n\n- Use `connectors.Login` method to log in into the server. \n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/mr-destructive/mindsdb_go_sdk/mindsdb\"\n\t\"github.com/mr-destructive/mindsdb_go_sdk/mindsdb/connectors\"\n)\n\nfunc PanicError(err error) {\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n\nfunc main() {\n\t// read email and password from the .env file\n\terr := mindsdb.LoadEnvFromFile(\".env\")\n\tPanicError(err)\n\temail := os.Getenv(\"email\")\n\tpassword := os.Getenv(\"password\")\n\n\t// Login in with an email and password\n\tapi, err := connectors.Login(email, password)\n\tPanicError(err)\n}\n```\n\n- Tha `api` variable will be used to access the sdk methods.\n\n- Refer the [examples](https://github.com/Mr-Destructive/mindsdb_go_sdk/tree/main/examples) for further reference, till all the methods in the sdk are functional and tested properly.\n\n### References\n- Also this sdk is refered from the [mindsdb-python-sdk](https://github.com/mindsdb/mindsdb_python_sdk) for the inspiration and development.\n- [Mindsdb Docs](https://docs.mindsdb.com/what-is-mindsdb) for creating REST API adapters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-destructive%2Fmindsdb_go_sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-destructive%2Fmindsdb_go_sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-destructive%2Fmindsdb_go_sdk/lists"}