FerretDB 0.3 yakatoburitswa, tsvaga kuti chii chitsva mune ino MangoDB yemazuva ano

Mamwe mavhiki apfuura isu tinogovana pano pane blog iyo nhau nezve kuchinja zita rechirongwa cheMangoDB iyo inokutendera iwe kutsiva MongoDB's gwaro-rinotungamirwa DBMS nePostgreSQL pasina kuita chero shanduko kukodhi yako yekushandisa.

Iro zita reprojekiti nyowani FerretDB uye munguva pfupi yapfuura kuburitswa kwevhezheni 0.3 yeprojekiti yakaburitswa. Iyo FerretDB 0.3 vhezheni inosuma iyo findAndModify command, iyo inoshandura gwaro asi inodzosera vhezheni yayo yepakutanga, pamwe nevashandisi vemunda, pakati pezvimwe zvinhu.

Kune avo vasati vaziva nezveFerretDB, iwe unofanirwa kuziva izvozvo izvi zvinoshandiswa sevhavhavhavha inoshandura mafoni kuMongoDB kuita SQL mibvunzo kuPostgreSQL, iyo inokubvumira kushandisa PostgreSQL sekuchengetedza chaiko.

Iko kudiwa kwekutama kunogona kusimuka maererano neshanduko yeMongoDB kuenda kune isiri-yemahara SSPL rezinesi, iyo yakavakirwa paAGPLv3 rezinesi, asi isina kuvhurika, sezvo iine rusarura chinodiwa kupa pasi peSSPL rezinesi kwete chete application. kodhi pachayo, asiwo masosi makodhi ezvese zvikamu zvinosanganisirwa mukupa gore sevhisi.

Vateereri vakuru veFerretDB vashandisi vasingashandisi maficha epamberi yeMongoDB mumashandisirwo avo, asi vanoda kushandisa yakavhurika software stack.

Padanho razvino rekuvandudza, FerretDB ichiri kutsigira chete chikamu cheMongoDB maficha izvo zvinonyanya kushandiswa mune zvakajairika application. Mune ramangwana, vanoronga kuwana rutsigiro rwakazara rwemutyairi weMongoDB uye nekupa kugona kushandisa FerretDB sekutsiva kwakajeka kweMongoDB.

MongoDB inogara niche pakati pekukurumidza uye scalable masisitimu anoshanda pane kiyi / kukosha data uye ane hukama maDBMS anoshanda uye ari nyore kubvunza.

MongoDB inotsigira kuchengetedza magwaro mune JSON-yakaita fomati, ine mutauro unochinjika wekuita mibvunzo, inogona kugadzira indexes yeakasiyana akachengetwa hunhu, inopa kuchengetedza kwakanaka kwezvinhu zvakakura zvebhinari, inotsigira kudhirowa kwemabasa kuchinja uye kuwedzera data kune dhatabhesi, iyo inogona kushanda zvinoenderana neMepu / Kuderedza paradigm, inotsigira kudzokorora uye kuvakwa kwekukanganisa-kushivirira zvigadziriso.

Nekuda kwekusiyana mune semantics yePostgreSQL uye MongoDB json mabasa, pakanga pane nyonganiso mukuzvibata pakuenzanisa nekuraira mhando dzakasiyana. Kuti ugadzirise dambudziko iri, sample yedata yakawandisa yaburitswa kubva kuPostgreSQL uye kusefa kwemhedzisiro kunoitwa padivi reFerretDB, izvo zvakaita kuti zvikwanise kudzokorora maitiro eMongoDB mumamiriro mazhinji.

Zvikuru zvitsva zveFerretDB 0.3

Sezvambotaurwa pakutanga, iyo nyowani vhezheni yeFerretDB 0.3 inomira pachena kuunza iyo findAndModify command, iyo inoshandura gwaro, asi inodzorera shanduro yaro yepakutanga.

Dzimwe shanduko dzinomira pachena ndedzekuti negative zero kubata kwave nani, pamwe nerutsigiro rwekuodha scalar data mhando yakawedzerwa.

Zvakare zvakasimbiswa ndizvo mitsva yekuvandudza minda inoshandiswa: $ inc uye $ set, pamwe nerutsigiro rwekuodha scalar data mhando yakawedzerwa.

Nekune rimwe divi, kunotaurwa kuti kwakasiyana kuvandudzwa kwakaitwa pakubata kwePostgreSQL neMongoDB shanduro.

Kunze kwaizvozvo, zvinocherechedzwa zvakare kuti iyo isiriyo bvunzo ye $ mod opareta yakagadziriswa, zvakare kuti bvunzo inopihwa pane ese maARM64 anoshanda masisitimu uye kuti kuoneka kwakawedzerwa kune router/proxy kukanganisa kutema mazinga.

Yeimwe shanduko izvo zvinoratidzika kubva pane iyi nyowani vhezheni:

  • Gadziridza CODEOWNERS
  • Batanidza dummy controller uye pg
  • Rena zita OP_* zvinogara zvichiitika kuOpCode* zvinogara
  • Natsiridza gopkg.in/yaml.v3
  • Bump gopkg.in/yaml.v3 in tools
  • Gadzira Type Path
  • Panic muhurongwa husingatarisirwi
  • Wedzera mamwe makomendi kune mabasa uye akasiyana
  • Bvisa kodhi yakafa

Finalmente kana iwe uchifarira kuziva zvakawanda nezvazvo, unogona kutarisa ruzivo Mune inotevera chinongedzo.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako