ORM muaj dab tsi?
ORM muaj dab tsi?

Video: ORM muaj dab tsi?

Video: ORM muaj dab tsi?
Video: yog hmoov dab tsi tub huas xyooj 2024, Kaum ib hlis
Anonim

Ib ORM daws muaj ntawm plaub yam nram qab no: API rau kev ua haujlwm CRUD yooj yim. API los nthuav qhia cov lus nug xa mus rau cov chav kawm. Cov cuab yeej los qhia cov metadata.

Yog li ntawd, ORM yog dab tsi?

Object-relational mapping ( ORM , O/RM, thiab O/R mapping cuab yeej ) hauv computer science yog cov txheej txheem programming rau kev hloov cov ntaub ntawv ntawm cov tshuab tsis sib xws uas siv hom lus hais txog kev ua haujlwm. Qhov no tsim, qhov tseeb, "virtual object database" uas tuaj yeem siv los ntawm cov lus programming.

Tsis tas li ntawd, ORM yog dab tsi nws tseem ceeb npaum li cas? Object Relational Mappers lossis ORMs yog txheej txheej ntawm software uas zaum ntawm cov neeg tsim tawm lub vev xaib thiab cov ntaub ntawv rov qab. Ntawm qhov tod tes, peb muaj cov neeg tsim khoom uas tau ua haujlwm rau kev tsim cov ntawv thov, ua kom tiav cov kev xav tau ntawm kev lag luam, thiab ua kom txaus siab rau kev ua haujlwm hauv lub sijhawm kawg.

Tsis tas li ntawd, ORM yog dab tsi thiab nws cov txiaj ntsig yog dab tsi?

Qhov zoo ntawm ORM Lawv sau kom raug thiab ua kom zoo dua cov lus nug SQL, yog li tshem tawm qhov teeb meem rau cov neeg tsim khoom. Lawv ua kom cov cai yooj yim dua los hloov kho, tswj, thiab rov siv dua li tus tsim tawm tuaj yeem xav txog, thiab tswj cov ntaub ntawv raws li cov khoom.

Puas yog Orm sai dua SQL?

Object relational mapping ( ORM ) yog ib txoj hauv kev los ua ib qho piv txwv ntawm cov qauv coj mus rau qhov chaw sib txheeb [28]. Intuitively, Raws SQL ntawv yuav tsum yog sai dua Eloquent ORM , tab sis raws nraim npaum li cas sai dua yuav tsum tau tshawb nrhiav.

Pom zoo: