{"id":17435595,"url":"https://github.com/ashish111333/minds-go-sdk","last_synced_at":"2026-02-09T21:04:08.793Z","repository":{"id":257944131,"uuid":"870916781","full_name":"ashish111333/minds-go-sdk","owner":"ashish111333","description":"go-sdk for minds.","archived":false,"fork":false,"pushed_at":"2024-11-05T17:24:04.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T16:39:15.996Z","etag":null,"topics":["go","minds"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashish111333.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-10-10T22:53:04.000Z","updated_at":"2025-05-16T14:31:23.000Z","dependencies_parsed_at":"2024-10-24T07:24:32.304Z","dependency_job_id":"e6cc1005-55ad-4a85-869c-85abce67c077","html_url":"https://github.com/ashish111333/minds-go-sdk","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"77f29adaf46db6d937004754af9aca85b131d087"},"previous_names":["ashish111333/minds-go-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashish111333/minds-go-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish111333%2Fminds-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish111333%2Fminds-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish111333%2Fminds-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish111333%2Fminds-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashish111333","download_url":"https://codeload.github.com/ashish111333/minds-go-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashish111333%2Fminds-go-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271591574,"owners_count":24786420,"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-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["go","minds"],"created_at":"2024-10-17T10:00:45.992Z","updated_at":"2026-02-09T21:04:03.773Z","avatar_url":"https://github.com/ashish111333.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minds-go-sdk \n\n## Installation\n```go\ngo get github.com/ashish111333/minds-go-sdk\n```\n\n## Getting started\n1. Initialize the client\n\n    Intialize the client with your api key to interact with the sdk.\n\n    ```go\n    import \"github.com/ashish111333/minds-go-sdk/client\"\n\n    \n    func main(){\n        client,err:=client.NewClient(\"YOUR_API_KEY)\n        if err!=nil{\n            fmt.println(\"failed to create client\",err)\n        }\n    }\n    ```\n2. Creating a Datasource\n\n    You can connect to various databases, such as PostgreSQL, by configuring your data source. Use the DatabaseConfig to define the connection details for your data source.\n    \n    ```go\n    import \"github.com/ashish111333/minds-go-sdk/datasources\"\n\n    func main(){\n        postgresConfig:=datasources.Datasource{\n            DatabaseConfig:{\n                   name='my_datasource',\n                    description='\u003cDESCRIPTION-OF-YOUR-DATA\u003e',\n                    engine='postgres',\n                    connection_data={\n                        \"user\": 'demo_user',\n                        \"password\": \"demo_password\",\n                        \"host\": \"samples.mindsdb.com\",\n                        \"port\": 5432,\n                        \"database\": 'demo',\n                        \"schema\": 'demo_data'\n                    },\n                    tables=['\u003cTABLE-1\u003e', '\u003cTABLE-2\u003e']\n                }\n        }\n        \n    }\n    ```\n3. Creating a mind\n   \n   You can create a mind and associate it with a data source.\n   \n\n\n\n\n\n\n\n\n\n\n### Managing Minds\n\nYou can create a mind or replace an existing one with the same name.\n\n```go\n    \n ```\n\n#### List minds\n\nget list of minds you created\n\n```go\n    \n    minds,err:=client.minds.list()\n    \n```\n#### Get mind by name\nyou can fetch details of a mind by its name.\n\n```go \nmind,err:=client.minds.get(\"mind_name\")\n```\n\n#### Remove mind\nyou can remove a mind given it's name using drop method\n\n```go\nerr=client.minds.drop(\"mind_name\")\n```\n\n\n### Managing Datasources\n\n#### List Datsources\nTo view all data sources:\n\n```go\n\n```\n\n#### Remove a Data Source\nTo delete a data source, use the following command:\n\n```go\nerr=client.Datasources.remove(\"Datasource_name\")\n```\n#### Get Datasource by name\nYou can fetch details of a specific data source by its name.\n```go\nds,err=client.Datasources.Get(\"Datasource_name\")\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashish111333%2Fminds-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashish111333%2Fminds-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashish111333%2Fminds-go-sdk/lists"}