├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── License ├── README.md ├── associationtype_string.go ├── basic.go ├── basic_test.go ├── benchmarks_test.go ├── brick_common.go ├── bugfix_test.go ├── collection.go ├── collection_brick.go ├── collection_brick_condition.go ├── collection_brick_test.go ├── collection_handlers.go ├── column.go ├── context.go ├── dialect.go ├── dialect_mysql.go ├── dialect_postgres.go ├── dialect_sqlite.go ├── errors.go ├── examples ├── collection_example │ └── collection_example.go ├── join_example │ └── join_example.go ├── preload_example │ └── preload_example.go ├── quick_start │ └── main.go ├── simple_example │ └── simple_example.go └── website │ ├── README.md │ ├── templates │ ├── _head.tmpl │ ├── _topnav.tmpl │ ├── error.tmpl │ ├── index.tmpl │ ├── login.tmpl │ ├── orders.tmpl │ ├── redirect.tmpl │ ├── register.tmpl │ ├── user.tmpl │ └── user_edit.tmpl │ ├── utils.go │ └── website.go ├── exec.go ├── exec_test.go ├── go.mod ├── handlers.go ├── ignore_mode.go ├── join.go ├── main_test.go ├── mode.go ├── model.go ├── model_field.go ├── panic_test.go ├── preload.go ├── record.go ├── record_namemap.go ├── record_offsetmap.go ├── record_struct.go ├── record_test.go ├── result.go ├── search.go ├── search_test.go ├── thread_safe_test.go ├── toy.go ├── toy_brick.go ├── toy_brick_condition.go ├── toy_brick_test.go └── toy_kernel.go /.gitignore: -------------------------------------------------------------------------------- 1 | *.db 2 | coverage.out 3 | go.sum 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/License -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/README.md -------------------------------------------------------------------------------- /associationtype_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/associationtype_string.go -------------------------------------------------------------------------------- /basic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/basic.go -------------------------------------------------------------------------------- /basic_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/basic_test.go -------------------------------------------------------------------------------- /benchmarks_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/benchmarks_test.go -------------------------------------------------------------------------------- /brick_common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/brick_common.go -------------------------------------------------------------------------------- /bugfix_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/bugfix_test.go -------------------------------------------------------------------------------- /collection.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/collection.go -------------------------------------------------------------------------------- /collection_brick.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/collection_brick.go -------------------------------------------------------------------------------- /collection_brick_condition.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/collection_brick_condition.go -------------------------------------------------------------------------------- /collection_brick_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/collection_brick_test.go -------------------------------------------------------------------------------- /collection_handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/collection_handlers.go -------------------------------------------------------------------------------- /column.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/column.go -------------------------------------------------------------------------------- /context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/context.go -------------------------------------------------------------------------------- /dialect.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/dialect.go -------------------------------------------------------------------------------- /dialect_mysql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/dialect_mysql.go -------------------------------------------------------------------------------- /dialect_postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/dialect_postgres.go -------------------------------------------------------------------------------- /dialect_sqlite.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/dialect_sqlite.go -------------------------------------------------------------------------------- /errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/errors.go -------------------------------------------------------------------------------- /examples/collection_example/collection_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/collection_example/collection_example.go -------------------------------------------------------------------------------- /examples/join_example/join_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/join_example/join_example.go -------------------------------------------------------------------------------- /examples/preload_example/preload_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/preload_example/preload_example.go -------------------------------------------------------------------------------- /examples/quick_start/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/quick_start/main.go -------------------------------------------------------------------------------- /examples/simple_example/simple_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/simple_example/simple_example.go -------------------------------------------------------------------------------- /examples/website/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/README.md -------------------------------------------------------------------------------- /examples/website/templates/_head.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/_head.tmpl -------------------------------------------------------------------------------- /examples/website/templates/_topnav.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/_topnav.tmpl -------------------------------------------------------------------------------- /examples/website/templates/error.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/error.tmpl -------------------------------------------------------------------------------- /examples/website/templates/index.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/index.tmpl -------------------------------------------------------------------------------- /examples/website/templates/login.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/login.tmpl -------------------------------------------------------------------------------- /examples/website/templates/orders.tmpl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/website/templates/redirect.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/redirect.tmpl -------------------------------------------------------------------------------- /examples/website/templates/register.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/register.tmpl -------------------------------------------------------------------------------- /examples/website/templates/user.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/user.tmpl -------------------------------------------------------------------------------- /examples/website/templates/user_edit.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/templates/user_edit.tmpl -------------------------------------------------------------------------------- /examples/website/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/utils.go -------------------------------------------------------------------------------- /examples/website/website.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/examples/website/website.go -------------------------------------------------------------------------------- /exec.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/exec.go -------------------------------------------------------------------------------- /exec_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/exec_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/go.mod -------------------------------------------------------------------------------- /handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/handlers.go -------------------------------------------------------------------------------- /ignore_mode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/ignore_mode.go -------------------------------------------------------------------------------- /join.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/join.go -------------------------------------------------------------------------------- /main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/main_test.go -------------------------------------------------------------------------------- /mode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/mode.go -------------------------------------------------------------------------------- /model.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/model.go -------------------------------------------------------------------------------- /model_field.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/model_field.go -------------------------------------------------------------------------------- /panic_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/panic_test.go -------------------------------------------------------------------------------- /preload.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/preload.go -------------------------------------------------------------------------------- /record.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/record.go -------------------------------------------------------------------------------- /record_namemap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/record_namemap.go -------------------------------------------------------------------------------- /record_offsetmap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/record_offsetmap.go -------------------------------------------------------------------------------- /record_struct.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/record_struct.go -------------------------------------------------------------------------------- /record_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/record_test.go -------------------------------------------------------------------------------- /result.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/result.go -------------------------------------------------------------------------------- /search.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/search.go -------------------------------------------------------------------------------- /search_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/search_test.go -------------------------------------------------------------------------------- /thread_safe_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/thread_safe_test.go -------------------------------------------------------------------------------- /toy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/toy.go -------------------------------------------------------------------------------- /toy_brick.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/toy_brick.go -------------------------------------------------------------------------------- /toy_brick_condition.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/toy_brick_condition.go -------------------------------------------------------------------------------- /toy_brick_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/toy_brick_test.go -------------------------------------------------------------------------------- /toy_kernel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigpigeon/toyorm/HEAD/toy_kernel.go --------------------------------------------------------------------------------