Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Golang driver for Amazon Quantum Ledger Database (QLDB), which allows Golang developers to write software that makes use of Amazon QLDB.

License

Notifications You must be signed in to change notification settings

mousedownmike/amazon-qldb-driver-go

 
 

Repository files navigation

Amazon QLDB Go Driver

This is the Go driver for Amazon Quantum Ledger Database (QLDB), which allows Golang developers to write software that makes use of Amazon QLDB.

For getting started with the driver, see Go and Amazon QLDB.

Requirements

Basic Configuration

See Accessing Amazon QLDB for information on connecting to AWS.

Required Golang versions

QldbDriver 1.x requires Golang 1.14 or later.

Please see the link below for more detail to install Golang:

Golang Download

Getting Started

First, ensure your project is using Go modules to install dependencies in your project.

In your project directory, install the driver using go get:

go get github.com/awslabs/amazon-qldb-driver-go/qldbdriver

For more instructions on working with the golang driver, please refer to the instructions below.

See Also

  1. Getting Started with Amazon QLDB Go Driver A guide that gets you started with executing transactions with the QLDB Go driver.
  2. For a quick start on how to interact with the driver, please refer to Go Driver Quick Start.
  3. QLDB Golang driver accepts and returns Amazon ION Documents. Amazon Ion is a richly-typed, self-describing, hierarchical data serialization format offering interchangeable binary and text representations. For more information read the ION docs.
  4. Amazon QLDB supports a subset of the PartiQL query language. PartiQL provides SQL-compatible query access across multiple data stores containing structured data, semistructured data, and nested data. For more information read the docs.
  5. Refer the section Common Errors while using the Amazon QLDB Drivers which describes runtime errors that can be thrown by the Amazon QLDB Driver when calling the qldb-session APIs.

Development

Setup

Assuming that you have Golang installed, use the below command to clone the driver repository.

$ git clone https://github.com/awslabs/amazon-qldb-driver-go.git
$ cd amazon-qldb-driver-go

Changes can now be made in the repository.

Running Tests

All the tests can be run by running the following command in the qldbdriver folder. Please make sure to setup and configure an AWS account to run the integration tests.

go test -v

To only run the unit tests:

go test -v -short

To only run the integration tests:

go test -run Integration

Getting Help

Please use these community resources for getting help.

  • Ask a question on StackOverflow and tag it with the amazon-qldb tag.
  • Open a support ticket with AWS Support.
  • If you think you may have found a bug, please open an issue.

Opening Issues

If you encounter a bug with the Amazon QLDB Go Driver, we would like to hear about it. Please search the existing issues and see if others are also experiencing the issue before opening a new issue. When opening a new issue, we will need the version of Amazon QLDB Go Driver, Go language version, and OS you’re using. Please also include reproduction case for the issue when appropriate.

The GitHub issues are intended for bug reports and feature requests. For help and questions with using AWS SDK for GO please make use of the resources listed in the Getting Help section. Keeping the list of open issues lean will help us respond in a timely manner.

Documentation

The Amazon QLDB Go Driver adheres to GoDoc standards and the documentation can be found here

If you wish to use GoDoc locally, please refer the GoDoc documetation

License

This library is licensed under the Apache 2.0 License.

About

Golang driver for Amazon Quantum Ledger Database (QLDB), which allows Golang developers to write software that makes use of Amazon QLDB.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%