Commit Graph

1781 Commits

Author SHA1 Message Date
Jinzhu 8a81711e41 Possible to search with interface map 2013-10-29 17:54:22 +08:00
Jinzhu c74af2210d Search with struct 2013-10-29 17:37:45 +08:00
Jinzhu fd3ed7ffaf Should fill data to smaller struct correctly 2013-10-29 16:11:51 +08:00
Jinzhu a11c9f9b1b Query with primary key map 2013-10-29 15:37:58 +08:00
Jinzhu 44b64ff74f Document Soft Delete and Unscoped in README 2013-10-29 11:01:51 +08:00
Jinzhu 68d3d134e6 Yay, Soft Delete works 2013-10-29 10:19:20 +08:00
Jinzhu 7e5dc40f6f Don't do real delete when deleted_at column exist 2013-10-29 09:01:48 +08:00
Jinzhu bc785a9173 Cleanup code 2013-10-29 08:41:07 +08:00
Jinzhu 84b280c0ff Yay, Add Update, Updates Support 2013-10-28 21:52:22 +08:00
Jinzhu 2a20e551ed Possible to specify table name 2013-10-28 20:27:25 +08:00
Jinzhu 3bd7daf889 Remove unnecessary exported fields 2013-10-28 15:55:45 +08:00
Jinzhu f4aa435446 Basic support for plurals 2013-10-28 15:49:05 +08:00
Jinzhu 2388dacfe3 Hidden unnecessary public fields 2013-10-28 12:52:06 +08:00
Jinzhu 5de6416354 Clean up dependencies 2013-10-28 12:46:50 +08:00
Jinzhu 592df904e2 Add tests to make sure no unexpected things happen with invalid SQL 2013-10-28 12:43:02 +08:00
Jinzhu 13a8d98d8f Add some tests for Error handling 2013-10-28 12:12:12 +08:00
Jinzhu 0906333291 Document error handling in README 2013-10-28 11:24:51 +08:00
Jinzhu c412729570 Update README 2013-10-28 10:10:02 +08:00
Jinzhu a81b9f3950 Update README 2013-10-28 09:18:34 +08:00
Jinzhu 7e68ad9773 Better README 2013-10-28 09:10:35 +08:00
Jinzhu 692b08a7be Update README 2013-10-28 08:08:45 +08:00
Jinzhu 66054f0957 Update README 2013-10-27 22:36:43 +08:00
Jinzhu cee203b0d3 Update README 2013-10-27 22:31:17 +08:00
Jinzhu c6638959cd Update README 2013-10-27 21:37:31 +08:00
Jinzhu f74c9015a1 Inline which condition for first/find 2013-10-27 20:54:56 +08:00
Jinzhu ec49f57394 Make Count works 2013-10-27 20:07:13 +08:00
Jinzhu f892a52cad Refact 2013-10-27 19:47:15 +08:00
Jinzhu f9658716e4 Fix error for chain query 2013-10-27 16:47:02 +08:00
Jinzhu 2600e1099e Add tests for callbacks 2013-10-27 16:08:07 +08:00
Jinzhu c5b0908b22 Yay, callbacks works 2013-10-27 15:24:01 +08:00
Jinzhu b551fee276 Add callbacks support 2013-10-27 14:51:23 +08:00
Jinzhu 97f234e481 yay, created_at, updated_at works 2013-10-27 14:34:34 +08:00
Jinzhu c3950eef38 orm.Errors to hold all errors happened, orm.Error store the last error 2013-10-27 13:37:23 +08:00
Jinzhu ea4dee3ba8 Remove method Not for less confuse 2013-10-27 12:33:38 +08:00
Jinzhu 2a08333bf6 Yay, Or works 2013-10-27 12:31:51 +08:00
Jinzhu 44c53f6dd5 Refact where method 2013-10-27 12:21:44 +08:00
Jinzhu 7948705181 Yay, Offset works 2013-10-27 11:44:47 +08:00
Jinzhu 32a996f738 Yay, Limit works 2013-10-27 11:38:05 +08:00
Jinzhu bba92226bd Yay, order works 2013-10-27 11:21:33 +08:00
Jinzhu 6511cad317 Make pluck works 2013-10-27 10:28:47 +08:00
Jinzhu 80a7e6296d Add method to do basic check for sql valid or not 2013-10-27 10:17:11 +08:00
Jinzhu dd719e4512 Support select 2013-10-27 09:50:11 +08:00
Jinzhu 334d05645f Add Pluck 2013-10-27 09:32:49 +08:00
Jinzhu 244b27a6a0 Refact main.go 2013-10-27 08:06:01 +08:00
Jinzhu 284cf3f649 Change internal API 2013-10-27 07:52:04 +08:00
Jinzhu 9d2f7650be Refact tests 2013-10-27 07:38:08 +08:00
Jinzhu aab4d773e4 Where In support more data types with reflect 2013-10-27 02:53:32 +08:00
Jinzhu 4587a8a686 yay, where in works 2013-10-27 02:53:31 +08:00
Jinzhu d18203ee62 Add some tests for time 2013-10-27 02:53:31 +08:00
Jinzhu 96128cdec3 Fix where chain 2013-10-27 02:53:31 +08:00