전체 글
-
Designing Database : Database RelationshipsDatabase 2024. 2. 13. 17:02
관계형 데이터베이스에서 Relationship의 3가지 타입을 정리하였습니다. What are relationships? A database relationship establishes the way in which connected tables are dependent on one another. What are the different types of database relationships? There are three types: one-to-one, one-to-many and many-to-many. : The lines between tables connect foreign keys and primary keys. In a one-to-one relationsh..
-
Designing Database : Database KeysDatabase 2024. 2. 6. 16:40
Database에서 데이터의 효율적인 정의와, 각 테이블간의 관계 설정에 사용되는 Key 키워드 사용에 대해 정리하였습니다. Will learn how to designate certain columns of a database table as keys. What are keys? A database key is a column or group of columns in a table that uniquely identifies a row in a table. Keys enable a database designer to place constraints on the data in a table. We want to enforce d..
-
Designing Database : Database SchemaDatabase 2024. 1. 11. 15:07
데이터베이스를 만들기 전에, 어떻게 개요를 잡을지에 대한 방법을 정리하였습니다. Like an architectural blueprint, a database schema is documentation that helps its audience such as a database designer, administrator and other users interact with a database. It gives an overview of the purpose of the database along with the data that makes up the database, how the data is organized into tables, how the tables are i..
-
Custom DecoratorsNode.js/Nest 2023. 12. 8. 17:29
Nest.js의 Custom Decorators에 대해 정리하였습니다. You can create your own custom decorators. Ex : @User( ) decorator In the node.js world, it's common practice to attach properties to the request object. Then you manually extract them in each route handler, using code like the following: const user = req.user; In order to make your code more readable and transparent, you can create a ..
-
GuardsNode.js/Nest 2023. 11. 21. 15:31
Nest.js의 Guards에 대해 정리하였습니다. Guards have a single responsibility. They determine whether a given request will be handled by the route handler or not, depending on certain conditions (like permissions, roles, ACLs, etc.) present at run-time. This is often referred to as authorization. A guard is a class annotated with the @Injectable( ) decorator, which implements the CanActivate inter..
-
PipesNode.js/Nest 2023. 11. 13. 17:50
Nest.js의 Pipes에 대해 정리하였습니다. A pipe is a class annotated with the @Injectable( ) decorator, which implements the PipeTransform interface. pipes operate on the arguments and have two typical use cases: transformation: transform input data to the desired form (e.g., from string to integer) validation: evaluate input data and if valid, simply pass it through unchanged; otherwise, throw an ..
-
Exception FiltersNode.js/Nest 2023. 10. 30. 16:52
Nest.js의 Exception Filters에 대해 정리하였습니다. Nest comes with a built-in exceptions layer which is responsible for processing all unhandled exceptions across an application. When an exception is not handled by your application code, it is caught by this layer, which then automatically sends an appropriate user-friendly response. : Out of the box, this action is performed by a bui..
-
MiddlewaresNode.js/Nest 2023. 10. 18. 17:22
Nest.js의 Middlewares에 대해 정리하였습니다. Middleware is a function which is called before the route handler. Middleware functions have access to the request and response objects, and the next() middleware function in the application’s request-response cycle. The next middleware function is commonly denoted by a variable named next You implement custom Nest middleware in either a function..