맛보기 — 눌러서 들어 보세요A taste — tap to hear it
맛보기는 앞 두 장입니다. 모든 장은 책에 있습니다.
-
데이터 (자료)deiteo
data데이터
나중에 다시 쓰려고 적어 둔 사실Facts written down so they can be used again later
데이터는 적어 둔 사실이다.Data is facts written down.
-
데이터베이스deiteobeiseu
database데이터베이스
함께 쓰이는 데이터를 한곳에 모아 규칙대로 지키는 곳One place that holds data used together and keeps it by rules
데이터베이스에 한곳으로 모아 둔다.Gather it in one database.
-
레코드 (한 건)rekodeu
record레커드
한 가지 일을 적은 한 묶음 — 표에서는 한 행One bundle written about one thing; in a table, one row
한 건을 한 행으로 적는다.Write one record as one row.
-
데이터 집합deiteo jipap
dataset데이터셋
같은 꼴로 모인 데이터 한 벌One set of data gathered in the same shape
데이터 집합을 한 벌 받는다.Take one dataset.
-
단일 파일 (평평한 파일)danil pail
flat file플랫 퐈일
줄과 칸만 있고 규칙은 없는 데이터 파일A data file with lines and fields but no rules
평평한 파일에는 지킬 규칙이 없다.A flat file has no rules to keep.
-
CSV (쉼표로 나눈 파일)CSV
csv씨에스븨
값을 쉼표로 나눠 적은 평평한 파일A flat file whose values are separated by commas
CSV 로 주고받는다.Pass it as CSV.
-
데이터베이스 관리 시스템 (DBMS)deiteobeiseu gwalli siseutem
database management system데이터베이스 매너지먼트 시스텀
데이터를 담고 묻고 지키는 일을 맡은 프로그램The program that stores data, answers questions, and protects it
관리 시스템이 규칙을 대신 지킨다.The management system keeps the rules for you.
-
데이터베이스 파일deiteobeiseu pail
database file데이터베이스 퐈일
표와 인덱스와 스키마가 모두 들어 있는 한 파일The one file holding every table, index and schema
데이터베이스 파일 하나만 옮기면 된다.Moving the one database file is enough.
-
SQL (구조화 질의 언어)SQL
sql에스큐엘
데이터를 담고 묻고 고치는 데 쓰는 표준 말The standard language for storing, asking about and changing data
SQL 로 묻는다.Ask in SQL.
-
SQLiteSQLite
sqlite에스큐엘라잇
프로그램 안에 들어가 파일 하나를 데이터베이스로 쓰는 엔진An engine that goes inside a program and uses one file as the database
SQLite 는 프로그램 안에서 돈다.SQLite runs inside the program.
-
문장 (명령문)munjang
statement스테잇먼트
한 가지 일을 시키는 SQL 한 덩어리One piece of SQL that asks for one thing to be done
문장 하나로 한 가지 일을 시킨다.One statement asks for one thing.
-
쿼리 (질의)kwori
query쿠에리
데이터에게 던지는 물음 — 답으로 행을 받는다A question put to the data; rows come back as the answer
쿼리를 던져 행을 받는다.Send a query and get rows.
-
키워드 (예약어)kiwodeu
keyword키워드
SQL 이 뜻을 미리 정해 둔 말A word SQL has already given a meaning to
키워드는 이름으로 쓰지 않는다.Do not use a keyword as a name.
-
세미콜론semikollon
semicolon세미코울런
문장이 끝났음을 알리는 쌍점 — 이게 있어야 실행된다The mark that says a statement has ended, so it can run
세미콜론을 빼면 아직 안 끝난 셈이다.Leave out the semicolon and it has not ended.
-
결과 집합gyeolgwa jipap
result set리절트 셋
쿼리가 돌려준 행의 묶음The bundle of rows a query gives back
결과 집합이 비어 있을 수도 있다.The result set may be empty.
-
셸 (명령 창)syel
shell셸
데이터베이스에 문장을 직접 쳐 넣어 보는 도구The tool for typing statements straight into a database
셸에서 먼저 쳐 본다.Try it in the shell first.
-
점 명령jeom myeongnyeong
dot command닷 커맨드
셸에만 있는, 점으로 시작하는 도구 명령A tool command of the shell itself, starting with a dot
점 명령으로 표 목록을 본다.List the tables with a dot command.
-
연결yeongyeol
connection커넥션
프로그램이 데이터베이스 파일을 열어 둔 상태A program holding a database file open
연결은 쓰고 나서 닫는다.Close the connection when done.
-
영속성 (남아 있음)yeongsokseong
persistence퍼시스턴스
프로그램이 꺼져도 데이터가 그대로 남는 성질Data staying as it is even after the program stops
영속성이 있어 꺼도 남는다.It has persistence, so it stays after a stop.
-
메모리 데이터베이스memori deiteobeiseu
in-memory database인-메모리 데이터베이스
파일 없이 기억 장치에만 두는 데이터베이스 — 끄면 사라진다A database kept only in memory, with no file: it is gone when you stop
시험할 때는 메모리 데이터베이스를 쓴다.Use an in-memory database for tests.
-
스키마 (틀)seukima
schema스키마
어떤 표에 어떤 열이 있는지 적어 둔 설계The design that says which tables hold which columns
스키마를 먼저 그린다.Draw the schema first.
-
메타데이터 (데이터에 대한 데이터)metadeiteo
metadata메타데이터
데이터의 꼴·이름·규칙을 적은 데이터Data that records the shape, names and rules of data
메타데이터에 표의 꼴이 적혀 있다.The metadata records the shape of the table.
-
내장 데이터베이스naejang deiteobeiseu
embedded database임베디드 데이터베이스
따로 돌지 않고 프로그램 안에 들어가 도는 데이터베이스A database that runs inside the program instead of on its own
내장 데이터베이스는 띄울 것이 없다.An embedded database has nothing to start.
-
서버 없음seobeo eopseum
serverless써버리스
따로 띄울 서버 프로그램이 없는 방식A way of working with no separate server program to start
서버 없음이라 포트도 없다.Serverless, so there is no port either.
-
한 파일han pail
single file싱글 퐈일
데이터베이스 전체가 파일 하나인 것The whole database being one file
한 파일이라 옮기기 쉽다.One file, so it is easy to move.
-
설정 없음seoljeong eopseum
zero configuration지로우 컨퓌겨레이션
깔거나 맞출 것 없이 바로 쓰는 것Nothing to install or set up before use
설정 없음으로 바로 시작한다.Start right away with zero configuration.
-
클라이언트-서버keullaieonteu-seobeo
client-server클라이언트-써버
서버 프로그램에 여러 프로그램이 붙어 쓰는 방식A way where many programs connect to one server program
클라이언트-서버는 서버를 먼저 띄운다.Client-server starts the server first.
-
라이브러리raibeureori
library을라이브러리
다른 프로그램이 불러 쓰는 코드 묶음A bundle of code other programs call
라이브러리로 불러 쓴다.Call it as a library.
-
퍼블릭 도메인 (저작권 포기)peobeullik domein
public domain퍼블릭 도우메인
누구나 아무 데나 쓸 수 있게 풀어 둔 것Released so anyone may use it anywhere
퍼블릭 도메인이라 값이 없다.It is public domain, so it costs nothing.
-
파일 형식pail hyeongsik
file format퐈일 포어맷
파일 안에 바이트가 놓이는 규칙The rule for how bytes sit inside the file
파일 형식은 오래 그대로다.The file format stays the same for a long time.
-
플랫폼 공통peullaetpom gongtong
cross-platform크라스-플랫포엄
기계와 운영 체제가 달라도 같은 파일이 열리는 것The same file opening on different machines and systems
플랫폼 공통이라 같은 파일이 열린다.Cross-platform: the same file opens.
-
하위 호환hawi hohwan
backward compatibility배쿼드 컴패터빌러티
새 판이 옛 파일과 옛 코드를 그대로 받아 주는 것A new version still taking old files and old code
하위 호환이 지켜져 옛 파일도 읽힌다.Backward compatibility is kept, so old files still read.
-
장기 지원janggi jiwon
long-term support을렁-텀 서포엇
오래 뒤까지 고쳐 주고 읽어 준다는 약속A promise to keep fixing and reading it far into the future
2050년까지 장기 지원을 약속했다.Long-term support is promised to 2050.
-
테스트 묶음teseuteu mukkeum
test suite테스트 스위트
고칠 때마다 돌려 보는 많은 시험의 묶음The large bundle of tests run on every change
테스트 묶음을 고칠 때마다 돌린다.The test suite runs on every change.
-
합본 소스hapbon soseu
amalgamation어맬거메이션
코드 전체를 한 파일로 모아 둔 것The whole source gathered into one file
합본 소스 한 파일만 넣는다.Just add the one amalgamation file.
-
읽는 쪽ingneun jjok
reader리더
데이터를 읽기만 하는 연결A connection that only reads
읽는 쪽은 여럿이어도 된다.There may be many readers.
-
쓰는 쪽sseuneun jjok
writer라이터
데이터를 고치는 연결A connection that changes data
쓰는 쪽은 한 번에 하나다.One writer at a time.
-
쓰기 잠금sseugi jamgeum
write lock라이트 을락
한 번에 하나만 쓰도록 걸어 두는 자리The hold that lets only one writer at a time
쓰기 잠금을 기다린다.Wait for the write lock.
-
동시 처리 한계dongsi cheori hangye
concurrency limit컨커런시 리밋
같이 쓸 수 있는 수가 어디까지인지How many can work at the same time
동시 처리 한계를 미리 알아 둔다.Know the concurrency limit beforehand.
-
복사로 백업boksaro baegeop
backup by copy백업 바이 카피
파일을 복사하는 것이 곧 백업이 되는 것Copying the file being the backup itself
복사로 백업이 끝난다.Backup by copy is the whole of it.
-
안 맞는 자리an manneun jari
when not to use웬 낫 투 유스
여러 기계가 동시에 많이 쓰는 자리에는 맞지 않는 것It does not fit where many machines write at once
많은 기계가 같이 쓰는 자리는 안 맞는다.It does not fit where many machines share it.
-
차지하는 크기chajihaneun keugi
footprint풋프린트
코드와 기억 장치를 얼마나 쓰는지How much code and memory it takes
차지하는 크기가 작다.Its footprint is small.
-
Q데이터와 데이터베이스가 뭐가 달라?deiteowa deiteobeiseuga mwoga dalla?What is the difference between data and a database?왓 이즈 둬 디풔런스 비트윈 데이터 앤드 어 데이터베이스
A데이터는 적어 둔 사실이고, 데이터베이스는 그 사실을 규칙대로 지켜 주는 곳이야.deiteoneun jeogeo dun sasirigo, deiteobeiseuneun geu sasireul gyuchikdaero jikyeo juneun gosiya.Data is facts written down; a database is the place that keeps those facts by rules.데이터 이즈 퐥츠 리튼 다운 어 데이터베이스 이즈 둬 플레이스 됏 킵스 되우즈 퐥츠 바이 룰즈
-
Q그냥 파일에 적으면 안 돼?geunyang paire jeogeumyeon an dwae?Why not just write it in a file?와이 낫 저스트 라이트 잇 인 어 퐈일
A평평한 파일은 규칙이 없어서, 같은 사실이 어긋나도 아무도 막아 주지 않아.pyeongpyeonghan paireun gyuchigi eopseoseo, gateun sasiri eogeunnado amudo maga juji ana.A flat file has no rules, so nobody stops the same fact from disagreeing with itself.어 플랫 퐈일 해즈 노우 룰즈 소우 노우바디 스탑스 둬 세임 팩트 프럼 디서그리잉 위드 잇셀픠
-
QCSV 로도 충분한 때가 있어?CSV rodo chungbunhan ttaega isseo?Is CSV ever enough?이즈 씨에스븨 에붜 이너픠
A한 번 주고받고 끝나는 자료면 충분해. 계속 고치고 찾을 자료면 데이터베이스가 나아.han beon jugobatgo kkeunnaneun jaryomyeon chungbunhae. gyesok gochigo chajeul jaryomyeon deiteobeiseuga naa.For data handed over once, yes. For data you keep changing and searching, a database is better.푀 데이터 핸디드 오우버 원스 예스 푀 데이터 유 킵 체인징 앤드 서칭 어 데이터베이스 이즈 베터
-
QSQL 은 어떤 말이야?SQL eun eotteon mariya?What kind of language is SQL?왓 카인드 어브 을랭궈지 이즈 에스큐엘
A무엇을 원하는지 적는 말이야. 어떻게 찾을지는 데이터베이스가 정해.mueoseul wonhaneunji jeongneun mariya. eotteoke chajeuljineun deiteobeiseuga jeonghae.A language for writing what you want; how to find it is up to the database.어 을랭궈지 푀 라이팅 왓 유 완트 하우 투 퐈인드 잇 이즈 업 투 둬 데이터베이스
-
Q문장 끝에 세미콜론은 왜 찍어?munjang kkeute semikolloneun wae jjigeo?Why the semicolon at the end of a statement?와이 둬 세미코울런 앳 둬 엔드 어브 어 스테잇먼트
A거기서 문장이 끝났다는 표시야. 안 찍으면 아직 더 쓰는 중으로 알아.geogiseo munjangi kkeunnatdaneun pyosiya. an jjigeumyeon ajik deo sseuneun jungeuro ara.It marks the end of the statement; without it, it thinks you are still typing.잇 마크스 둬 엔드 어브 둬 스테잇먼트 위다웃 잇 잇 씽크스 유 아 스틸 타이핑
-
Q쿼리를 던지면 뭐가 와?kworireul deonjimyeon mwoga wa?What comes back when I send a query?왓 컴즈 백 웬 아이 센드 어 쿠에리
A결과 집합이 와. 행이 하나도 없을 수도 있어.gyeolgwa jipabi wa. haengi hanado eopseul sudo isseo.A result set comes back; it may hold no rows at all.어 리절트 셋 컴즈 백 잇 메이 호울드 노우 로우즈 앳 오을
-
Q셸은 언제 써?syereun eonje sseo?When do I use the shell?웬 두 아이 유스 둬 셸
A앱에 넣기 전에 문장을 손으로 쳐 보고 결과를 눈으로 볼 때 써.aebe neoki jeone munjangeul soneuro chyeo bogo gyeolgwareul nuneuro bol ttae sseo.To type a statement by hand and see the result before putting it in an app.투 타입 어 스테잇먼트 바이 핸드 앤드 시 둬 리절트 비포어 퍼팅 잇 인 앤 앱
-
Q점 명령은 SQL 이야?jeom myeongnyeongeun SQL iya?Is a dot command SQL?이즈 어 닷 커맨드 에스큐엘
A아니야. 셸이라는 도구에만 있는 명령이라 앱 안에서는 안 돌아.aniya. syeriraneun dogueman inneun myeongnyeongira aep aneseoneun an dora.No. It belongs to the shell as a tool, so it does not run inside an app.노우 잇 빌롱즈 투 둬 셸 애즈 어 툴 소우 잇 더즈 낫 런 인사이드 앤 앱
-
Q데이터베이스 파일 안에는 뭐가 들어 있어?deiteobeiseu pail aneneun mwoga deureo isseo?What is inside the database file?왓 이즈 인사이드 둬 데이터베이스 퐈일
A표와 인덱스와 스키마가 다 들어 있어. 그래서 파일 하나만 옮기면 돼.pyowa indekseuwa seukimaga da deureo isseo. geuraeseo pail hanaman omgimyeon dwae.Every table, index and schema; that is why moving one file is enough.에붜리 테이블 인덱스 앤드 스키마 됏 이즈 와이 무뷩 원 퐈일 이즈 이너픠
-
Q스키마는 왜 먼저 정해?seukimaneun wae meonjeo jeonghae?Why fix the schema first?와이 퓍스 둬 스키마 풔스트
A무엇을 담을지 정해 놓으면, 틀린 데이터가 들어오는 걸 데이터베이스가 막아 줄 수 있어.mueoseul dameulji jeonghae noeumyeon, teullin deiteoga deureooneun geol deiteobeiseuga maga jul su isseo.Once what is held is decided, the database itself can block wrong data.원스 왓 이즈 헬드 이즈 디사이디드 둬 데이터베이스 잇셀픠 캔 블락 롱 데이터
-
Q메모리 데이터베이스는 어디에 써?memori deiteobeiseuneun eodie sseo?What is an in-memory database for?왓 이즈 앤 인-메모리 데이터베이스 푀
A시험할 때 써. 끄면 사라지니까 자리마다 깨끗하게 시작할 수 있어.siheomhal ttae sseo. kkeumyeon sarajinikka jarimada kkaekkeutage sijakal su isseo.For tests: it vanishes when you stop, so each run starts clean.푀 테스츠 잇 봬니쉬즈 웬 유 스탑 소우 이치 런 스타츠 클린
-
Q연결을 안 닫으면 어떻게 돼?yeongyeoreul an dadeumyeon eotteoke dwae?What if I never close a connection?왓 이픠 아이 네붜 클로우스 어 커넥션
A파일을 계속 잡고 있어서 다른 쪽이 못 쓸 수 있어.paireul gyesok japgo isseoseo dareun jjogi mot sseul su isseo.It keeps holding the file, so another side may not get in.잇 킵스 호울딩 둬 퐈일 소우 어너둬 사이드 메이 낫 겟 인
차례 — 17장Contents — 17 chapters
- 0데이터와 데이터베이스Data and the Database
- 1왜 SQLite 인가Why SQLite
- 2표로 담기Tables
- 3자료형과 빈칸Types and the Blank
- 4키Keys
- 5관계 맺기Making Relationships
- 6중복 없애기 — 정규화Removing Duplication: Normalization
- 7넣고 고치고 지우기Insert, Update, Delete
- 8찾기 — SELECT 와 WHEREAsking: SELECT and WHERE
- 9묶어 보기Grouping Things Up
- 10표를 잇기Joining Tables
- 11제약 — 틀린 데이터를 막기Constraints: Keeping Bad Data Out
- 12트랜잭션과 ACIDTransactions and ACID
- 13빠르게 — 인덱스와 쿼리 계획Fast: Indexes and the Query Plan
- 14지키기 — 백업과 마이그레이션Keeping It: Backup and Migration
- 15신뢰의 경계 — 주입과 바인딩The Trust Boundary: Injection and Binding
- 16AI 와 데이터 관리Managing Data with AI