본문 바로가기

창고 331

몽고 DB 기초 3 CRUD in MongoDB Inserting, searching, updating, and deleting are asynchronous actions in database. The 'done' callback function should be called once the asynchronous operations are done. // done callback convention in Node.js const doSomething = function (done) { if (err) return done(err) done(null, result) } Types of Mongoose CRUD methods are as follows(cb : short for callback) : mongoose.Sche.. 2022. 1. 6.
몽고 DB 기초 2 Schema, Collection, And Model In creating database, the first thing we need is to create a schema. Each schema maps to a MongoDB collection. Schema => Collection => Model ===(instantiation)===> Document In MongoDB, a lot of databases can exist. Choose the one that you need and connect it using mongoose. Database is structured as follows What is schema? Model : a list of concepts describing data(.. 2022. 1. 5.
몽고 DB 기초 1 MongoDB is a NO-SQL database that stores JSON documents. Mongoose is a npm package used to control MongoDB with Javascript, creating schemas. SQL : saving all data across tables NO-SQL : saving all data within one record MongoDB has a merit combinated with Javascript that its format is JSON, which is Javascript Object Notation. Web - Server - Database Web client : HTML, CSS, Javascript Web serve.. 2022. 1. 4.
git commit 취소하는 법, git push 취소하는 법, git 폴더명 변경하기 Undoing commit and push Troubleshoting done by Paragraph edited and translated by See JS debugging tutorial in YouTube During this YouTube tutorial, I had encountered one github troubleshooting. A commit for image file had been placed in javascript code, not the original image one. Undoing a git push I made had always been a unwelcome guest so I decided to face it and figure out this time. How t.. 2022. 1. 4.
git pull request 단계별 연습하기 How to do git pull request Check a task given and ellaborate in Github issue : set label and assignee Create a branch and move to the branch with : git branch -b myBranch Add changes, commit, and push to the branch Github will automatically sense the push and let you know about the change like below Open a pull request and compare the two branches : 1) main 2) newly created branch. Explain why i.. 2022. 1. 3.
블록체인 합의 알고리즘 컨셉 Golang 데모 : Proof of Safe Number package main import ( "fmt" "log" "math" "math/rand" "time" ) func main() { // Create a safe and safeNumber. mySafe := safe{} mySafeNumber := safePassword{} // Enter a user name, NFT token ID, and locktime to store. // Exmaple - owner: jonghyun, lock_time: 20210615, token_id: goBlock fmt.Println("유저 네임을 입력하세요: ") fmt.Scanln(&mySafeNumber.owner) fmt.Println("저장할 NFT 토큰 ID를 입력하세요: ") fmt.Scanln(&m.. 2021. 12. 31.

loading