vapor / fluent-kit

Swift ORM (queries, models, and relations) for NoSQL and SQL databases
MIT License
217 stars 116 forks source link

FluentKit + AWSLambda example #347

Open 8secz-johndpope opened 4 years ago

8secz-johndpope commented 4 years ago

With developments from AWS + swift + lambda - https://github.com/swift-sprinter/aws-serverless-swift-api-template

I'm wanting to jump boat to use swift for server side stuff. It seems this repo would help facilitate returning a model from mysql database.

The fluent readme is a bit thin - aws seems to want people to use dynodb across samples though they do reference vapor. I will keep my eyes peeled for AWSLambdaRuntime + mysql

When I get the model and data back (providing I get the associated data) - will it auto populate attributes that have nested models? eg. FeedItem -> comments:[Comment]

tanner0101 commented 4 years ago

It's on my todo list to add examples of using FluentKit with other frameworks to the README. An example for AWS lambda is a great idea :+1: