PHP ORM yog dab tsi?
PHP ORM yog dab tsi?

Video: PHP ORM yog dab tsi?

Video: PHP ORM yog dab tsi?
Video: Yog hmoov dab tsi By karaoke #nimyaivnimyai #karaokehmoob 2024, Hlis ntuj nqeg
Anonim

ORM sawv cev rau Object Relational Mapping. Nyob rau hauv ib tug nutshell nws yog converting cov ntaub ntawv rau hauv cov khoom thiab vice versa. Muaj ntau yam lus programming nyiam PHP , JAV,. NET txhawb cov khoom.

Ua raws li qhov xav tau, lub hom phiaj ntawm ORM yog dab tsi?

Object-relational mapping ( ORM , O/RM, thiab O/R mapping tool) hauv computer science yog txheej txheem programming los 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.

Qhov thib ob, ORM lub moj khaum yog dab tsi? ORM tseem yog lwm nerd-acronym, nws luv luv rau Object Relational Mapping. Nyob rau hauv ib tug nutshell, ib ORM txoj haujlwm yog sau rau hauv ib hom lus taw qhia (xws li PHP, Java, C# thiab lwm yam …) thiab nws yog tsim los kom zoo qhwv ib ncig ntawm cov ntaub ntawv sib raug zoo.

Kuj nug, ORM yog dab tsi hauv web application?

ORM yog Object Relational Mapper. ORM yog siv los qhia koj cov ntaub ntawv database rau koj daim ntawv thov khoom. Hauv qhov yooj yim daim ntawv thov siv ORM , koj yuav tsum muaj cov haujlwm uas tau txais / teeb tsa cov ntaub ntawv los ntawm / rau DB yuav tsum rov qab tsim nyog daim ntawv thov khoom / khoom.

Laravel ORM yog dab tsi?

Cov Eloquent ORM . Ib ORM yog tus kwv-relational mapper, thiab Laravel muaj ib tug uas koj yuav hlub tiag! Nws yog lub npe " Eloquent , "vim nws tso cai rau koj ua haujlwm nrog koj cov khoom siv database thiab kev sib raug zoo siv ib qho lus zoo thiab nthuav syntax. Cov Eloquent ORM yog Laravel's built-in ORM kev siv.

Pom zoo: