MCPcopy Create free account

hub / github.com/4xmen/rustavel / functions

Functions359 in github.com/4xmen/rustavel

↓ 35 callersFunctionerror
(msg: &str)
core/src/logger/global.rs:45
↓ 34 callersMethodis_empty
(&self)
macros-core/src/lib.rs:57
↓ 33 callersMethodclone
(&self)
core/src/routing.rs:63
↓ 30 callersFunctionis_string_type
Returns `true` if the given type is `String` or `Option<String>`.
macros/src/checkmate.rs:333
↓ 27 callersMethodcolumn
create new column
core/src/db/table.rs:126
↓ 26 callersFunctionis_option_type
(ty: &Type)
macros/src/checkmate.rs:233
↓ 23 callersMethodget
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 callersMethodname
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 callersMethodfetch_strings
(&self, sql: &str)
core/src/sql/database_client.rs:60
↓ 13 callersFunctionnow
()
core/src/facades/datetime.rs:77
↓ 13 callersFunctiontitle
Print a section title like: INFO Running migrations.
core/src/facades/terminal_ui.rs:15
↓ 11 callersMethodexecute
(&self, sql: &str)
core/src/sql/database_client.rs:51
↓ 11 callersMethodfix_table_name
(&self, table_name: &str)
core/src/db/schema.rs:138
↓ 9 callersFunctionassert_has_error
helper for check error
integration-tests/tests/validator_test.rs:56
↓ 9 callersFunctionoperation
Print a timed operation line similar to Laravel output
core/src/facades/terminal_ui.rs:27
↓ 8 callersMethodparse
(input: ParseStream)
macros/src/pawn.rs:172
↓ 7 callersMethodadd
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 callersFunctionextract_option_inner_type
If the given type is `Option<T>`, returns `Some(&T)`. Otherwise returns `None`.
macros/src/checkmate.rs:317
↓ 7 callersFunctioninfo
(msg: &str)
core/src/logger/global.rs:37
↓ 6 callersMethodget_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 callersMethodname
(&self)
database/src/migrations/m_2025_01_15_1945_create_todos.rs:32
↓ 6 callersMethodvalidate
validate column created by developer
core/src/db/table.rs:401
↓ 5 callersMethodall
()
core/src/sql/query.rs:9
↓ 5 callersMethodany
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 callersMethodcomment
(mut self, comment: impl Into<String>)
core/src/db/table.rs:564
↓ 5 callersMethodgroup
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 callersFunctionis_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 callersMethodprefix
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 callersFunctionpush_2
(out: &mut String, n: u8)
core/src/facades/datetime.rs:394
↓ 4 callersMethodas_str
(&self)
macros/src/checkmate.rs:465
↓ 4 callersMethodbuild
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 callersMethodcreate
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 callersMethodexecute_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 callersFunctionformat_php_imp
(dt: OffsetDateTime, format: &str)
core/src/facades/datetime.rs:400
↓ 4 callersFunctionis_date_type
Returns `true` if the given type is `Date` or `Option<Date>`.
macros/src/checkmate.rs:437
↓ 4 callersFunctionis_datetime_type
Returns `true` if the given type is `PrimitiveDateTime` or `Option<PrimitiveDateTime>`.
macros/src/checkmate.rs:425
↓ 4 callersFunctionis_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 callersFunctionjdate_imp
(dt: OffsetDateTime, format: &str)
core/src/facades/datetime.rs:272
↓ 4 callersFunctionnormalize_digits
(input: &str)
core/src/localization/digits.rs:10
↓ 4 callersMethodnullable
(mut self)
core/src/db/table.rs:544
↓ 4 callersFunctionsend
(level: LogLevel, msg: &str)
core/src/logger/global.rs:27
↓ 4 callersMethodstring
add string column
core/src/db/table.rs:224
↓ 3 callersMethoddate
add date column
core/src/db/table.rs:302
↓ 3 callersMethoddrop_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 callersMethodexpect_no_args
Errors if any argument was supplied to a generator that takes none.
macros/src/pawn.rs:196
↓ 3 callersMethodid
-------------------------------------------------------------------------------------------- add id column id
core/src/db/table.rs:213
↓ 3 callersMethodindex
(mut self)
core/src/db/table.rs:554
↓ 3 callersMethodis_empty
Checks if there are no validation errors. # Returns `true` if no errors exist, `false` otherwise
graveyard/src/request_validator.rs:77
↓ 3 callersMethodroute
(&self, route: &str)
core/src/state.rs:10
↓ 3 callersMethodunsigned
(mut self)
core/src/db/table.rs:559
↓ 3 callersFunctionwarn
(msg: &str)
core/src/logger/global.rs:41
↓ 2 callersMethodbig_integer
add big integer column
core/src/db/table.rs:274
↓ 2 callersMethodboolean
add boolean column
core/src/db/table.rs:219
↓ 2 callersFunctionbuild_one
Builds one instance from its definition and applies every state mutation in order.
macros-core/src/factory.rs:123
↓ 2 callersMethodcascade_on_delete
(&mut self)
core/src/db/table.rs:619
↓ 2 callersFunctionconfirm
(message: &str)
artisan/src/artisan.rs:17
↓ 2 callersFunctioncontroller
(args: &NewControllerArgs)
artisan/src/make/controller.rs:30
↓ 2 callersMethodcount
Switches to building `count` instances, returning a batch builder.
macros-core/src/factory.rs:74
↓ 2 callersFunctioncreate
(State(_state): State<AppState>)
app/src/http/controllers/todo_controller.rs:49
↓ 2 callersMethodcreate
Builds and returns a single instance.
macros-core/src/factory.rs:82
↓ 2 callersMethoddatetime
add datetime column
core/src/db/table.rs:307
↓ 2 callersMethoddefault_bool
(mut self, value: bool)
core/src/db/table.rs:569
↓ 2 callersMethoddefault_null
(mut self)
core/src/db/table.rs:587
↓ 2 callersFunctiondiff_for_humans_impl
(datetime: OffsetDateTime)
core/src/facades/datetime.rs:545
↓ 2 callersMethodexecute_params
( &self, sql: &str, params: &[&str], // ← str reference )
core/src/sql/database_client.rs:35
↓ 2 callersMethodfetch_count_params
( &self, sql: &str, params: &[&str], )
core/src/sql/database_client.rs:109
↓ 2 callersMethodforeign
add foreign key
core/src/db/table.rs:385
↓ 2 callersMethodget_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 callersFunctionget_columns
()
core/src/db/schema.rs:47
↓ 2 callersFunctionget_tables
()
core/src/db/schema.rs:28
↓ 2 callersMethodget_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 callersFunctionis_leap
(year: i32)
core/src/facades/datetime.rs:266
↓ 2 callersFunctionis_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 callersFunctionjalali_month_name
(m: u8)
core/src/facades/datetime.rs:525
↓ 2 callersMethodmiddleware
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 callersFunctionmigrate
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 callersFunctionnow_primitive
Returns the current date and time as a PrimitiveDateTime.
core/src/facades/datetime.rs:179
↓ 2 callersMethodon
(&mut self, referenced_table_name: impl Into<String>)
core/src/db/table.rs:614
↓ 2 callersMethodreference
(&mut self, referenced_column: impl Into<String>)
core/src/db/table.rs:609
↓ 2 callersMethodrequired_int
Extracts a single required integer argument named `key` (e.g. `length = 8`).
macros/src/pawn.rs:207
↓ 2 callersMethodrun
(mut self)
core/src/logger/worker.rs:24
↓ 2 callersFunctionsave_generated_model
(model_name: String, data: Option<ModelData>)
artisan/src/general/generate_model.rs:17
↓ 2 callersMethodsoft_delete
add soft delete column (deleted_at)
core/src/db/table.rs:327
↓ 2 callersMethodtimestamps
add timestamps columns (created_at, updated_at)
core/src/db/table.rs:322
↓ 1 callersFunctionadd
(left: u64, right: u64)
integration-tests/src/lib.rs:1
↓ 1 callersMethodadd
internal helper to reduce duplication
core/src/routing.rs:154
↓ 1 callersMethodadd_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 callersFunctionapi_routes
()
app/src/routes/api.rs:8
↓ 1 callersMethodcreate_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 callersMethoddefault
make default column data
core/src/db/table.rs:499
↓ 1 callersMethoddisable_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 callersMethoddown
(&self, schema: &mut Schema)
database/src/migrations/m_2025_01_15_1945_create_todos.rs:27
↓ 1 callersMethoddrop_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 callersMethoddrop_column
drop column
core/src/db/table.rs:433
↓ 1 callersMethoddrop_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 callersMethodenable_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 callersMethodexpand
expand rule validator code generate depends on filed type
macros/src/checkmate.rs:503
↓ 1 callersFunctionfake_init
Maps a `#[fake(...)]` attribute to a `fake`-crate expression that yields a `String`.
macros/src/pawn.rs:97
↓ 1 callersMethodfetch_numbers
(&self, sql: &str)
core/src/sql/database_client.rs:75
↓ 1 callersMethodfetch_strings_params
(&self, sql: &str, params: &[&str])
core/src/sql/database_client.rs:90
next →1–100 of 359, ranked by callers