postgress-database Flashcards
1
Q
What is a database schema?
A
a schema describes the rules for how a table can be stored. it is actually the structure of the database
2
Q
What is a table?
A
table is a collection of rows, every row has the same attributes
3
Q
What is a row?
A
a collection of attributes for a single record in a table
4
Q
qna: what is full stack
A
full stack (real engineers call it 3 tier architecture)
- client, server, database
- loading from your api
- client (ex httpie) sends an http request to server (ex node/express)
-the server recieves a request and runs a function - that server function may send a query to a database (ex postgresSQL)
- the database replies to the server with a “result”
- the server then sends an HTTP response back to the client with data from “result”
- client -> req -> server -> query -> database -> result -> server -> response -> client