Skip to content

yanghua-ola/gola

 
 

Repository files navigation

Builds status Coverage Go Report Card GitHub go.mod Go version GitHub repo size GitHub issues GitHub pull requests GitHub

gola

gola is a ORM for go utilizing generic with unique design goals.

Test

go test command will:

  • Use testdata sql to create tables on the fly
  • Do code generation for tables
  • Compare with testdata/*.go
  • Report error if file not matching

Use go test -update, if template is changed, and want to update testdata/*.go

Todo

  • CURD
    • Insert
    • Update
    • Delete
  • Connection Pool
    • Default & per struct connstr
  • Safety
    • SQL escape
    • parameterize
  • code gen template
    • struct
    • index query methods
      • index
      • uniuqe index
      • paging & order
  • better primary key support
    • Single Key types / names
    • Composite key
  • db types
    • timestamp
    • float
    • enum
    • set
  • Remove sqlboiler dependency in code gen
  • Project badges
  • Tests
    • Use sql to create table & insert testdata
    • Performance test
  • context support
  • transaction support
  • Non-generice version?
  • zero reflect verison?
  • Embed groupcache
  • docs & docs & docs...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%