Jinzhu
|
3cfa19b761
|
Move all chain method to main.go
|
2013-11-16 11:36:30 +08:00 |
Jinzhu
|
85109e104e
|
Rename some interfaces
|
2013-11-16 08:15:21 +08:00 |
Jinzhu
|
52fd87c57b
|
Define some error codes
|
2013-11-15 18:36:39 +08:00 |
Jinzhu
|
e0b90d9770
|
Remove unnecessary exported method
|
2013-11-15 13:30:31 +08:00 |
Jinzhu
|
2d34ecd6a9
|
Refact Code
|
2013-11-15 11:36:27 +08:00 |
Jinzhu
|
c354b0fb06
|
Refact field struct
|
2013-11-14 22:12:32 +08:00 |
Jinzhu
|
e4612bde9c
|
Separate Field Struct
|
2013-11-14 21:26:02 +08:00 |
Jinzhu
|
c1c13129f1
|
Finish dialects
|
2013-11-14 19:09:27 +08:00 |
Jinzhu
|
84646b8db9
|
Add method UpdateColumn, DropColumn, AddIndex, RemoveIndex. Will document it to README when get a better implementation to fix known issues
|
2013-11-14 10:30:32 +08:00 |
Jinzhu
|
5341a5ed43
|
clean up code
|
2013-11-12 21:04:48 +08:00 |
Jinzhu
|
b22289b249
|
Clean up more code
|
2013-11-11 22:58:12 +08:00 |
Jinzhu
|
788da015d1
|
Clean up code
|
2013-11-11 21:57:29 +08:00 |
Jinzhu
|
aaa73fe21d
|
Document transaction for callbacks
|
2013-11-11 19:38:52 +08:00 |
Jinzhu
|
ce91468922
|
Make Save, Delete, Updates be executed in transaction to keep data consistency
|
2013-11-11 18:40:02 +08:00 |
Jinzhu
|
f2c7beb19f
|
Better default logger
|
2013-11-11 17:16:15 +08:00 |
Jinzhu
|
32562b5537
|
Better Log support
|
2013-11-11 15:48:31 +08:00 |
Jinzhu
|
0327deec14
|
Cleanup some codes
|
2013-11-11 13:53:04 +08:00 |
Jinzhu
|
1c49c4ef85
|
Don't copy unnecessary variables
|
2013-11-11 13:40:35 +08:00 |
Jinzhu
|
d550315548
|
Add Transaction Support
|
2013-11-11 13:16:24 +08:00 |
Jinzhu
|
50a1b6e3e5
|
show sql query log
|
2013-11-11 11:59:15 +08:00 |
Jinzhu
|
874856a592
|
Cleanup unused code
|
2013-11-10 23:07:09 +08:00 |
Jinzhu
|
0cb1c1ba32
|
Remove unnecessary field
|
2013-11-10 22:29:53 +08:00 |
Jinzhu
|
f82d036f14
|
Better support for sql.Scanner
|
2013-11-10 19:38:28 +08:00 |
Jinzhu
|
8e0b125cb1
|
Support sql.Scanner
|
2013-11-10 18:33:37 +08:00 |
Jinzhu
|
dc15849313
|
Don't suppose id's value as int
|
2013-11-10 10:09:57 +08:00 |
Jinzhu
|
328e9401a0
|
Handle sql.NullValues in search conditions
|
2013-11-10 09:41:39 +08:00 |
Jinzhu
|
562bca71e4
|
Try to add support for NullInt64
|
2013-11-10 08:14:41 +08:00 |
Jinzhu
|
913757c103
|
Ignore those fields don't have valid sql type when auto migrate
|
2013-11-07 13:21:19 +08:00 |
Jinzhu
|
9b27735464
|
Add AutoMigrate Support
|
2013-11-07 11:42:36 +08:00 |
Jinzhu
|
5da8461161
|
auto migrate
|
2013-11-07 09:09:54 +08:00 |
Jinzhu
|
da6ffd52dd
|
Add Method SingularTable
|
2013-11-06 21:43:41 +08:00 |
Jinzhu
|
2400a46ff7
|
Set associated struct's value after save even they are not pointer
|
2013-11-06 08:03:39 +08:00 |
Jinzhu
|
619ae6549d
|
Fix error when handle relations
|
2013-11-05 22:34:49 +08:00 |
Jinzhu
|
98869cb124
|
Add Method Related to find associations
|
2013-11-05 07:46: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
|
aa352d405b
|
Make save sub structs works
|
2013-11-02 20:05:05 +08:00 |
Jinzhu
|
5b671a84b6
|
Error message when set primary key
|
2013-11-02 18:25:01 +08:00 |
Jinzhu
|
b9f4a59772
|
Save substructs successfully
|
2013-11-02 17:31:55 +08:00 |
Jinzhu
|
8c36a5d193
|
Cache fields
|
2013-11-02 15:17:11 +08:00 |
Jinzhu
|
28b49124eb
|
Handle SubStruct
|
2013-11-02 14:29:39 +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
|
724ffec683
|
Add Method Not
|
2013-10-31 17:31:00 +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
|
688e992266
|
Add method Assign
|
2013-10-31 08:15:19 +08:00 |