Tidak Ada Deskripsi

Joachim M. Giæver c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu
conn 4b57b3183c Init commit 6 tahun lalu
.gitignore 1aa7f7a390 Initial commit 6 tahun lalu
LICENSE 1aa7f7a390 Initial commit 6 tahun lalu
README.md c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu
column.go c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu
field.go c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu
mappable.go c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu
mapper.go c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu
relation.go c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu
strings.go c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu
table.go c9abecf2f9 Mapping rewrite. Concurrect mapping 6 tahun lalu

README.md

orm

This is a work in progress project. Not meant to be used, as only the mapping part is «ready». Check back once up in your lifetime and maybe you'll find something that works.

The only usefull information you'll get from this now is just an output representation of the relation, e.g

User (`users`):
 - Fields
	* id:    `id`, uint64
	* email: `email`, string
 - HasMany
	UserProperty AS `properties` ON `properties`.`user_id` WITH `id`
	Plan AS `plans` ON `plans`.`user_id` WITH `id`

UserProperty (`user_properties`):
 - Fields
	* id:      `id`, uint64
	* userId:  `user_id`, uint64
	* name:    `name`, string
	* address: `address`, string
	* lat:     `lat`, float64
	* lng:     `lng`, float64
 - BelongsTo
	User AS `user` ON `user`.`id` WITH `user_id`
 - HasOne
	Plan AS `plan` ON `plan`.`user_property_id` WITH `id`

Plan (`plans`):
 - Fields
	* id:             `id`, uint64
	* userId:         `user_id`, uint64
	* userPropertyId: `user_property_id`, uint64
 - BelongsTo
	User AS `user` ON `user`.`id` WITH `user_id`
	UserProperty AS `userProperty` ON `userProperty`.`id` WITH `user_property_id`