{"id":37213553,"url":"https://github.com/tie/genji-release-test","last_synced_at":"2026-01-15T00:38:28.192Z","repository":{"id":38011235,"uuid":"367407916","full_name":"tie/genji-release-test","owner":"tie","description":null,"archived":true,"fork":false,"pushed_at":"2023-03-12T10:56:37.000Z","size":3811,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T08:11:22.178Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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":"2021-05-14T15:39:37.000Z","updated_at":"2023-04-11T05:04:40.000Z","dependencies_parsed_at":"2024-06-20T07:08:09.887Z","dependency_job_id":"573595f2-9e77-47f9-b19f-66f606388f0f","html_url":"https://github.com/tie/genji-release-test","commit_stats":null,"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/tie/genji-release-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tie%2Fgenji-release-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tie%2Fgenji-release-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tie%2Fgenji-release-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tie%2Fgenji-release-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tie","download_url":"https://codeload.github.com/tie/genji-release-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tie%2Fgenji-release-test/sbom","scorecard":{"id":884882,"data":{"date":"2025-08-11","repo":{"name":"github.com/tie/genji-release-test","commit":"cb1ef65d57e6a1c1c9a88950a4b490254ce53c4f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release-assets.yaml:1","Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/test-fuzz.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-assets.yaml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release-assets.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-assets.yaml:116: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release-assets.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-assets.yaml:123: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release-assets.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:469: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:490: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:130: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:132: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:141: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:171: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:173: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:182: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:210: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:220: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:358: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:360: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:369: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:437: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:116: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:236: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:238: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:247: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:281: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:283: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:292: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:331: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:336: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-fuzz.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/test-fuzz.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-fuzz.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/test-fuzz.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-fuzz.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/tie/genji-release-test/test-fuzz.yaml/main?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/test-fuzz.yaml:44","Info:   0 out of  31 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   2 out of   3 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: GoBuiltInFuzzer integration found: sql/parser/parser_fuzz_test.go:10"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.19 not signed: https://api.github.com/repos/tie/genji-release-test/releases/43002297","Warn: release artifact v0.0.18 not signed: https://api.github.com/repos/tie/genji-release-test/releases/43002114","Warn: release artifact v0.0.17 not signed: https://api.github.com/repos/tie/genji-release-test/releases/43001935","Warn: release artifact v0.0.7 not signed: https://api.github.com/repos/tie/genji-release-test/releases/42999747","Warn: release artifact v0.0.6 not signed: https://api.github.com/repos/tie/genji-release-test/releases/42988333","Warn: release artifact v0.0.19 does not have provenance: https://api.github.com/repos/tie/genji-release-test/releases/43002297","Warn: release artifact v0.0.18 does not have provenance: https://api.github.com/repos/tie/genji-release-test/releases/43002114","Warn: release artifact v0.0.17 does not have provenance: https://api.github.com/repos/tie/genji-release-test/releases/43001935","Warn: release artifact v0.0.7 does not have provenance: https://api.github.com/repos/tie/genji-release-test/releases/42999747","Warn: release artifact v0.0.6 does not have provenance: https://api.github.com/repos/tie/genji-release-test/releases/42988333"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T09:36:39.152Z","repository_id":38011235,"created_at":"2025-08-24T09:36:39.152Z","updated_at":"2025-08-24T09:36:39.152Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-15T00:38:27.461Z","updated_at":"2026-01-15T00:38:28.181Z","avatar_url":"https://github.com/tie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e Genji \u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://genji.dev\"\u003e\n    \u003cimg alt=\"Genji\" title=\"Genji\" src=\"https://raw.githubusercontent.com/genjidb/docs/master/assets/icons/logo.svg?sanitize=true\" width=\"100\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Document-oriented, embedded, SQL database\n\u003c/p\u003e\n\n## Introduction\n\n[![Build Status](https://travis-ci.org/tie/genji-release-test.svg)](https://travis-ci.org/tie/genji-release-test)\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/github.com/tie/genji-release-test)\n[![Slack channel](https://img.shields.io/badge/slack-join%20chat-green.svg)](https://gophers.slack.com/messages/CKPCYQFE0)\n![Fuzz](https://github.com/tie/genji-release-test/workflows/Fuzz/badge.svg)\n\nGenji is a schemaless database that allows running SQL queries on documents.\n\nCheckout the [SQL documentation](https://genji.dev/docs/genji-sql), the [Go doc](https://pkg.go.dev/github.com/tie/genji-release-test) and the [usage example](#usage) in the README to get started quickly.\n\n\u003e :warning: **Genji's API is still unstable**: Database compatibility is not guaranteed before reaching v1.0.0\n\n## Features\n\n- **Optional schemas**: Genji tables are schemaless, but it is possible to add constraints on any field to ensure the coherence of data within a table.\n- **Multiple Storage Engines**: It is possible to store data on disk or in ram, but also to choose between B-Trees and LSM trees. Genji relies on [BoltDB](https://github.com/etcd-io/bbolt) and [Badger](https://github.com/dgraph-io/badger) to manage data.\n- **Transaction support**: Read-only and read/write transactions are supported by default.\n- **SQL and Documents**: Genji mixes the best of both worlds by combining powerful SQL commands with JSON.\n- **Easy to use, easy to learn**: Genji was designed for simplicity in mind. It is really easy to insert and read documents of any shape.\n- **Compatible** with the `database/sql` package\n\n## Installation\n\nInstall the Genji database\n\n```bash\ngo get github.com/tie/genji-release-test\n```\n\n## Usage\n\nThere are two ways of using Genji, either by using Genji's API or by using the [`database/sql`](https://golang.org/pkg/database/sql/) package.\n\n### Using Genji's API\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"log\"\n\n    \"github.com/tie/genji-release-test\"\n    \"github.com/tie/genji-release-test/document\"\n)\n\nfunc main() {\n    // Create a database instance, here we'll store everything on-disk using the BoltDB engine\n    db, err := genji.Open(\"my.db\")\n    if err != nil {\n        log.Fatal(err)\n    }\n    // Don't forget to close the database when you're done\n    defer db.Close()\n\n    // Attach context, e.g. (*http.Request).Context().\n    db = db.WithContext(context.Background())\n\n    // Create a table. Schemas are optional, you don't need to specify one if not needed\n    err = db.Exec(\"CREATE TABLE user\")\n\n    // Create an index\n    err = db.Exec(\"CREATE INDEX idx_user_name ON test (name)\")\n\n    // Insert some data\n    err = db.Exec(\"INSERT INTO user (id, name, age) VALUES (?, ?, ?)\", 10, \"Foo1\", 15)\n\n    // Supported values can go from simple integers to richer data types like lists or documents\n    err = db.Exec(`\n    INSERT INTO user (id, name, age, address, friends)\n    VALUES (\n        11,\n        'Foo2',\n        20,\n        {\"city\": \"Lyon\", \"zipcode\": \"69001\"},\n        [\"foo\", \"bar\", \"baz\"]\n    )`)\n\n    // Go structures can be passed directly\n    type User struct {\n        ID              uint\n        Name            string\n        TheAgeOfTheUser float64 `genji:\"age\"`\n        Address         struct {\n            City    string\n            ZipCode string\n        }\n    }\n\n    // Let's create a user\n    u := User{\n        ID:              20,\n        Name:            \"foo\",\n        TheAgeOfTheUser: 40,\n    }\n    u.Address.City = \"Lyon\"\n    u.Address.ZipCode = \"69001\"\n\n    err = db.Exec(`INSERT INTO user VALUES ?`, \u0026u)\n\n    // Query some documents\n    res, err := db.Query(\"SELECT id, name, age, address FROM user WHERE age \u003e= ?\", 18)\n    // always close the result when you're done with it\n    defer res.Close()\n\n    // Iterate over the results\n    err = res.Iterate(func(d document.Document) error {\n        // When querying an explicit list of fields, you can use the Scan function to scan them\n        // in order. Note that the types don't have to match exactly the types stored in the table\n        // as long as they are compatible.\n        var id int\n        var name string\n        var age int32\n        var address struct {\n            City    string\n            ZipCode string\n        }\n\n        err = document.Scan(d, \u0026id, \u0026name, \u0026age, \u0026address)\n        if err != nil {\n            return err\n        }\n\n        fmt.Println(id, name, age, address)\n\n        // It is also possible to scan the results into a structure\n        var u User\n        err = document.StructScan(d, \u0026u)\n        if err != nil {\n            return err\n        }\n\n        fmt.Println(u)\n\n        // Or scan into a map\n        var m map[string]interface{}\n        err = document.MapScan(d, \u0026m)\n        if err != nil {\n            return err\n        }\n\n        fmt.Println(m)\n        return nil\n    })\n}\n\n```\n\n### Using database/sql\n\n```go\n// import Genji as a blank import\nimport _ \"github.com/tie/genji-release-test/sql/driver\"\n\n// Create a sql/database DB instance\ndb, err := sql.Open(\"genji\", \"my.db\")\nif err != nil {\n    log.Fatal(err)\n}\ndefer db.Close()\n\n// Then use db as usual\nres, err := db.ExecContext(...)\nres, err := db.Query(...)\nres, err := db.QueryRow(...)\n```\n\n## Engines\n\nGenji currently supports storing data in [BoltDB](https://github.com/etcd-io/bbolt), [Badger](https://github.com/dgraph-io/badger) and in-memory.\n\n### Using the BoltDB engine\n\n```go\nimport (\n    \"log\"\n\n    \"github.com/tie/genji-release-test\"\n)\n\nfunc main() {\n    db, err := genji.Open(\"my.db\")\n    defer db.Close()\n}\n```\n\n### Using the memory engine\n\n```go\nimport (\n    \"log\"\n\n    \"github.com/tie/genji-release-test\"\n)\n\nfunc main() {\n    db, err := genji.Open(\":memory:\")\n    if err != nil {\n        log.Fatal(err)\n    }\n    defer db.Close()\n}\n```\n\n### Using the Badger engine\n\nFirst install the module\n\n```bash\ngo get github.com/tie/genji-release-test/engine/badgerengine\n```\n\n```go\nimport (\n    \"context\"\n    \"log\"\n\n    \"github.com/tie/genji-release-test\"\n    \"github.com/tie/genji-release-test/engine/badgerengine\"\n    \"github.com/dgraph-io/badger/v2\"\n)\n\nfunc main() {\n    // Create a badger engine\n    ng, err := badgerengine.NewEngine(badger.DefaultOptions(\"mydb\"))\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    // Pass it to genji\n    db, err := genji.New(context.Background(), ng)\n    if err != nil {\n        log.Fatal(err)\n    }\n    defer db.Close()\n}\n```\n\n## Genji shell\n\nThe genji command line provides an SQL shell that can be used to create, modify and consult Genji databases.\n\nMake sure the Genji command line is installed:\n\n```bash\ngo get github.com/tie/genji-release-test/cmd/genji\n```\n\nExample:\n\n```bash\n# Opening an in-memory database:\ngenji\n\n# Opening a BoltDB database:\ngenji my.db\n\n# Opening a Badger database:\ngenji --badger pathToData\n```\n\n## Contributing\n\nContributions are welcome!\n\nSee [ARCHITECTURE.md](./ARCHITECTURE.md) and [CONTRIBUTING.md](.github/CONTRIBUTING.md).\n\nThank you, [contributors](https://github.com/tie/genji-release-test/graphs/contributors)!\n\nIf you have any doubt, join the [Gophers Slack channel](https://gophers.slack.com/messages/CKPCYQFE0) or open an [issue](https://github.com/tie/genji-release-test/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftie%2Fgenji-release-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftie%2Fgenji-release-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftie%2Fgenji-release-test/lists"}