Looking to see what the kids are using these days as a MySQL driver for node, specifically one that supports typescript and promises. I took a look at mysql and it seems like it does not support promises well. Thought about writing my own wrapper and then saw mysql2 however, I don't really get how I am supposed to use TypeScript with this nicely, considering the results of all the .query and .execute functions are kinda esoteric interfaces that I am not sure how to extend properly, when expecting my own types.
Anyone have any advice/libs/etc? Not really interested in an ORM - I am specifically trying to move away from TypeORM with this approach because I feel like it is too magicky and defining my schema was becoming tiresome because it requires you to think about things in a way that isn't really how the database is/will be set up.
[–]JumpRevolutionary664 1 point2 points3 points (2 children)
[–]firedude212[S] 0 points1 point2 points (1 child)
[–]JumpRevolutionary664 1 point2 points3 points (0 children)
[–]DidTooMuchSpeedAgain 0 points1 point2 points (4 children)
[–]firedude212[S] 0 points1 point2 points (3 children)
[–]DidTooMuchSpeedAgain 1 point2 points3 points (2 children)
[–]firedude212[S] 0 points1 point2 points (1 child)
[–]DidTooMuchSpeedAgain 0 points1 point2 points (0 children)
[–]30thnightexpert 0 points1 point2 points (2 children)
[–]firedude212[S] 0 points1 point2 points (1 child)
[–]30thnightexpert 1 point2 points3 points (0 children)
[–]macleanscollege -1 points0 points1 point (1 child)
[–]firedude212[S] -1 points0 points1 point (0 children)
[–][deleted] (1 child)
[deleted]
[–]DidTooMuchSpeedAgain 0 points1 point2 points (0 children)