-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()"; |