{"action":"created","issue":{"url":"https://api.github.com/repos/diesel-rs/diesel/issues/1589","repository_url":"https://api.github.com/repos/diesel-rs/diesel","labels_url":"https://api.github.com/repos/diesel-rs/diesel/issues/1589/labels{/name}","comments_url":"https://api.github.com/repos/diesel-rs/diesel/issues/1589/comments","events_url":"https://api.github.com/repos/diesel-rs/diesel/issues/1589/events","html_url":"https://github.com/diesel-rs/diesel/issues/1589","id":302772756,"number":1589,"title":"Feature request: Generate entities (structs) from database","user":{"login":"flip111","id":2244480,"avatar_url":"https://avatars3.githubusercontent.com/u/2244480?v=4","gravatar_id":"","url":"https://api.github.com/users/flip111","html_url":"https://github.com/flip111","followers_url":"https://api.github.com/users/flip111/followers","following_url":"https://api.github.com/users/flip111/following{/other_user}","gists_url":"https://api.github.com/users/flip111/gists{/gist_id}","starred_url":"https://api.github.com/users/flip111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flip111/subscriptions","organizations_url":"https://api.github.com/users/flip111/orgs","repos_url":"https://api.github.com/users/flip111/repos","events_url":"https://api.github.com/users/flip111/events{/privacy}","received_events_url":"https://api.github.com/users/flip111/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-06T16:33:12Z","updated_at":"2018-03-06T16:47:04Z","closed_at":null,"author_association":"NONE","body":"I have an existing database with tables, it would be very nice if diesel could inspect the database and generate the rust code for the schema. Here is an example of the process using a different language and orm https://symfony.com/doc/current/doctrine/reverse_engineering.html "},"comment":{"url":"https://api.github.com/repos/diesel-rs/diesel/issues/comments/370846934","html_url":"https://github.com/diesel-rs/diesel/issues/1589#issuecomment-370846934","issue_url":"https://api.github.com/repos/diesel-rs/diesel/issues/1589","id":370846934,"user":{"login":"flip111","id":2244480,"avatar_url":"https://avatars3.githubusercontent.com/u/2244480?v=4","gravatar_id":"","url":"https://api.github.com/users/flip111","html_url":"https://github.com/flip111","followers_url":"https://api.github.com/users/flip111/followers","following_url":"https://api.github.com/users/flip111/following{/other_user}","gists_url":"https://api.github.com/users/flip111/gists{/gist_id}","starred_url":"https://api.github.com/users/flip111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flip111/subscriptions","organizations_url":"https://api.github.com/users/flip111/orgs","repos_url":"https://api.github.com/users/flip111/repos","events_url":"https://api.github.com/users/flip111/events{/privacy}","received_events_url":"https://api.github.com/users/flip111/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T16:47:04Z","updated_at":"2018-03-06T16:47:04Z","author_association":"NONE","body":"> diesel print-schema does exactly that\r\n\r\nI see the `table!` macro printed with information about the columns ... how do i get the models from that ?"}}
{"actor":{"display_login":"flip111"}}