Commit Graph

193 Commits

Author SHA1 Message Date
Trevor Rosen 09334a8bb7 Remove typo from DB access example in README 2013-12-27 16:09:43 -06:00
Jinzhu e2f8d29d7f Add RecordNotFound tests for method Related 2013-12-23 21:15:09 +08:00
Jinzhu 90a4581a7f Use method DB() to get database connection handle 2013-12-04 14:29:44 +08:00
haoxin c37227346c Update README.md 2013-11-29 09:33:59 +08:00
Jinzhu 81a44f0283 Convert Tab to Spaces in README 2013-11-26 11:39:07 +08:00
Jinzhu 0e2bef7006 Add Method RecordNotFound() 2013-11-24 11:29:37 +08:00
Jinzhu 31c64a9c95 Transaction in callbacks 2013-11-24 08:31:44 +08:00
Jinzhu 660ee1ed73 Add Method NewRecord 2013-11-23 21:38:31 +08:00
Jinzhu 87f493d080 Add Scopes Support 2013-11-18 14:35:44 +08:00
Jinzhu 1a2eef181a Add Method UpdateColumn, UpdateColumns 2013-11-17 21:44:11 +08:00
Jinzhu 5411291173 Rename UpdateColumn to ModifyColumn 2013-11-17 20:38:43 +08:00
Jinzhu c62568c089 Make Exec possible to accepts arguments 2013-11-17 16:47:39 +08:00
Jinzhu b41f2957fb Add method Group, Having 2013-11-17 13:29:01 +08:00
Jinzhu 282b5d872c Document Row & Rows 2013-11-17 12:09:40 +08:00
Jinzhu 094a546815 Update README 2013-11-17 12:02:22 +08:00
Jinzhu 9a1c0d956d cache snake, upper values 2013-11-17 08:28:30 +08:00
Jinzhu 8fd8604a70 Support use variable to keep query chain 2013-11-16 22:42:00 +08:00
Jinzhu 52fd87c57b Define some error codes 2013-11-15 18:36:39 +08:00
Jinzhu 5a02c2ec27 Update README 2013-11-15 17:37:21 +08:00
Jinzhu 4e1e2a0fbb Update README 2013-11-15 17:27:16 +08:00
Jinzhu c1c13129f1 Finish dialects 2013-11-14 19:09:27 +08:00
Jinzhu c03999a44e Add Tag Support 2013-11-14 00:03:31 +08:00
Jinzhu 6b31a9a41f Use MIT License 2013-11-12 07:14:28 +08:00
Jinzhu 788da015d1 Clean up code 2013-11-11 21:57:29 +08:00
Jinzhu 23db784911 Update TODO 2013-11-11 19:46:04 +08:00
Jinzhu aaa73fe21d Document transaction for callbacks 2013-11-11 19:38:52 +08:00
Jinzhu 3d2128e743 Update README 2013-11-11 17:51:39 +08:00
Jinzhu c097a1919c Document Logger 2013-11-11 17:50:27 +08:00
Jinzhu d550315548 Add Transaction Support 2013-11-11 13:16:24 +08:00
Jinzhu 9e762a9a30 Try to add logger 2013-11-11 09:10:16 +08:00
Jinzhu f82d036f14 Better support for sql.Scanner 2013-11-10 19:38:28 +08:00
Jinzhu 272ad45943 update README 2013-11-07 12:23:45 +08:00
Jinzhu c192b86d9e Update README 2013-11-07 12:12:25 +08:00
Jinzhu 9b27735464 Add AutoMigrate Support 2013-11-07 11:42:36 +08:00
Jinzhu 6d7d892af7 Update README 2013-11-06 22:20:26 +08:00
Jinzhu c842d46b66 Add Support for TableName, used to specify struct's table name 2013-11-06 22:13:18 +08:00
Jinzhu da6ffd52dd Add Method SingularTable 2013-11-06 21:43:41 +08:00
Jinzhu 2f5991d088 Update Document For Related() 2013-11-05 08:08:42 +08:00
Jinzhu 98869cb124 Add Method Related to find associations 2013-11-05 07:46:06 +08:00
Jinzhu 0b22775dd7 Add support for sqlite3 2013-11-04 20:52:06 +08:00
Jinzhu 7a23685e0b Test with mysql 2013-11-04 20:32:46 +08:00
Jinzhu e78c10690b Add Last Method, And update README for method First, Find 2013-11-04 17:58:56 +08:00
Jinzhu 0c4e43cd7a Don't quote table names 2013-11-03 21:19:38 +08:00
Jinzhu 63a9e5e3ae Update README 2013-11-03 11:38:53 +08:00
Jinzhu 92f790c463 Update README 2013-11-03 11:32:25 +08:00
Jinzhu 8e3b1fd206 Update README 2013-11-03 10:49:09 +08:00
Jinzhu bd54a03505 Document SubStruct 2013-11-03 10:31:36 +08:00
Jinzhu e2927e1ec5 README 2013-11-03 10:18:16 +08:00
Jinzhu a135087af4 Better README 2013-11-03 10:09:56 +08:00
Jinzhu b4981259de Update README 2013-11-02 22:58:15 +08:00
Jinzhu 49cfb0d4a0 Add DropTable 2013-11-01 15:01:39 +08:00
Jinzhu c387c7d9ba Polish The Not Method 2013-10-31 22:49:48 +08:00
Jinzhu 8a030c99eb Document Method Not 2013-10-31 18:12:18 +08:00
Jinzhu 549c7450ea Make it easy when only change one field with Attr, Assign 2013-10-31 12:59:04 +08:00
Jinzhu 0e692a13b1 Document Method Assign 2013-10-31 09:34:27 +08:00
Jinzhu 31b4baba6f Make Updates accept struct other than map[string]interface{} 2013-10-31 08:29:57 +08:00
Jinzhu 721090d39a Document Attrs in README 2013-10-30 15:40:18 +08:00
Jinzhu e250637d12 Document FirstOrInit, FirstOrCreate 2013-10-29 20:32:27 +08:00
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 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 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 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 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 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 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 bba92226bd Yay, order works 2013-10-27 11:21:33 +08:00
Jinzhu dd719e4512 Support select 2013-10-27 09:50:11 +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 09b6fc3ab0 Fix some bugs about Update and Delete 2013-10-26 23:33:04 +08:00
Jinzhu f4f7e44199 yay, update works 2013-10-26 21:37:42 +08:00
Jinzhu cef81cba11 Fill up id after create record 2013-10-26 20:26:06 +08:00
Jinzhu 3c68efc94a Support create table with struct 2013-10-26 17:30:34 +08:00
Jinzhu 1ddc8e3984 Update README 2013-10-26 15:18:44 +08:00
Jinzhu fb3da1f963 Add whereSql for orm object 2013-10-26 14:10:47 +08:00
Jinzhu 69d8c85375 Initialize with README 2013-10-25 16:24:32 +08:00