Pg Hauv node JS yog dab tsi?
Pg Hauv node JS yog dab tsi?

Video: Pg Hauv node JS yog dab tsi?

Video: Pg Hauv node JS yog dab tsi?
Video: Merging PDFs with Python! 2024, Hlis ntuj nqeg
Anonim

Es tsis txhob siv ORM, peb yuav siv PG NodeJS pob ncaj qha - PG yog a NodeJs pob rau kev cuam tshuam nrog PostgreSQL database. Siv PG ib leeg kuj tseem yuav muab sijhawm rau peb kom nkag siab qee cov lus nug SQL yooj yim raws li peb yuav nug thiab tswj cov ntaub ntawv hauv DB siv cov lus nug SQL raw.

Hais txog qhov no, PG kev cog lus yog dab tsi?

pg - cog lus yog lub tsev qiv ntawv Postgres rau Node sau rau saum lub tsev qiv ntawv brianc/node-postgres.

Tsis tas li ntawd, PG pas dej ua ke yog dab tsi? Pgpool -II yog lub npe software uas zaum ntawm PostgreSQL servers thiab PostgreSQL database tus neeg siv khoom. Nws muab cov yam ntxwv hauv qab no: Kev sib txuas Pooling . Yog hais tias ib tug database yog replicated (vim hais tias khiav nyob rau hauv ib tug replication hom los yog tus tswv / qhev hom), ua ib tug SELECT query ntawm ib tug neeg rau zaub mov yuav rov zoo li qub.

Ib sab ntawm no, PG Hstore yog dab tsi?

pg - hstore yog pob pob rau serializing thiab deserializing JSON cov ntaub ntawv rau hstore hom ntawv.

Hstore yog dab tsi?

hstore . Qhov no module siv lub hstore hom ntaub ntawv khaws cia cov khoom tseem ceeb / tus nqi khub hauv ib tus nqi PostgreSQL. Qhov no tuaj yeem siv tau rau ntau yam xwm txheej, xws li kab nrog ntau tus cwj pwm uas tsis tshua kuaj xyuas, lossis cov ntaub ntawv ib nrab. Cov yuam sij thiab qhov tseem ceeb tsuas yog cov kab ntawv xwb.

Pom zoo: