Commit Graph

  • b22289b249 Clean up more code Jinzhu 2013-11-11 22:27:17 +08:00
  • 788da015d1 Clean up code Jinzhu 2013-11-11 21:55:44 +08:00
  • 23db784911 Update TODO Jinzhu 2013-11-11 19:46:04 +08:00
  • aaa73fe21d Document transaction for callbacks Jinzhu 2013-11-11 19:06:26 +08:00
  • ce91468922 Make Save, Delete, Updates be executed in transaction to keep data consistency Jinzhu 2013-11-11 18:40:02 +08:00
  • 3d2128e743 Update README Jinzhu 2013-11-11 17:51:39 +08:00
  • c097a1919c Document Logger Jinzhu 2013-11-11 17:50:27 +08:00
  • f2c7beb19f Better default logger Jinzhu 2013-11-11 17:16:15 +08:00
  • 32562b5537 Better Log support Jinzhu 2013-11-11 15:48:31 +08:00
  • 0327deec14 Cleanup some codes Jinzhu 2013-11-11 13:53:04 +08:00
  • 1c49c4ef85 Don't copy unnecessary variables Jinzhu 2013-11-11 13:40:35 +08:00
  • d550315548 Add Transaction Support Jinzhu 2013-11-11 13:16:08 +08:00
  • 50a1b6e3e5 show sql query log Jinzhu 2013-11-11 11:53:56 +08:00
  • 9bc11d6637 Support Logger Jinzhu 2013-11-11 11:11:49 +08:00
  • 9e762a9a30 Try to add logger Jinzhu 2013-11-11 09:05:14 +08:00
  • 874856a592 Cleanup unused code Jinzhu 2013-11-10 23:07:09 +08:00
  • 0cb1c1ba32 Remove unnecessary field Jinzhu 2013-11-10 22:29:53 +08:00
  • f82d036f14 Better support for sql.Scanner Jinzhu 2013-11-10 19:38:28 +08:00
  • 8e0b125cb1 Support sql.Scanner Jinzhu 2013-11-10 18:33:37 +08:00
  • dc15849313 Don't suppose id's value as int Jinzhu 2013-11-10 10:09:57 +08:00
  • 21713a5246 Update sql validator for Count() Jinzhu 2013-11-10 09:57:34 +08:00
  • 328e9401a0 Handle sql.NullValues in search conditions Jinzhu 2013-11-10 09:41:39 +08:00
  • 8d97fdb172 Support NullFloat64, NullInt64, NullBool, NullString Jinzhu 2013-11-10 08:57:11 +08:00
  • 562bca71e4 Try to add support for NullInt64 Jinzhu 2013-11-10 08:14:41 +08:00
  • 99b87315c4 Add Benchmark Jinzhu 2013-11-08 08:46:26 +08:00
  • 913757c103 Ignore those fields don't have valid sql type when auto migrate Jinzhu 2013-11-07 13:21:19 +08:00
  • 272ad45943 update README Jinzhu 2013-11-07 12:23:45 +08:00
  • c192b86d9e Update README Jinzhu 2013-11-07 12:12:25 +08:00
  • 9b27735464 Add AutoMigrate Support Jinzhu 2013-11-07 11:42:36 +08:00
  • 5da8461161 auto migrate Jinzhu 2013-11-07 09:09:54 +08:00
  • 6d7d892af7 Update README Jinzhu 2013-11-06 22:20:26 +08:00
  • c842d46b66 Add Support for TableName, used to specify struct's table name Jinzhu 2013-11-06 22:13:18 +08:00
  • da6ffd52dd Add Method SingularTable Jinzhu 2013-11-06 21:43:41 +08:00
  • 2400a46ff7 Set associated struct's value after save even they are not pointer Jinzhu 2013-11-06 08:03:39 +08:00
  • 619ae6549d Fix error when handle relations Jinzhu 2013-11-05 22:34:49 +08:00
  • 2f5991d088 Update Document For Related() Jinzhu 2013-11-05 08:08:42 +08:00
  • 98869cb124 Add Method Related to find associations Jinzhu 2013-11-05 07:46:06 +08:00
  • 0b22775dd7 Add support for sqlite3 Jinzhu 2013-11-04 20:47:45 +08:00
  • 7a23685e0b Test with mysql Jinzhu 2013-11-04 20:32:46 +08:00
  • e78c10690b Add Last Method, And update README for method First, Find Jinzhu 2013-11-04 17:58:56 +08:00
  • 215b736fe1 Ignore unexported field Jinzhu 2013-11-04 07:58:40 +08:00
  • 0c4e43cd7a Don't quote table names Jinzhu 2013-11-03 21:19:38 +08:00
  • 63a9e5e3ae Update README Jinzhu 2013-11-03 11:38:53 +08:00
  • 92f790c463 Update README Jinzhu 2013-11-03 11:32:25 +08:00
  • 8e3b1fd206 Update README Jinzhu 2013-11-03 10:49:09 +08:00
  • bd54a03505 Document SubStruct Jinzhu 2013-11-03 10:31:36 +08:00
  • e2927e1ec5 README Jinzhu 2013-11-03 10:18:16 +08:00
  • a135087af4 Better README Jinzhu 2013-11-03 10:09:56 +08:00
  • b4981259de Update README Jinzhu 2013-11-02 21:02:54 +08:00
  • aa352d405b Make save sub structs works Jinzhu 2013-11-02 20:05:05 +08:00
  • 5b671a84b6 Error message when set primary key Jinzhu 2013-11-02 18:25:01 +08:00
  • 2d40175651 Puts errors for ptr values Jinzhu 2013-11-02 18:03:04 +08:00
  • b9f4a59772 Save substructs successfully Jinzhu 2013-11-02 17:29:56 +08:00
  • 8c36a5d193 Cache fields Jinzhu 2013-11-02 15:17:11 +08:00
  • 28b49124eb Handle SubStruct Jinzhu 2013-11-02 14:12:18 +08:00
  • 49cfb0d4a0 Add DropTable Jinzhu 2013-11-01 15:01:39 +08:00
  • 600d8e7277 Improve compatibility when set model Jinzhu 2013-11-01 11:43:41 +08:00
  • 32dcacc70b Convert str to int if it is when set field Jinzhu 2013-11-01 11:17:19 +08:00
  • c387c7d9ba Polish The Not Method Jinzhu 2013-10-31 22:49:48 +08:00
  • 8a030c99eb Document Method Not Jinzhu 2013-10-31 18:12:18 +08:00
  • 724ffec683 Add Method Not Jinzhu 2013-10-31 17:31:00 +08:00
  • 549c7450ea Make it easy when only change one field with Attr, Assign Jinzhu 2013-10-31 12:59:04 +08:00
  • 0e692a13b1 Document Method Assign Jinzhu 2013-10-31 09:34:27 +08:00
  • 31b4baba6f Make Updates accept struct other than map[string]interface{} Jinzhu 2013-10-31 08:29:57 +08:00
  • 688e992266 Add method Assign Jinzhu 2013-10-31 08:15:19 +08:00
  • a63b3247f6 Make Update, Updates smart, Only run sql when there are really some new things and reflect changes back to the struct Jinzhu 2013-10-30 23:19:00 +08:00
  • 721090d39a Document Attrs in README Jinzhu 2013-10-30 15:33:34 +08:00
  • 0a47d75870 Add support for Attrs Jinzhu 2013-10-30 15:21:58 +08:00
  • 9aacae473c Add tests for plain text time Jinzhu 2013-10-30 08:57:48 +08:00
  • db7fc2d53a Refact code to make it more strong Jinzhu 2013-10-29 22:00:06 +08:00
  • e250637d12 Document FirstOrInit, FirstOrCreate Jinzhu 2013-10-29 20:32:27 +08:00
  • 1ecf9d76be Make FirstOrInit FirstOrCreate works! Jinzhu 2013-10-29 20:20:25 +08:00
  • 94bd2eb8d5 Add Debug Mode Jinzhu 2013-10-29 19:33:26 +08:00
  • 6ac0012879 Try to implement the FirstOrInit method Jinzhu 2013-10-29 19:05:54 +08:00
  • 2e84f3b216 Initialize method FirstOrInit, FirstOrCreate Jinzhu 2013-10-29 18:02:28 +08:00
  • 8a81711e41 Possible to search with interface map Jinzhu 2013-10-29 17:52:37 +08:00
  • c74af2210d Search with struct Jinzhu 2013-10-29 17:37:45 +08:00
  • fd3ed7ffaf Should fill data to smaller struct correctly Jinzhu 2013-10-29 16:11:51 +08:00
  • a11c9f9b1b Query with primary key map Jinzhu 2013-10-29 15:37:58 +08:00
  • 44b64ff74f Document Soft Delete and Unscoped in README Jinzhu 2013-10-29 11:01:51 +08:00
  • 68d3d134e6 Yay, Soft Delete works Jinzhu 2013-10-29 10:19:20 +08:00
  • 7e5dc40f6f Don't do real delete when deleted_at column exist Jinzhu 2013-10-29 09:01:48 +08:00
  • bc785a9173 Cleanup code Jinzhu 2013-10-29 07:39:26 +08:00
  • 84b280c0ff Yay, Add Update, Updates Support Jinzhu 2013-10-28 21:52:22 +08:00
  • 2a20e551ed Possible to specify table name Jinzhu 2013-10-28 20:27:25 +08:00
  • 3bd7daf889 Remove unnecessary exported fields Jinzhu 2013-10-28 15:55:41 +08:00
  • f4aa435446 Basic support for plurals Jinzhu 2013-10-28 15:49:05 +08:00
  • 2388dacfe3 Hidden unnecessary public fields Jinzhu 2013-10-28 12:52:06 +08:00
  • 5de6416354 Clean up dependencies Jinzhu 2013-10-28 12:46:50 +08:00
  • 592df904e2 Add tests to make sure no unexpected things happen with invalid SQL Jinzhu 2013-10-28 12:43:02 +08:00
  • 13a8d98d8f Add some tests for Error handling Jinzhu 2013-10-28 12:12:12 +08:00
  • 0906333291 Document error handling in README Jinzhu 2013-10-28 11:24:51 +08:00
  • c412729570 Update README Jinzhu 2013-10-28 10:09:44 +08:00
  • a81b9f3950 Update README Jinzhu 2013-10-28 09:18:34 +08:00
  • 7e68ad9773 Better README Jinzhu 2013-10-28 09:05:44 +08:00
  • 692b08a7be Update README Jinzhu 2013-10-28 08:08:45 +08:00
  • 66054f0957 Update README Jinzhu 2013-10-27 22:36:43 +08:00
  • cee203b0d3 Update README Jinzhu 2013-10-27 22:18:06 +08:00
  • c6638959cd Update README Jinzhu 2013-10-27 21:37:31 +08:00
  • f74c9015a1 Inline which condition for first/find Jinzhu 2013-10-27 20:54:23 +08:00