diff --git a/src/metadata/consts.rs b/src/metadata/consts.rs index 4932971..bbdbc31 100644 --- a/src/metadata/consts.rs +++ b/src/metadata/consts.rs @@ -1,39 +1,39 @@ -#[allow(dead_code)] +#![allow(dead_code)] /// database, table or column charset pub const METADATA_CHARSET: &str = "charset"; -#[allow(dead_code)] + /// database, table or column collation pub const METADATA_COLLATION: &str = "collation"; -#[allow(dead_code)] + /// constraint action ON UPDATE or TIMESTAMP internal update pub const METADATA_ON_UPDATE: &str = "on_update"; -#[allow(dead_code)] + /// constraint action ON DELETE pub const METADATA_ON_DELETE: &str = "on_delete"; -#[allow(dead_code)] + /// constraint action value CASCADE pub const METADATA_CASCADE: &str = "cascade"; -#[allow(dead_code)] + /// constraint action value SET NULL pub const METADATA_SET_NULL: &str = "set_null"; -#[allow(dead_code)] + /// for numerical datatypes of columns pub const METADATA_FLAG_UNSIGNED: &str = "unsigned"; -#[allow(dead_code)] + /// for nullable columns pub const METADATA_FLAG_NULLABLE: &str = "nullable"; -#[allow(dead_code)] + /// for marking primary keys pub const METADATA_FLAG_PRIMARY: &str = "primary"; /// for marking unique indexes pub const METADATA_FLAG_UNIQUE: &str = "unique"; -#[allow(dead_code)] + /// primary key columns are usually AUTO INCREMENT pub const METADATA_FLAG_AUTO_INCREMENT: &str = "auto_increment"; -#[allow(dead_code)] + /// TIMESTAMP DEFAULT pub const METADATA_FLAG_DEFAULT_CURRENT_TIMESTAMP: &str = "current_timestamp()"; -#[allow(dead_code)] + /// TIMESTAMP ON UPDATE trigger pub const METADATA_FLAG_ON_UPDATE_CURRENT_TIMESTAMP: &str = "on update current_timestamp()";