New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to rename tables in table! macro #1217

Closed
kardeiz opened this Issue Sep 28, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@kardeiz
Contributor

kardeiz commented Sep 28, 2017

Database table names, like column names, can clash with Rust keywords and identifiers, and the library should provide a way to rename them in defining a schema.

#1084 provides a way to rename columns but not tables. The same pseudo-attribute format could be used for renaming tables.

See also #424 #967 etc.

Eijebong added a commit to Eijebong/diesel that referenced this issue Oct 3, 2017

Allow tables to be renamed
The renaming is done via a `sql_name` attribute like columns renaming.

Fixes diesel-rs#1217

Eijebong added a commit to Eijebong/diesel that referenced this issue Oct 3, 2017

Allow tables to be renamed
The renaming is done via a `sql_name` attribute like columns renaming.

Fixes diesel-rs#1217

Eijebong added a commit to Eijebong/diesel that referenced this issue Oct 10, 2017

Allow tables to be renamed
The renaming is done via a `sql_name` attribute like columns renaming.

Fixes diesel-rs#1217

Eijebong added a commit to Eijebong/diesel that referenced this issue Oct 11, 2017

Allow tables to be renamed
The renaming is done via a `sql_name` attribute like columns renaming.

Fixes diesel-rs#1217

Eijebong added a commit to Eijebong/diesel that referenced this issue Oct 20, 2017

Allow tables to be renamed
The renaming is done via a `sql_name` attribute like columns renaming.

Fixes diesel-rs#1217

@weiznich weiznich added the enhancement label Nov 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment