{"id":18507684,"url":"https://github.com/upper/cockroachdb-example","last_synced_at":"2025-04-09T03:31:18.504Z","repository":{"id":146918932,"uuid":"290233888","full_name":"upper/cockroachdb-example","owner":"upper","description":null,"archived":true,"fork":false,"pushed_at":"2020-08-25T14:59:54.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T02:16:41.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/upper.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}},"created_at":"2020-08-25T14:14:09.000Z","updated_at":"2024-06-26T03:16:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d9665c4-86f5-46c6-a6ff-fbc677c6bcd0","html_url":"https://github.com/upper/cockroachdb-example","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/upper%2Fcockroachdb-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upper%2Fcockroachdb-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upper%2Fcockroachdb-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upper%2Fcockroachdb-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upper","download_url":"https://codeload.github.com/upper/cockroachdb-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247973539,"owners_count":21026688,"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-11-06T15:12:08.325Z","updated_at":"2025-04-09T03:31:18.259Z","avatar_url":"https://github.com/upper.png","language":"Go","readme":"# upper/db + CockroachDB example\n\n## Run the insecure node example\n\nCreate and run an insecure node:\n\n```\nmake insecure-node\n```\n\nOpen a second terminal and create the bank database:\n\n```\nmake bank-database-insecure\n```\n\nRun the `main.go` example:\n\n```\ngo run main.go\n```\n\n## Run the secure node example\n\nCreate and run a secure node:\n\n```\nmake secure-node\n```\n\nOpen a second terminal and create the bank database:\n\n```\nmake bank-database-secure\n```\n\nEdit the `main.go` file and add options for secure connection:\n\n```go\nvar settings = cockroachdb.ConnectionURL{\n\tHost:     \"localhost\",\n\tDatabase: \"bank\",\n\tUser:     \"maxroach\",\n\tOptions: map[string]string{\n\t\t// Insecure node.\n\t\t// \"sslmode\": \"disable\",\n\t\t// Secure node.\n\t\t\"sslrootcert\": \"certs/ca.crt\",\n\t\t\"sslkey\":      \"certs/client.maxroach.key\",\n\t\t\"sslcert\":     \"certs/client.maxroach.crt\",\n\t},\n}\n```\n\nRun the `main.go` example:\n\n```\ngo run main.go\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupper%2Fcockroachdb-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupper%2Fcockroachdb-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupper%2Fcockroachdb-example/lists"}