FullstackRustDemo icon indicating copy to clipboard operation
FullstackRustDemo copied to clipboard

Give article title a Unique sql constraint.

Open hgzimmerman opened this issue 7 years ago • 2 comments

  • [x] Give unique title constraint.
  • [ ] Create a reversible function that turns a title into a valid url string.
  • [ ] Allow querying of database for articles via title in addition to by id.

hgzimmerman avatar Feb 11 '18 23:02 hgzimmerman

It occurred to me after creating this issue that URL slug generating functions are not typically reversible. Either some intense validation needs to be created to prevent the entry of title names that can't be reversible or the title is used to generate another column that will contain the slug.

I'm leaning towards the latter.

hgzimmerman avatar Feb 13 '18 11:02 hgzimmerman

I have slug included as a dependency now. Now I need to store the slug in the DB.

hgzimmerman avatar Apr 20 '18 14:04 hgzimmerman