Highlight Enum SQL
This commit is contained in:
parent
17f2ec5108
commit
9700787bf9
1 changed files with 1 additions and 1 deletions
|
@ -1191,7 +1191,7 @@ exists, err := models.Pilots(db, Where("id=?", 5)).Exists()
|
||||||
If your MySQL or Postgres tables use enums we will generate constants that hold their values
|
If your MySQL or Postgres tables use enums we will generate constants that hold their values
|
||||||
that you can use in your queries. For example:
|
that you can use in your queries. For example:
|
||||||
|
|
||||||
```
|
```sql
|
||||||
CREATE TYPE workday AS ENUM('monday', 'tuesday', 'wednesday', 'thursday', 'friday');
|
CREATE TYPE workday AS ENUM('monday', 'tuesday', 'wednesday', 'thursday', 'friday');
|
||||||
|
|
||||||
CREATE TABLE event_one (
|
CREATE TABLE event_one (
|
||||||
|
|
Loading…
Reference in a new issue