|
most of the orms I know let you write your own sql if you really wanna.
|
# ¿ Jul 21, 2013 03:33 |
|
|
# ¿ May 9, 2024 19:24 |
|
HORATIO HORNBLOWER posted:here's another fun one if only java had checked exceptions this never would have happened
|
# ¿ Jul 23, 2013 06:32 |
|
shaggar's gimmick is wearing on me I think
|
# ¿ Jul 24, 2013 01:38 |
|
Shaggar posted:that's a user object, not a person object, and the email is the login id. its perfectly acceptable to use email as the primary key in this case. in a more advanced system where you might be using other forms of authentication then yeah its no good, but that's not what the example was. also you are 100% wrong about natural primary keys being bad. you've probably never done any data work. unique constraints are different from primary key constraints because they can contain null values. primary keys cannot. also you don't understand what a surrogate key is. the auto generated surrogate key is whats used for references. that's why its called a surrogate key. shagger you realize you can have both a unique and a non-null constraint on a column without making it a PK? Anyway, re: notorious bsd saying things, django-style ORMs are for when you are making the database with the app. Which is pretty common, a lot of databases are made specifically as part of an application. And another one like the "smarter orms" is SQLalchemy, which works as a mapping and abstraction for abritrary data. Has a nice sql expression language too. also an orm can usually generate perfectly performant sql for most applications. A select or join made by an orm is going to be just as good as your artisinally handcrafted stored procedure, and provides a layer of abstraction and portability as well.
|
# ¿ Jul 25, 2013 21:07 |
|
wait whats wrong with python scope?
|
# ¿ Jul 26, 2013 01:01 |
|
I didn't want to waste good entropy on this thread so I just voted 1
|
# ¿ Nov 12, 2013 02:26 |
|
p lang is short for "programming language"
|
# ¿ Jul 31, 2014 17:53 |
|
|
# ¿ May 9, 2024 19:24 |
|
I still do a double take every time I see a tef post because I think its TBC. Because also I havent been reading/posting much for like a year.
|
# ¿ Aug 1, 2014 23:07 |