[][src]Function voca_rs::query::is_foreign_key

pub fn is_foreign_key(subject: &str) -> bool

Checks whether subject is is a foreign_key.

Arguments

Example

use voca_rs::*;
query::is_foreign_key("");
// => true
query::is_foreign_key("foo_bar_id");
// => true
query::is_foreign_key("foo_bar");
// => false
use voca_rs::Voca;
"foo_bar_id"._is_foreign_key();
// => true
"foo_bar"._is_foreign_key();
// => false