Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/4xmen/rustavel
/ functions
Functions
359 in github.com/4xmen/rustavel
⨍
Functions
359
◇
Types & classes
83
↓ 35 callers
Function
error
(msg: &str)
core/src/logger/global.rs:45
↓ 34 callers
Method
is_empty
(&self)
macros-core/src/lib.rs:57
↓ 33 callers
Method
clone
(&self)
core/src/routing.rs:63
↓ 30 callers
Function
is_string_type
Returns `true` if the given type is `String` or `Option<String>`.
macros/src/checkmate.rs:333
↓ 27 callers
Method
column
create new column
core/src/db/table.rs:126
↓ 26 callers
Function
is_option_type
(ty: &Type)
macros/src/checkmate.rs:233
↓ 23 callers
Method
get
Asynchronously reads the content of a file. # Arguments `path` - A string slice that holds the path of the file. # Returns Returns a `Result<bool,
core/src/facades/file_content.rs:68
↓ 22 callers
Method
name
attach name to last route Adds a name to current route or group # Arguments `path` - The URL path for the route or group prefix. `handler` - The hand
core/src/routing.rs:268
↓ 13 callers
Method
fetch_strings
(&self, sql: &str)
core/src/sql/database_client.rs:60
↓ 13 callers
Function
now
()
core/src/facades/datetime.rs:77
↓ 13 callers
Function
title
Print a section title like: INFO Running migrations.
core/src/facades/terminal_ui.rs:15
↓ 11 callers
Method
execute
(&self, sql: &str)
core/src/sql/database_client.rs:51
↓ 11 callers
Method
fix_table_name
(&self, table_name: &str)
core/src/db/schema.rs:138
↓ 9 callers
Function
assert_has_error
helper for check error
integration-tests/tests/validator_test.rs:56
↓ 9 callers
Function
operation
Print a timed operation line similar to Laravel output
core/src/facades/terminal_ui.rs:27
↓ 8 callers
Method
parse
(input: ParseStream)
macros/src/pawn.rs:172
↓ 7 callers
Method
add
Adds a validation error for a specific field. # Arguments `field` - The name of the field with the validation error `error` - The specific validation
graveyard/src/request_validator.rs:93
↓ 7 callers
Function
extract_option_inner_type
If the given type is `Option<T>`, returns `Some(&T)`. Otherwise returns `None`.
macros/src/checkmate.rs:317
↓ 7 callers
Function
info
(msg: &str)
core/src/logger/global.rs:37
↓ 6 callers
Method
get_tables
Retrieves a list of all tables in the database. This method: - Uses the database generator to create a SQL query for listing tables. - Executes the q
core/src/db/schema.rs:214
↓ 6 callers
Method
name
(&self)
database/src/migrations/m_2025_01_15_1945_create_todos.rs:32
↓ 6 callers
Method
validate
validate column created by developer
core/src/db/table.rs:401
↓ 5 callers
Method
all
()
core/src/sql/query.rs:9
↓ 5 callers
Method
any
Adds GET,POST,PUT,PATCH,DELETE,OPTIONS route to the collector. # Arguments `path` - The URL path for the route. `handler` - The handler function for
core/src/routing.rs:235
↓ 5 callers
Method
comment
(mut self, comment: impl Into<String>)
core/src/db/table.rs:564
↓ 5 callers
Method
group
Creates a route group with its own contextual configuration. This method establishes a new routing context that can apply: - Path prefixes - Name pre
core/src/routing.rs:624
↓ 5 callers
Function
is_numeric_type
Returns `true` if the given type is a supported numeric primitive (i8, i16, i32, i64, u8, u16, u32, u64, f32, f64) or an `Option` wrapping one of thos
macros/src/checkmate.rs:348
↓ 5 callers
Method
prefix
Sets a path prefix for the current route group. The prefix is applied to all routes declared within the current group context and any nested groups.
core/src/routing.rs:575
↓ 5 callers
Function
push_2
(out: &mut String, n: u8)
core/src/facades/datetime.rs:394
↓ 4 callers
Method
as_str
(&self)
macros/src/checkmate.rs:465
↓ 4 callers
Method
build
Consumes the route collector and builds the final Axum router. This method performs three distinct phases: 1. **Validation - Detects duplicate route
core/src/routing.rs:376
↓ 4 callers
Method
create
Defines and creates a new table in the schema. This method: - Initializes a new `Table` with a specified name. - Allows customized configuration of t
core/src/db/schema.rs:1311
↓ 4 callers
Method
execute_migration
Executes the last migration generated by the schema. This method: - Retrieves the last migration's data information. - Generates the SQL commands to
core/src/db/schema.rs:1444
↓ 4 callers
Function
format_php_imp
(dt: OffsetDateTime, format: &str)
core/src/facades/datetime.rs:400
↓ 4 callers
Function
is_date_type
Returns `true` if the given type is `Date` or `Option<Date>`.
macros/src/checkmate.rs:437
↓ 4 callers
Function
is_datetime_type
Returns `true` if the given type is `PrimitiveDateTime` or `Option<PrimitiveDateTime>`.
macros/src/checkmate.rs:425
↓ 4 callers
Function
is_datetime_types
Returns `true` if the given type is a supported date|time primitive (PrimitiveDateTime, Date) or an `Option` wrapping one of those types.
macros/src/checkmate.rs:410
↓ 4 callers
Function
jdate_imp
(dt: OffsetDateTime, format: &str)
core/src/facades/datetime.rs:272
↓ 4 callers
Function
normalize_digits
(input: &str)
core/src/localization/digits.rs:10
↓ 4 callers
Method
nullable
(mut self)
core/src/db/table.rs:544
↓ 4 callers
Function
send
(level: LogLevel, msg: &str)
core/src/logger/global.rs:27
↓ 4 callers
Method
string
add string column
core/src/db/table.rs:224
↓ 3 callers
Method
date
add date column
core/src/db/table.rs:302
↓ 3 callers
Method
drop_table
Drops a specific table from the database. This method: - Fixes the table name to ensure proper formatting. - Uses the database generator to create a
core/src/db/schema.rs:619
↓ 3 callers
Method
expect_no_args
Errors if any argument was supplied to a generator that takes none.
macros/src/pawn.rs:196
↓ 3 callers
Method
id
-------------------------------------------------------------------------------------------- add id column id
core/src/db/table.rs:213
↓ 3 callers
Method
index
(mut self)
core/src/db/table.rs:554
↓ 3 callers
Method
is_empty
Checks if there are no validation errors. # Returns `true` if no errors exist, `false` otherwise
graveyard/src/request_validator.rs:77
↓ 3 callers
Method
route
(&self, route: &str)
core/src/state.rs:10
↓ 3 callers
Method
unsigned
(mut self)
core/src/db/table.rs:559
↓ 3 callers
Function
warn
(msg: &str)
core/src/logger/global.rs:41
↓ 2 callers
Method
big_integer
add big integer column
core/src/db/table.rs:274
↓ 2 callers
Method
boolean
add boolean column
core/src/db/table.rs:219
↓ 2 callers
Function
build_one
Builds one instance from its definition and applies every state mutation in order.
macros-core/src/factory.rs:123
↓ 2 callers
Method
cascade_on_delete
(&mut self)
core/src/db/table.rs:619
↓ 2 callers
Function
confirm
(message: &str)
artisan/src/artisan.rs:17
↓ 2 callers
Function
controller
(args: &NewControllerArgs)
artisan/src/make/controller.rs:30
↓ 2 callers
Method
count
Switches to building `count` instances, returning a batch builder.
macros-core/src/factory.rs:74
↓ 2 callers
Function
create
(State(_state): State<AppState>)
app/src/http/controllers/todo_controller.rs:49
↓ 2 callers
Method
create
Builds and returns a single instance.
macros-core/src/factory.rs:82
↓ 2 callers
Method
datetime
add datetime column
core/src/db/table.rs:307
↓ 2 callers
Method
default_bool
(mut self, value: bool)
core/src/db/table.rs:569
↓ 2 callers
Method
default_null
(mut self)
core/src/db/table.rs:587
↓ 2 callers
Function
diff_for_humans_impl
(datetime: OffsetDateTime)
core/src/facades/datetime.rs:545
↓ 2 callers
Method
execute_params
( &self, sql: &str, params: &[&str], // ← str reference )
core/src/sql/database_client.rs:35
↓ 2 callers
Method
fetch_count_params
( &self, sql: &str, params: &[&str], )
core/src/sql/database_client.rs:109
↓ 2 callers
Method
foreign
add foreign key
core/src/db/table.rs:385
↓ 2 callers
Method
get_column_listing
Retrieves the list of columns for a specified database table. This method: - Generates a SQL query to list columns for the given table name. - Execut
core/src/db/schema.rs:309
↓ 2 callers
Function
get_columns
()
core/src/db/schema.rs:47
↓ 2 callers
Function
get_tables
()
core/src/db/schema.rs:28
↓ 2 callers
Method
get_views
Retrieves the list of views in the database. This method: - Uses the database generator to create a SQL query for listing views. - Executes the query
core/src/db/schema.rs:416
↓ 2 callers
Function
is_leap
(year: i32)
core/src/facades/datetime.rs:266
↓ 2 callers
Function
is_valid_datetime
Returns `true` if `s` matches one of the supported date or date‑time formats, otherwise `false`. Supported separators: `-` or `/` between year, month
macros/src/checkmate.rs:255
↓ 2 callers
Function
jalali_month_name
(m: u8)
core/src/facades/datetime.rs:525
↓ 2 callers
Method
middleware
Attaches one middleware to the last added route or group. Adds a middleware function to the most recently added route or group. The middleware receiv
core/src/routing.rs:318
↓ 2 callers
Function
migrate
Create and persist a new migration file from CLI (artisan) input. This function does: 1. Generate a timestamped and snake_cased migration filename. 2
artisan/src/make/migration.rs:63
↓ 2 callers
Function
now_primitive
Returns the current date and time as a PrimitiveDateTime.
core/src/facades/datetime.rs:179
↓ 2 callers
Method
on
(&mut self, referenced_table_name: impl Into<String>)
core/src/db/table.rs:614
↓ 2 callers
Method
reference
(&mut self, referenced_column: impl Into<String>)
core/src/db/table.rs:609
↓ 2 callers
Method
required_int
Extracts a single required integer argument named `key` (e.g. `length = 8`).
macros/src/pawn.rs:207
↓ 2 callers
Method
run
(mut self)
core/src/logger/worker.rs:24
↓ 2 callers
Function
save_generated_model
(model_name: String, data: Option<ModelData>)
artisan/src/general/generate_model.rs:17
↓ 2 callers
Method
soft_delete
add soft delete column (deleted_at)
core/src/db/table.rs:327
↓ 2 callers
Method
timestamps
add timestamps columns (created_at, updated_at)
core/src/db/table.rs:322
↓ 1 callers
Function
add
(left: u64, right: u64)
integration-tests/src/lib.rs:1
↓ 1 callers
Method
add
internal helper to reduce duplication
core/src/routing.rs:154
↓ 1 callers
Method
add_migrated_table
Adds a migrated table entry to the migrations repository. This method: - Inserts a new record into the `migrations` table with the specified migratio
core/src/db/schema.rs:1764
↓ 1 callers
Function
api_routes
()
app/src/routes/api.rs:8
↓ 1 callers
Method
create_migration_table
Creates the migration table in the database. This method: - Initializes a new table named `migrations`. - Defines the structure of the table, includi
core/src/db/schema.rs:1719
↓ 1 callers
Method
default
make default column data
core/src/db/table.rs:499
↓ 1 callers
Method
disable_foreign_key_constraints
Disables foreign key constraints for the specified database. # Behavior - Attempts to disable foreign key constraints using the database generator. -
core/src/db/schema.rs:1108
↓ 1 callers
Method
down
(&self, schema: &mut Schema)
database/src/migrations/m_2025_01_15_1945_create_todos.rs:27
↓ 1 callers
Method
drop_all_tables
Drops all tables in the database. This method: - Uses the database generator to create a SQL command to drop all tables. - Executes the drop all tabl
core/src/db/schema.rs:716
↓ 1 callers
Method
drop_column
drop column
core/src/db/table.rs:433
↓ 1 callers
Method
drop_view
Drops a specific view from the database. This method: - Ensures the view name is properly formatted. - Utilizes the database generator to create a SQ
core/src/db/schema.rs:669
↓ 1 callers
Method
enable_foreign_key_constraints
Enables foreign key constraints for the specified database. # Behavior - Attempts to enable foreign key constraints using the database generator. - R
core/src/db/schema.rs:1152
↓ 1 callers
Method
expand
expand rule validator code generate depends on filed type
macros/src/checkmate.rs:503
↓ 1 callers
Function
fake_init
Maps a `#[fake(...)]` attribute to a `fake`-crate expression that yields a `String`.
macros/src/pawn.rs:97
↓ 1 callers
Method
fetch_numbers
(&self, sql: &str)
core/src/sql/database_client.rs:75
↓ 1 callers
Method
fetch_strings_params
(&self, sql: &str, params: &[&str])
core/src/sql/database_client.rs:90
next →
1–100 of 359, ranked by callers