yanfeng-ola / gola

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 96.5%Language:Makefile 3.5%