Output directory structure
When you run no-orm generate, the outputted files will follow this file structure:
Generated output structure
Section titled “Generated output structure”Directoryno-orm
Directorypublic A directory for each
schemain your database.Directorytables A list of
tablesdefined in your schema.- penguins.ts The heart of
no-orm. - flight_attempts.ts Contains types and CRUD methods.
- … other tables
- penguins.ts The heart of
Directorydomains Postgres
domainsdefined in your schema.- schemas.ts
- types.ts
Directoryenums Postgres
enumsdefined in your schema.- schemas.ts
- types.ts
Directoryranges Postgres
rangesdefined in your schema.- schemas.ts
- types.ts
Directorypostgres General helpers relating to your database.
- schemas.ts
- serializers.ts
- types.ts
Directoryslonik General helpers relating to your Slonik setup.
- type-parsers.ts
Directory…/ Other schemas
- …
To see exactly what is in these files, run no-orm and poke around.
The rest of the basics will cover what is in the table modules.