MongoDB 설치는 mongodb.com 참고하여 알아서 설치하자 MongoDB의 컬렉션에 데이터를 작성하기 위해선 데이터베이스 서버를 실행해야한다. # macos 기준 brew services start mongodb-community 몽고디비에 접속한다. 기본 포트는 27017이다. users 컬렉션에 데이터를 간단히 쓰고 읽어보자. $ mongo > show dbs admin 0.000GB config 0.000GB local 0.000GB > use users switched to db users > db.users.insertOne({ "name": "ABC", "age": 22 }) { "acknowledged" : true, "insertedId" : ObjectId("60fbd4a9bb1..
MongoDB는 NoSQL 중 하나로 MySQL 같은 관계형 데이터베이스에 비해 유연한 구조를 가지고 있다. 관계형 데이터베이스와 비교했을 때 아래의 구조를 가지고 있다. Database: 동일하게 Database Collection: Table Document: Row MongoDB는 Collection에 스키마가 없고, Document에 json 형태의 중첩된 데이터를 저장할 수 있다. 이 때문에 유연한 구조가 된 것이다. Document는 아래와 같이 저장된다. { "name": "Kook", "address": "Seoul ...", "hobbies": [ { "name": "game", "when": "after work" }, { "name": "travel", "when": "vacation..
- Total
- Today
- Yesterday
- MySQL
- @Component
- Linux
- unity
- mybatis
- Tasklet
- Closure
- thymeleaf 변수 인식
- spring batch
- Express
- spring
- Bean
- @Qualifier
- nodejs
- @Bean
- npm
- @Autowired
- JavaScript
- Bin
- Check point within polygon
- Barycentric coordinates
- thymeleaf cannot resolve
- chunk
- 클로저
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |