Skip to content

Generate entities, usecases, repos, and interfaces from SQL table.

Notifications You must be signed in to change notification settings

febriliankr/entable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entable

Generate entity and repo pattern CRUD from PostgreSQL table.

Copy and paste your table schema to {table_name}.txt file and run go run main.go table_name.txt.

The program will generate in "generated" folder, with interfaces, entities, repos, and usecases.

Example Usage

You can try this live.

go run main.go example/blog_post.txt

Generated Files

Entities

Entities

Interfaces

Interfaces

Repo

Repo

Usecase

Usecase

About

Generate entities, usecases, repos, and interfaces from SQL table.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published