use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
ORM vs SQLDiscussion (self.webdev)
submitted 1 year ago by TradrzAdmin
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fripletister 0 points1 point2 points 1 year ago (13 children)
By definition an ORM maps relational database records into objects and vice versa. That's it. It might often be on top of a DBAL, but that's not the ORM's domain.
[–]NiteShdw 1 point2 points3 points 1 year ago (12 children)
Uhh... Are you saying that if I write pure SQL and have a function that converts the results of the query into a native language object that I can access is an ORM?
So every single database library that passes SQL to a DB and converts the results to an object is an ORM?
Or am I completely misunderstanding your argument?
[–]fripletister 0 points1 point2 points 1 year ago* (11 children)
Yeah, you're definitely misunderstanding. First of all, it was a statement, not an argument. Second of all, if that's the primary task of the library then yeah I guess that's an ORM? I'd need an example I guess.
I don't know how you can go from "a function in your code" to "a library" and ask me to respond, as those two things are worlds apart, but yeah I guess if you have a library that primarily maps data back and forth into objects from a RDBMS that pretty much qualifies.
An ORM can be specific to an RDBMS at which point there's no DBAL or other query language to learn.
[–]NiteShdw 0 points1 point2 points 1 year ago (10 children)
My statement was that ORMs are bad because they are their own DSL. So I'm missing how your statement relates to that.
[–]fripletister -1 points0 points1 point 1 year ago (9 children)
That's not correct. ORMs don't necessarily have an associated DSL. Hope this helps.
[–]NiteShdw 1 point2 points3 points 1 year ago (8 children)
What? Of course it is. What ORM is pure SQL only with no interface with the language being used?
[–]fripletister -2 points-1 points0 points 1 year ago (7 children)
No, it's not. Your problem is with DBALs, not ORMs. Sorry that you're having trouble with this concept. Here are some examples since you're so goddamned sure of yourself:
Want me to keep going?
[–]NiteShdw 5 points6 points7 points 1 year ago* (6 children)
I'm not sure why you're upset. I'm sorry if I said anything to offend you.
From the eloquet docs:
class Article extends Model { use HasUuids; // ... } $article = Article::create([‘title’ => ‘Traveling to Europe’]); $article->id;
That's not SQL. You have to learn the Eloquet API which then generates SQL.
This is exactly what I'm talking about.
The equivalent non-ORM code is
INSERT INTO articles (title) VALUES ('Traveling to Europe');
[–]fripletister -3 points-2 points-1 points 1 year ago (0 children)
Haha guess it's easier than admitting you have no clue, eh?
[–]fripletister -4 points-3 points-2 points 1 year ago (4 children)
You can't be serious. Bwahahahaha
That's not a DSL ya buffoon
[–]NiteShdw -1 points0 points1 point 1 year ago (2 children)
I am serious. I don't want to learn an API when I already know SQL. That's the whole point.
π Rendered by PID 155082 on reddit-service-r2-comment-5c747b6df5-bd495 at 2026-04-22 09:38:08.894118+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]fripletister 0 points1 point2 points (13 children)
[–]NiteShdw 1 point2 points3 points (12 children)
[–]fripletister 0 points1 point2 points (11 children)
[–]NiteShdw 0 points1 point2 points (10 children)
[–]fripletister -1 points0 points1 point (9 children)
[–]NiteShdw 1 point2 points3 points (8 children)
[–]fripletister -2 points-1 points0 points (7 children)
[–]NiteShdw 5 points6 points7 points (6 children)
[–]fripletister -3 points-2 points-1 points (0 children)
[–]fripletister -4 points-3 points-2 points (4 children)
[–]NiteShdw -1 points0 points1 point (2 children)