This is why good ORM like SQLAlchemy actually are split in 2 parts: the declarative layer, and the core layer.
The declarative layer gives you the handy ORM syntax for simple operations.
The core layer is lower level, and allows to composes all possible SQL operations you can dream, but from the comfort of your programming language, including typing, completion, and so on.
Does something like that exist for Go ? I don't know the golang ecosystem very well.
I couldn't find exactly an only Core example that you are looking for in the examples folder [0] so here is a more complicated tutorial query [1] and here's how I use Core in my project [2] (mostly short select statements so not really a comprehensive demonstration of SQLAlchemy Core's capabilities).
> My dream is to write actual SQL in the middle of my code, as a valid syntax and first-class construct. As I said, that's not really a realistic goal.
Sure, it is. See how regexes in some languages are first class datatypes, so you can have a regex literal in your code (with backreferences too, I believe).
There is no good reason that SQL statements can't also be a datatype, with SQL literals in the code like the way regexes do. I'm imagining something like this:
The stmt above is not a string, hence is part of the AST and can be checked at compile time. The execution might be a problem (returned columns have to be checked too).
What's more, tv shows are also often adapted from comics or books in a way that satisfy the advertisers.
Take lockes and keys on netflix. The original comics is very violent. The murdered rape the kids mother, and when he escapes jail, he pays his ride by sucking dicks. He has horrible scars because the big brother trashed him with a brick in a blood frenzy that is visually rehashed as a memory regularly in the first tome. Bode sister hurt herself and his little bro while hidding because she is holding so hard.
None of that made it into the tv show despite the fact it makes the story better: the characters make more sense, their reactions are congruent with their tragedy.
We use IndexedDB, and in modern browsers the limit should be at least a few hundred megabytes (see for example this answer for Chrome limits [1], the situation is similar in Firefox).
So far this has been enough, but the apps we have are fairly simple (e.g. no media!). We'll see. Maybe media can be handled off browser.
I don't know a ton about FastAPI, but it seems like it's based on OpenAPI. I posted below about Dropshot, which the company I work for wrote, is using and open sourced.
Yeah, this does look kind of similar, I'll take a look. Thank you!
I'd say the most powerful part of FastAPI is that it integrates everything in a relatively opinionated way, that you would spend a lot of time setting up Flask plugins/extensions for to get an equivalent feature set.
I'm not sure I'd say it's based on OpenAPI(?), but it does automatically generate OpenAPI based docs from your Python code. There's no intermediate step, the '.../docs' route just exists at runtime.
Every time I have an idea, I send a message to myself using telegram: there is actually a widget just for that in android.
It's awesome cause you can type, take a a picture or a video, dictate... And it syncs across devices, giving you access anywhere to a timeline of your thoughts.
Then when I got time I pop the stack and sort in as projects into the wonderful dynamist. It works offline, on Linux and mobile, syncs, allows notes and nested todo.
I do the same with Whatsapp using a neat trick someone told me about.
Create a group(call it "Share with self" or similar) with you and another person. Then, remove that person from the group.. that's it! Functionally it's the same as sending yourself Slack messages, but on WA, which is good
The declarative layer gives you the handy ORM syntax for simple operations.
The core layer is lower level, and allows to composes all possible SQL operations you can dream, but from the comfort of your programming language, including typing, completion, and so on.
Does something like that exist for Go ? I don't know the golang ecosystem very well.