Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iganev committed Aug 7, 2024
1 parent 11c5bbc commit 583281c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/metadata/consts.rs
Original file line number Diff line number Diff line change
@@ -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()";

0 comments on commit 583281c

Please sign in to comment.