Skip to content

x-tool/odm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xodm - sql & nosql odm

xodm is a pure Go odm for SQL or NoSQL. xodm is different from other orm or odm because it make for compatible SQL or NoSQL to simplify develop.

Five Seconds Learn

client := NewClient("postgresql", connectionConf)
db := client.Database()
// sync cols to database
db.RegisterCols(new(myDoc))
db.SyncCols()

testInsert := new(myDoc)
testInsert.Name = "haha,I get"
_, err := db.Insert(testInsert)

Percentage of progress

65%

Features

  • JSON support, You can get field in struct from database simple.
  • Usual Mode.
  • I will add more Features :)

Support database

xodm only support postgresql now, it may support orther database future.

  • postgresql -- github.com/jackc/pgx

Todo

  • fix bugs

Performance

Use reflect package. I don't think performance beautiful. but it write for develop simple.

About

xodm - sql & nosql odm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages