Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enum Regioni: String, PostgreSQLRawEnum {
static let allCases: [Regioni] = [
abruzzo,
basilicata,
calabria,
campania,
emiliaromagna,
friuliveneziagiulia,
lazio,
liguria,
lombardia,
marche,
molise,
piemonte,
puglia,
sardegna,
sicilia,
toscana,
trentinoaltoadige,
umbria,
valledaosta,
veneto
]
case abruzzo = "Abruzzo"
case basilicata = "Basilicata"
case calabria = "Calabria"
case campania = "Campania"
case emiliaromagna = "Emilia-Romagna"
case friuliveneziagiulia = "Friuli-Venezia Giulia"
case lazio = "Lazio"
case liguria = "Liguria"
case lombardia = "Lombardia"
case marche = "Marche"
case molise = "Molise"
case piemonte = "Piemonte"
case puglia = "Puglia"
case sardegna = "Sardegna"
case sicilia = "Sicilia"
case toscana = "Toscana"
case trentinoaltoadige = "Trentino-Alto Adige"
case umbria = "Umbria"
case valledaosta = "Valle d'Aosta"
case veneto = "Veneto"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment