2023/02/07 14

Day16-2 MongoDB mongosh를 이용한 CRUD

CRUD Operations Create Operations 컬렉션에 새로운 도큐먼트를 추가하는 연산 db.collection.insertOne() db.collection.insertMany() Read Operations 컬렉션에서 도큐먼트를 조회하는 연산 db.collection.find() 도큐먼트를 식별할 수 있는 쿼리 필터나 기준을 지정할 수 있음 Update Operations 컬렉션에 존재하는 도큐먼트를 수정하는 연산 db.collection.updateOne() db.collection.updateMany() db.collection.replaceOne() Delete Operations 컬렉션에서 도큐먼트를 제거하기 위한 연산 db.collection.deleteOne() db.coll..

Day16-1 MongoDB 정의, 기본 개념

NoSQL "Not Only SQL" or "Not SQL" 관계형이 아닌 DBMS 빅데이터와 실시간 웹 애플리케이션에 사용됨 Twitter, Facebook, Google 등은 매일 거대한 양의 사용자 데이터를 수집 데이터 구조에 따른 분류 Key-Value Store 시스템이 단순하여 속도가 매우 빠르고 확장도 상대적으로 용이함 기본 자료 구조는 dictionary 또는 map Oracle NoSQL, Redis, Amazon Dynamo 기본적인 CRUD(Create, Read, Update, Delete) 연산에서는 우수하지만, 고급 쿼리를 수행하는 것은 어려움. Document-Based Store Key value의 쌍으로 데이터를 저장하고 검색 Document는 JSON 형태로 저장 블로깅 ..

Day16-0 MongoDB Conpass 설치하기

mongoDB Community Server 다운로드 https://www.mongodb.com/try/download/community 환경 변수 설정 설치된 위치 C:\Program Files\MongoDB\Server\6.0\bin를 시스템 변수 Path에 추가 mongodb-database-tools-windows-x86_64-100.6.1 폴더의 bin 파일에있는 exe파일 모두 Program Files - mongoDB - Server - 6.0 - bin 파일에 복사 붙여넣기 mongosh를 Program Files - mongoDB - Server - 6.0 - bin 파일에 복사 붙여넣기 mongodb를 command창에서 실행하기 cmd창에서 mongosh

Day12-2 게시판 관리 프로그램 MVC 패턴으로 MySQL연결

UserDTO package model; public class UserDTO { private int id; private String username; private String password; private String nickname; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void se..