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

Add Springboot vs Ballerina comparison sample code #29

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

ayeshLK
Copy link

@ayeshLK ayeshLK commented Jul 10, 2023

Purpose

$subject

Fixes: #4619

@ayeshLK ayeshLK marked this pull request as draft July 10, 2023 14:28
@ayeshLK ayeshLK marked this pull request as ready for review July 11, 2023 09:09
Copy link
Contributor

@TharmiganK TharmiganK left a comment

Choose a reason for hiding this comment

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

Ballerina code looks good to me

}

### Delete a user
DELETE http://localhost:9090/social-media/users/1
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
DELETE http://localhost:9090/social-media/users/1
DELETE http://localhost:9090/social-media/users/1

stream<Post, sql:Error?> postStream = self.socialMediaDb->query(`SELECT id, description FROM social_media_database.post WHERE user_id = ${id}`);
Post[]|error posts = from Post post in postStream
select post;
return posts;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it okay if we just return the query expression here?

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.

Move springboot-vs-ballerina comparison codebase into integration-samples repository
3 participants