rustyroad 1.6.0

Rusty Road is a framework written in Rust that is based on Ruby on Rails. It is designed to provide the familiar conventions and ease of use of Ruby on Rails, while also taking advantage of the performance and efficiency of Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Enum type catalog query.

/// User-defined enum types and their values, in declaration order.
///
/// Values are ordered by `enumsortorder` rather than name, because Postgres
/// comparison follows declaration order and a client should see the same order.
pub const ENUMS: &str = "\
    SELECT t.typname AS name, e.enumlabel AS value \
      FROM pg_type t \
      JOIN pg_enum e ON e.enumtypid = t.oid \
      JOIN pg_namespace n ON n.oid = t.typnamespace \
     WHERE n.nspname = $1 \
     ORDER BY t.typname, e.enumsortorder";