jmoiron / modl

golang database modelling library
MIT License
479 stars 48 forks source link

add option to truncate tables with an identity/auto-incr reset #10

Closed s-mang closed 10 years ago

s-mang commented 10 years ago

it would be nice to be able to reset the auto-increment counter when truncating tables.

This solution is backwards-compatible & has a test :cake: Let me know if you'd like anything changed

Cheers ~

jmoiron commented 10 years ago

This looks great! Thanks for the PR :v: