Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved QLDB code examples into qldb directory; added create-ledger code example #485

Merged
merged 7 commits into from
Jun 15, 2021

Conversation

Doug-AWS
Copy link
Contributor

Issue #, if available:
QLDB code examples were in separate directories.

Description of changes:
Moved all .RS files into qldb/src/bin; added create-ledger.rs.
Part of resolving issue #400.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


use aws_types::region::ProvideRegion;

//use qldbsession::model::StartSessionRequest;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//use qldbsession::model::StartSessionRequest;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted.

.unwrap_or_else(|| Region::new("us-west-2"));

if verbose {
println!("OLDB client version: {}\n", qldb::PKG_VERSION);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
println!("OLDB client version: {}\n", qldb::PKG_VERSION);
println!("QLDB client version: {}\n", qldb::PKG_VERSION);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, changed.

.send()
.await?;

match result.arn {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the result will always have an ARN, should probably unwrap here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,79 @@
/*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs rename

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

@rcoh rcoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just please bring back the readme

@@ -1,4 +0,0 @@
# QldbSession Hello World Example
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you bring back this readme?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's back.

…tly modified the description of the ledger in the hello world code example
Small language tweak suggesting the high level driver
@rcoh rcoh enabled auto-merge (squash) June 15, 2021 13:55
@rcoh rcoh merged commit 1501c17 into main Jun 15, 2021
@rcoh rcoh deleted the doug-refactor-qldb-examples branch June 15, 2021 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants