Add example with postgres and add rusqlite in new directory#388
Open
jonatasoli wants to merge 4 commits intorust-db:mainfrom
Open
Add example with postgres and add rusqlite in new directory#388jonatasoli wants to merge 4 commits intorust-db:mainfrom
jonatasoli wants to merge 4 commits intorust-db:mainfrom
Conversation
jxs
reviewed
Jul 20, 2025
Member
jxs
left a comment
There was a problem hiding this comment.
Hi Jonatas, and thanks for this and sorry for the delay in reviewing it!
Left some comments
| .run_async(&mut client) | ||
| .await?; | ||
|
|
||
| println!("Migrations apllied with success:"); |
Member
There was a problem hiding this comment.
Suggested change
| println!("Migrations apllied with success:"); | |
| println!("Migrations applied with success:"); |
| @@ -0,0 +1,29 @@ | |||
| use tokio_postgres::NoTls; | |||
Member
There was a problem hiding this comment.
this seems equal to the postgres_docker_sql example, is there any value in adding this as well? I think we can just have the docker one with a README.md explaining how to run it in the main examples dir
| @@ -0,0 +1,8 @@ | |||
| CREATE TABLE transactions ( | |||
Member
There was a problem hiding this comment.
instead of moving the existing examples to the rusqlite example dir, can we have them at the main examples level and use them in this example as well?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the examples directory, I add the rusqlite example for the new directory with name rusqlite
I added an example with PostgreSQL, with tokyo client and executed it with a docker file.