From 3e24b149064659910e8f9228ab1858d8f8330275 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Fri, 3 Jan 2014 14:54:47 +0800 Subject: [PATCH] Update TODO --- README.md | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3060c908..2dc4c115 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # GORM -Yet Another ORM library for Go, aims to be developer friendly. +The fantastic ORM library for Golang, aims to be developer friendly. ## Overview @@ -926,11 +926,37 @@ db.Where("email = ?", "x@example.org").Attrs(User{RegisteredIp: "111.111.111.111 ``` ## TODO -* Joins * Scan -* AlertColumn, DropColumn, AddIndex, RemoveIndex +* Support plugin + BeforeQuery + BeforeSave + BeforeCreate + BeforeUpdate + BeforeDelete + AfterQuery + AfterSave + AfterCreate + AfterUpdate + + SoftDelete + BeforeQuery + BeforeSave + BeforeDelete + + db.RegisterPlugin("xxx") + db.RegisterCallback("BeforeQuery", func() {}) + db.RegisterCallback("BeforeSave", func() {}) + db.RegisterFuncation("Search", func() {}) + db.Model(&[]User{}).Limit(10).Do("Search", "vip", "china") + db.Mode(&User{}).Do("EditForm").Get("edit_form_html") + + DefaultValue, DefaultTimeZone, R/W Splitting, Validation +* Getter/Setter + share or not? transaction? +* Github Pages +* Joins * Includes -* Validations +* AlertColumn, DropColumn, AddIndex, RemoveIndex # Author