Commit Graph

2478 Commits

Author SHA1 Message Date
Jinzhu 3d50000094 Add some delete tests 2013-10-26 21:51:44 +08:00
Jinzhu f4f7e44199 yay, update works 2013-10-26 21:37:42 +08:00
Jinzhu 91ad8a0459 Refact tests 2013-10-26 21:05:54 +08:00
Jinzhu 2f4945dc35 Add method PrimaryKeyIsEmpty for model 2013-10-26 20:53:21 +08:00
Jinzhu cef81cba11 Fill up id after create record 2013-10-26 20:26:06 +08:00
Jinzhu a7f62c24b0 yay, support primary key 2013-10-26 17:56:00 +08:00
Jinzhu 3c68efc94a Support create table with struct 2013-10-26 17:30:34 +08:00
Jinzhu 73cac58998 Move get table name methods to model.go 2013-10-26 16:33:59 +08:00
Jinzhu 5cfad9d35b Add model.go file 2013-10-26 16:29:53 +08:00
Jinzhu 95b7263ec7 Add SQL Types 2013-10-26 16:01:15 +08:00
Jinzhu 70315e8fed Create table method 2013-10-26 15:47:30 +08:00
Jinzhu 1ddc8e3984 Update README 2013-10-26 15:18:44 +08:00
Jinzhu 03f7bbfe74 When search one record, should return error when nothing found 2013-10-26 15:02:14 +08:00
Jinzhu e935b4772b Implement method interface to table name 2013-10-26 14:42:14 +08:00
Jinzhu 9ef4a2669c Add some utils methods stolen from hood 2013-10-26 14:25:03 +08:00
Jinzhu fb3da1f963 Add whereSql for orm object 2013-10-26 14:10:47 +08:00
Jinzhu 3e7e110590 Can't believe this, Find works! 2013-10-26 12:33:05 +08:00
Jinzhu 0491675ae8 Break find code into sql.go file 2013-10-26 11:59:58 +08:00
Jinzhu 69f53a4b41 yay, find from db works 2013-10-26 11:48:07 +08:00
Jinzhu 0b1facc513 Yay, users inserted 2013-10-26 10:15:09 +08:00
Jinzhu c26e10813d quote map for utils 2013-10-26 10:06:57 +08:00
Jinzhu 11758c647f Add some utils 2013-10-26 09:49:40 +08:00
Jinzhu 540345f552 Add more dummy code for orm.go 2013-10-26 07:14:57 +08:00
Jinzhu 7f9d486d5a Initialize the tests 2013-10-25 22:31:56 +08:00
Jinzhu b4031e004a Add two more APIs 2013-10-25 21:11:29 +08:00
Jinzhu 7f73480a35 Build basic architecture 2013-10-25 18:31:10 +08:00
Jinzhu 2d6fa2c96d init files 2013-10-25 18:04:48 +08:00
Jinzhu 69d8c85375 Initialize with README 2013-10-25 16:24:32 +08:00