Connecting Vapor to MySQL and Returning a JSON Response
To get more familiar with Vapor, I will go a little beyond Hello World. This time, I will connect to a database, save data with a POST method, and return a JSON response.
To get more familiar with Vapor, I will go a little beyond Hello World. This time, I will connect to a database, save data with a POST method, and return a JSON response.

As I wrote a little while ago, I have started touching Vapor on WSL. Swift feels quite different from TypeScript, so coding in this different style is fun.
A coworking space that opens only on Wednesdays in August is being held around the exact middle of the Boso Peninsula in Chiba Prefecture. I thought it would be boring to go empty-handed, so I brought my Vision Pro as a small topic.
Vision Pro has a feature literally called "Environments." In macOS terms, it feels something like wallpaper, and a little while ago a new Environment was added.
Since around last month, I have been checking behavior and specifications around React 19 RC for work. In the middle of that, I later noticed this sentence in the form-related documentation.
> "When a function is passed to action or formAction, the HTTP method will be POST regardless of the value of method."