{"id":25806712,"url":"https://github.com/sqlitecloud/sqlitecloud-go","last_synced_at":"2026-01-12T06:47:47.276Z","repository":{"id":151007957,"uuid":"623637171","full_name":"sqlitecloud/sqlitecloud-go","owner":"sqlitecloud","description":"Official repository for SQLite Cloud go modules","archived":false,"fork":false,"pushed_at":"2024-08-28T19:16:33.000Z","size":121,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-25T11:50:35.267Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sqlitecloud.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-04-04T19:16:28.000Z","updated_at":"2024-12-14T14:24:19.000Z","dependencies_parsed_at":"2024-06-21T03:22:45.806Z","dependency_job_id":"3bbdaccd-3048-4a5a-8607-4eef62320484","html_url":"https://github.com/sqlitecloud/sqlitecloud-go","commit_stats":null,"previous_names":["sqlitecloud/sqlitecloud-go","sqlitecloud/go-sdk"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitecloud%2Fsqlitecloud-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitecloud%2Fsqlitecloud-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitecloud%2Fsqlitecloud-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitecloud%2Fsqlitecloud-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sqlitecloud","download_url":"https://codeload.github.com/sqlitecloud/sqlitecloud-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241056726,"owners_count":19901841,"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":"2025-02-27T20:28:55.088Z","updated_at":"2026-01-12T06:47:47.269Z","avatar_url":"https://github.com/sqlitecloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Driver for SQLite Cloud\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://sqlitecloud.io/social/logo.png\" height=\"300\" alt=\"SQLite Cloud logo\"\u003e\n\u003c/p\u003e\n\n- [Driver for SQLite Cloud](#driver-for-sqlite-cloud)\n- [Example](#example)\n- [Get a Connection String](#get-a-connection-string)\n- [Setting up the IDE](#setting-up-the-ide)\n\n[![Test and QA](https://github.com/sqlitecloud/sqlitecloud-go/actions/workflows/testing.yaml/badge.svg?branch=main)](https://github.com/sqlitecloud/sqlitecloud-go/actions/workflows/testing.yaml)\n[![codecov](https://codecov.io/gh/sqlitecloud/sqlitecloud-go/graph/badge.svg?token=5MAG3G4X01)](https://codecov.io/gh/sqlitecloud/sqlitecloud-go)\n[![GitHub Tag](https://img.shields.io/github/v/tag/sqlitecloud/sqlitecloud-go?label=version\u0026link=https%3A%2F%2Fpkg.go.dev%2Fgithub.com%2Fsqlitecloud%2Fsqlitecloud-go)](https://pkg.go.dev/github.com/sqlitecloud/sqlitecloud-go)\n[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/sqlitecloud/sqlitecloud-go?link=https%3A%2F%2Fpkg.go.dev%2Fgithub.com%2Fsqlitecloud%2Fsqlitecloud-go)](https://pkg.go.dev/github.com/sqlitecloud/sqlitecloud-go)\n\n---\n\n[SQLite Cloud](https://sqlitecloud.io) for Go is a powerful package that allows you to interact with the SQLite Cloud database seamlessly. It provides methods for various database operations. This package is designed to simplify database operations in Go applications, making it easier than ever to work with SQLite Cloud. In addition to the standard SQLite statements, several other [commands](https://docs.sqlitecloud.io/docs/commands) are supported.\n\n- Documentation: [https://pkg.go.dev/github.com/sqlitecloud/sqlitecloud-go#section-documentation](https://pkg.go.dev/github.com/sqlitecloud/sqlitecloud-go#section-documentation)\n- Source: [https://github.com/sqlitecloud/sqlitecloud-go](https://github.com/sqlitecloud/sqlitecloud-go)\n- Site: [https://sqlitecloud.io](https://sqlitecloud.io/developers)\n\n## Example\n\n### Use SQLite Cloud in your Go code\n\n1. Import the package in your Go source code:\n\n    ```go\n    import sqlitecloud \"github.com/sqlitecloud/sqlitecloud-go\"\n    ```\n\n2. Download the package, and run the [`go mod tidy` command](https://go.dev/ref/mod#go-mod-tidy) to synchronize your module's dependencies:\n\n    ```bash\n    $ go mod tidy\n    go: downloading github.com/sqlitecloud/sqlitecloud-go v1.0.0\n    ```\n\n3. Connect to a SQLite Cloud database with a valid [connection string](#get-a-connection-string):\n\n    ```go\n    db, err := sqlitecloud.Connect(\"sqlitecloud://user:pass@host.sqlite.cloud:port/dbname\")\n    ```\n\n4. Execute queries using a [method](#api-documentation) defined on the `SQCloud` struct, for example `Select`:\n\n    ```go\n    result, _ := db.Select(\"SELECT * FROM table1;\")\n    ```\n\nThe following example shows how to print the content of the table `table1`:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"strings\"\n\n    sqlitecloud \"github.com/sqlitecloud/sqlitecloud-go\"\n)\n\nconst connectionString = \"sqlitecloud://admin:password@host.sqlite.cloud:8860/dbname.sqlite\"\n\nfunc main() {\n    db, err := sqlitecloud.Connect(connectionString)\n    if err != nil {\n        fmt.Println(\"Connect error: \", err)\n    }\n\n    tables, _ := db.ListTables()\n    fmt.Printf(\"Tables:\\n\\t%s\\n\", strings.Join(tables, \"\\n\\t\"))\n\n    fmt.Printf(\"Table1:\\n\")\n    result, _ := db.Select(\"SELECT * FROM t1;\")\n    for r := uint64(0); r \u003c result.GetNumberOfRows(); r++ {\n        id, _ := result.GetInt64Value(r, 0)\n        value, _ := result.GetStringValue(r, 1)\n        fmt.Printf(\"\\t%d: %s\\n\", id, value)\n    }\n}\n```\n\n## Get a Connection String\n\nYou can connect to any cloud database using a special connection string in the form:\n\n`sqlitecloud://user:pass@host.com:port/dbname?timeout=10\u0026key2=value2\u0026key3=value3`\n\nTo get a valid connection string, follow these instructions:\n\n- Get a [SQLite Cloud](https://sqlitecloud.io/) account. See the [documentation](https://docs.sqlitecloud.io/docs/introduction/login) for details.\n- Create a [SQLite Cloud project](https://docs.sqlitecloud.io/docs/introduction/projects)\n- Create a [SQLite Cloud database](https://docs.sqlitecloud.io/docs/introduction/databases)\n- Get the connection string by clicking on the node address in the [Dashboard Nodes](https://docs.sqlitecloud.io/docs/introduction/nodes) section. A valid connection string will be copied to your clipboard.\n- Add the database name to your connection string.\n\n\n\n## Setting up the IDE\n\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n\nTo start working on this project, follow these steps:\n\n1. Open the project folder in Visual Studio Code (VSCode) using the remote container feature.\n2. In the terminal, run the command `make setup-ide` to install the necessary development tools.\n3. To ensure code quality, we have integrated [pre-commit](https://github.com/pre-commit/pre-commit) into the workflow. Before committing your changes to Git, pre-commit will run several tasks defined in the `.pre-commit-config.yaml` file.\n\nBy following these steps, you will have a fully set up development environment and be ready to contribute to the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlitecloud%2Fsqlitecloud-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqlitecloud%2Fsqlitecloud-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlitecloud%2Fsqlitecloud-go/lists"}