Skip to content

Output directory structure

When you run no-orm generate, the outputted files will follow this file structure:

  • Directoryno-orm
    • Directorypublic A directory for each schema in your database.
      • Directorytables A list of tables defined in your schema.
        • penguins.ts The heart of no-orm.
        • flight_attempts.ts Contains types and CRUD methods.
        • other tables
      • Directorydomains Postgres domains defined in your schema.
        • schemas.ts
        • types.ts
      • Directoryenums Postgres enums defined in your schema.
        • schemas.ts
        • types.ts
      • Directoryranges Postgres ranges defined 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.