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
↓ 1 callers
Function
field_init
Builds the initializer expression for a single field from its attribute.
macros/src/pawn.rs:64
↓ 1 callers
Function
find_validating_attr
Helper function to find the #[validating] attribute on a field Clones the attribute if found
macros/src/checkmate.rs:89
↓ 1 callers
Method
foreign_key
(&self, key: &ForeignKey, table_name: &str, action: &TableAction)
core/src/sql/mysql.rs:394
↓ 1 callers
Method
format_php
(&self, format: &str)
core/src/facades/datetime.rs:729
↓ 1 callers
Function
generate_laravel_app_key
Generate a secure Laravel-style `APP_KEY` for the `.env` file. This function does: 1. Generate 32 random bytes using a cryptographically secure RNG (
artisan/src/general/lib.rs:14
↓ 1 callers
Function
generator_init
Maps `#[generator(path)]` to a call of the named zero-argument function.
macros/src/pawn.rs:135
↓ 1 callers
Function
get_all_migrations
()
database/src/migrations/mod.rs:6
↓ 1 callers
Method
get_foreign_keys
Retrieves the list of foreign keys for a specific table in the database. This method: - Uses the database generator to create a SQL query for listing
core/src/db/schema.rs:509
↓ 1 callers
Method
get_next_batch_number
Retrieves the next available batch number for migrations. This method: - Queries the database to find the highest batch number currently recorded. -
core/src/db/schema.rs:1661
↓ 1 callers
Method
get_ran
(&self)
core/src/sql/mysql.rs:451
↓ 1 callers
Method
get_ran_gt
(&self)
core/src/sql/mysql.rs:454
↓ 1 callers
Method
get_ran_migrations
Retrieves a list of successfully executed migrations from the database. This method: - Queries the `migrations` table to fetch the names of migration
core/src/db/schema.rs:1570
↓ 1 callers
Method
get_ran_migrations_gt
Retrieves a list of successfully executed migrations from the database greater than batch. This method: - Queries the `migrations` table to fetch th
core/src/db/schema.rs:1614
↓ 1 callers
Function
gregorian_to_jalali
(mut gy: i32, gm: u8, gd: u8)
core/src/facades/datetime.rs:341
↓ 1 callers
Method
has_table
Checks if a specific table exists in the database. This method: - Fixes the table name to ensure proper formatting. - Uses the database generator to
core/src/db/schema.rs:874
↓ 1 callers
Method
integer
add integer column
core/src/db/table.rs:254
↓ 1 callers
Method
intersects
intersects: compare current route method duplicate is with other route methods or not
core/src/routing.rs:703
↓ 1 callers
Function
is_string_collection_type
Returns `true` if the given type is either a `Vec<String>` or `HashMap<String, String>` or an `Option` wrapping one of those types.
macros/src/checkmate.rs:367
↓ 1 callers
Method
is_string_type
check is string type
core/src/db/table.rs:485
↓ 1 callers
Function
is_time_type
Returns `true` if the given type is `Time` or `Option<Dime>`.
macros/src/checkmate.rs:450
↓ 1 callers
Method
jdate
(&self, format: &str)
core/src/facades/datetime.rs:707
↓ 1 callers
Method
merge
Merges another `BuiltRoutes` instance into this one, combining routers and route names. # Parameters - `other`: Another `BuiltRoutes` instance to mer
core/src/routing.rs:671
↓ 1 callers
Function
model
(args: &NewModelArgs)
artisan/src/make/model.rs:26
↓ 1 callers
Function
now_ms
()
core/src/logger/global.rs:20
↓ 1 callers
Function
parse_rules
Helper function to parse the rules from the #[validating] attribute into Vec<Rule> Supports two formats: - Single string: #[validating("required|email
macros/src/checkmate.rs:102
↓ 1 callers
Function
parse_single_rule
Parse a single rule string like "required" or "max:180" or "confirmed:other_field" into Rule Returns syn::Error if invalid format or unsupported rule
macros/src/checkmate.rs:134
↓ 1 callers
Function
parse_ymd
(input: &str)
core/src/facades/datetime.rs:125
↓ 1 callers
Function
pawn_expand
Expands the derive input into a `Pawn` implementation.
macros/src/pawn.rs:17
↓ 1 callers
Method
put
Asynchronously writes content to a file. # Arguments `path` - A string slice that holds the path of the file. `content` - A string slice that holds
core/src/facades/file_content.rs:31
↓ 1 callers
Method
record_exists
(&self,table: &str,column: &str)
core/src/sql/mysql.rs:470
↓ 1 callers
Method
record_exists_except
(&self,table: &str,column: &str, except: &str)
core/src/sql/mysql.rs:473
↓ 1 callers
Function
register_mod_file
Ensure a module is registered in mod.rs (idempotent)
artisan/src/make/controller.rs:67
↓ 1 callers
Function
register_new_migration
Update `mod.rs` to register a new migration. This function does: 1. Locate `mod.rs` inside `database/src/migrations`. 2. Validate that placeholders e
artisan/src/make/migration.rs:153
↓ 1 callers
Method
rem_migrated_table
Removes a migrated table entry from the migrations repository. This method: - Deletes the specified migration entry from the `migrations` table based
core/src/db/schema.rs:1818
↓ 1 callers
Method
rename
Renames a table in the database. This method: - Uses the database generator to create a SQL RENAME TABLE command. - Executes the rename operation usi
core/src/db/schema.rs:1203
↓ 1 callers
Method
repository_exists
Checks if the migrations repository exists in the database. This method: - Queries the database to determine if the `migrations` table is present. #
core/src/db/schema.rs:1535
↓ 1 callers
Function
resolve_target_path
Resolve the final filesystem path for the migration file. This function does: 1. Use the default `database/src/migrations` directory when no path is
artisan/src/make/migration.rs:121
↓ 1 callers
Function
run_migrations
(rollback: i64, passive: bool, fresh: bool)
database/src/migrator.rs:16
↓ 1 callers
Function
set_env_value
Insert or update a key-value pair in the `.env` file in the current directory. This function does: 1. Resolve the `.env` path relative to the current
artisan/src/general/lib.rs:31
↓ 1 callers
Method
state
Registers a mutation run against every instance after it is built. States are applied in registration order.
macros-core/src/factory.rs:65
↓ 1 callers
Function
strip_ansi
Remove ANSI escape codes length effect
core/src/facades/terminal_ui.rs:75
↓ 1 callers
Function
success
(msg: &str)
core/src/logger/global.rs:49
↓ 1 callers
Method
table
Alters an existing table in the schema. This method: - Initializes a `Table` object representing the specified table name. - Allows for modification
core/src/db/schema.rs:1373
↓ 1 callers
Method
table_sql
( &self, table_name: &str, body_sql: &str, post_sql: &str, action: &Ta
core/src/sql/mysql.rs:426
↓ 1 callers
Function
terminal_width
()
core/src/facades/terminal_ui.rs:70
↓ 1 callers
Method
time
add time column
core/src/db/table.rs:312
↓ 1 callers
Method
to_struct
this function convert table to rust struct note: maybe need move this function to schema
core/src/db/table.rs:152
↓ 1 callers
Method
unique
(mut self)
core/src/db/table.rs:549
↓ 1 callers
Method
up
(&self, schema: &mut Schema)
database/src/migrations/m_2025_01_15_1945_create_todos.rs:10
↓ 1 callers
Function
value_init
Maps `#[value(expr)]` to an initializer. A string literal is wrapped in `.into()` so it can populate `String` (or any `From<&str>`) fields directly;
macros/src/pawn.rs:144
↓ 1 callers
Method
visit_str
normalize persian/arabic digits
core/src/localization/numbers.rs:57
↓ 1 callers
Function
web_routes
()
app/src/routes/web.rs:9
Method
add
(&mut self, field: impl Into<String>, message: impl Into<String>)
macros-core/src/lib.rs:50
Method
add_migrated_table
(&self)
core/src/sql/mysql.rs:462
Method
add_migrated_table
(&self)
core/src/sql/sqlite.rs:395
Function
apply_normalize_number
Deserializer that accepts: - string (possibly containing eastern arabic / persian digits) - integer number (i64, u64, ... that fits in target type) -
core/src/localization/numbers.rs:10
Function
apply_normalized_string
(deserializer: D)
core/src/localization/digits.rs:3
Method
build_full_name
Builds the final resolved route name by applying all group name prefixes. This function constructs a fully-qualified route name using dot (`.`) notat
core/src/routing.rs:515
Method
build_full_path
Builds the final resolved path for a route by applying all group path prefixes. This function concatenates: - All `path_prefix` values from the route
core/src/routing.rs:468
Method
cascade_on_update
(&mut self)
core/src/db/table.rs:624
Method
change
(mut self)
core/src/db/table.rs:597
Method
collation
(mut self, collation: impl Into<String>)
core/src/db/table.rs:601
Method
column
( &self, column: &Column, table_name: &str, action: &TableAction, )
core/src/sql/mysql.rs:183
Method
column
( &self, column: &Column, table_name: &str, action: &TableAction, )
core/src/sql/sqlite.rs:169
Method
columns
()
app/src/models/todo_generated.rs:26
Function
convert_to_i64
Helper function to convert any numeric type to i64
macros-core/src/lib.rs:326
Function
convert_to_string
(value: T)
macros-core/src/lib.rs:334
Method
create_database
(&self, db_name: &str)
core/src/sql/mysql.rs:163
Method
create_database
(&self, _db_name: &str)
core/src/sql/sqlite.rs:146
Method
create_database
Creates a new database. # Behavior - Attempts to create a new database using the database generator. - Returns a boolean indicating success or failur
core/src/db/schema.rs:1022
Method
create_link
Create a symbolic link between source and destination paths # Arguments `source` - The source path to link from `destination` - The destination path
core/src/facades/file.rs:28
Method
db
(&self)
core/src/sql/mysql.rs:17
Method
debug
temp just for watch what we did
core/src/sql/query.rs:21
Method
decimal
add decimal column
core/src/db/table.rs:293
Method
default
()
core/src/config/app.rs:19
Method
default
()
core/src/config/database.rs:24
Method
default
()
macros-core/src/factory.rs:88
Method
default_current_timestamp
(mut self)
core/src/db/table.rs:592
Method
default_int
(mut self, value: i64)
core/src/db/table.rs:574
Method
default_json_array
(mut self)
core/src/db/table.rs:583
Method
default_str
(mut self, value: impl Into<String>)
core/src/db/table.rs:579
Function
derive_factory
(input: TokenStream)
macros/src/lib.rs:143
Method
deserialize
(deserializer: D)
graveyard/src/request_validator.rs:456
Function
deserialize_date
(deserializer: D)
core/src/facades/datetime.rs:215
Function
deserialize_datetime
(deserializer: D)
core/src/facades/datetime.rs:193
Function
deserialize_time
(deserializer: D)
core/src/facades/datetime.rs:238
Function
destroy
( State(_state): State<AppState>, params: RawPathParams, query: RawQuery, )
app/src/http/controllers/todo_controller.rs:75
Method
diff_for_humans
(&self)
core/src/facades/datetime.rs:721
Method
disable_foreign_key_constraints
(&self)
core/src/sql/mysql.rs:171
Method
disable_foreign_key_constraints
(&self)
core/src/sql/sqlite.rs:154
Method
double
add double column
core/src/db/table.rs:279
Method
drop
(&mut self)
core/src/db/table.rs:631
Method
drop_all_views
Drops all views in the database. This method: - Uses the database generator to create a SQL command to drop all views. - Executes the drop all views
core/src/db/schema.rs:767
Method
drop_column
(&self, column_name: &str)
core/src/sql/mysql.rs:422
Method
drop_column
(&self, column_name: &str)
core/src/sql/sqlite.rs:349
Method
drop_database_if_exists
(&self, db_name: &str)
core/src/sql/mysql.rs:167
Method
drop_database_if_exists
(&self, _db_name: &str)
core/src/sql/sqlite.rs:150
Method
drop_database_if_exists
Drops a database if it exists. # Behavior - Attempts to drop the specified database using the database generator. - Returns a boolean indicating succ
core/src/db/schema.rs:1064
Method
drop_table
(&self, table_name: &str)
core/src/sql/mysql.rs:71
Method
drop_table
(&self, table_name: &str)
core/src/sql/sqlite.rs:59
← previous
next →
101–200 of 359, ranked by callers