/type-safe-linq-ts

A small Type Safe LINQ system in TypeScript.

Primary LanguageTypeScriptMIT LicenseMIT

Type Safe LINQ in TypeScript

A small system in which data can be easily retrieved by querying in a type safe manner. This is the assignment regarding the third year minor Software Engineering at the Hogeschool Rotterdam.

Preface: Thinking out loud

Brainstorming

A proper way to start of this project is by brainstorming. In this session all problems, questions and thoughts were documented on paper to get a clearer view of the assignment.

Fase 1: Select

Category

The first step was to think in terms of a category. This category, in which there is movement by morphisms, has been carefully designed to be as simple as possible.


Query

The Query<a> type in more depth


SelectedQuery

The SelectedQuery<a,b> type in more depth


Fase 2: Include

Update Category

Updating the category by adding a new morphism: include: SelectedQuery -> SelectedQuery.


Update SelectedQuery

In order to add the include(), SelectedQuery<a,b> must be updated with this new functionality.