MCPcopy Create free account

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

Functions359 in github.com/4xmen/rustavel

Methoddrop_table_if_exists
(&self, table_name: &str)
core/src/sql/mysql.rs:23
Methoddrop_table_if_exists
(&self, table_name: &str)
core/src/sql/sqlite.rs:17
Methoddrop_table_if_exists
Drops a table if it exists. This method: - Normalizes the provided table_name using self.fix_table_name. - Generates a DROP TABLE IF EXISTS SQL state
core/src/db/schema.rs:168
Methoddrop_view
(&self, view_name: &str)
core/src/sql/mysql.rs:75
Methoddrop_view
(&self, view_name: &str)
core/src/sql/sqlite.rs:62
Functionedit
(State(_state): State<AppState>, params: RawPathParams)
app/src/http/controllers/todo_controller.rs:57
Methodenable_foreign_key_constraints
(&self)
core/src/sql/mysql.rs:175
Methodenable_foreign_key_constraints
(&self)
core/src/sql/sqlite.rs:158
Methodenums
add enum column
core/src/db/table.rs:363
Methodexists_record
(&self, table: &str, column: &str, wanted: &str)
core/src/db/schema.rs:1831
Methodexists_record_except
( &self, table: &str, column: &str, wanted: &str, except_col: &str,
core/src/db/schema.rs:1869
Methodexpecting
(&self, formatter: &mut fmt::Formatter)
core/src/localization/numbers.rs:27
Methodexpecting
(&self, f: &mut std::fmt::Formatter)
graveyard/src/request_validator.rs:468
Methodfactory
Starts a fluent builder. The returned builder produces a single instance via [`FactoryBuilder::create`]; call [`FactoryBuilder::count`] to produce ma
macros-core/src/factory.rs:37
Methodfloat
add float column
core/src/db/table.rs:284
Methodforeign_key
(&self, key: &ForeignKey, _table_name: &str, action: &TableAction)
core/src/sql/sqlite.rs:326
Methodfrom
(err: TemplateError)
artisan/src/make/make_error.rs:12
Methodfrom
(err: sqlx::Error)
core/src/sql/database_client.rs:27
Methodfrom_env
()
core/src/config/app.rs:37
Methodfrom_env
()
core/src/config/database.rs:40
Methodfrom_request
( req: Request<Body>, state: &S, )
core/src/http/request.rs:20
Methodfrom_str
(s: &str)
core/src/config/database.rs:93
Methodget_column_listing
(&self, table_name: &str)
core/src/sql/mysql.rs:46
Methodget_column_listing
(&self, table_name: &str)
core/src/sql/sqlite.rs:40
Methodget_current_schema_name
WIP : may use on postgres db
core/src/db/schema.rs:469
Methodget_foreign_keys
(&self, table_name: &str)
core/src/sql/mysql.rs:58
Methodget_foreign_keys
(&self, table_name: &str)
core/src/sql/sqlite.rs:55
Methodget_next_batch_number
(&self)
core/src/sql/mysql.rs:458
Methodget_next_batch_number
(&self)
core/src/sql/sqlite.rs:391
Methodget_ran
(&self)
core/src/sql/sqlite.rs:382
Methodget_ran_gt
(&self)
core/src/sql/sqlite.rs:386
Functionget_static_schema
()
core/src/db/mod.rs:9
Methodget_tables
(&self)
core/src/sql/mysql.rs:27
Methodget_tables
(&self)
core/src/sql/sqlite.rs:21
Methodget_views
(&self)
core/src/sql/mysql.rs:37
Methodget_views
(&self)
core/src/sql/sqlite.rs:31
Functiongroup_route_test
()
integration-tests/tests/route_test.rs:19
Methodhas_column
(&self, table_name: &str, column_name: &str)
core/src/sql/mysql.rs:99
Methodhas_column
(&self, table_name: &str, column_name: &str)
core/src/sql/sqlite.rs:85
Methodhas_column
Checks if a specific column exists in a given table. This method: - Fixes the table name to ensure proper formatting. - Uses the database generator t
core/src/db/schema.rs:818
Methodhas_index
(&self, table_name: &str, columns_name: Vec<&str>)
core/src/sql/mysql.rs:139
Methodhas_index
(&self, table_name: &str, columns_name: Vec<&str>)
core/src/sql/sqlite.rs:123
Methodhas_index
Checks if a specific index exists on a table for given columns. This method: - Fixes the table name to ensure proper formatting. - Uses the database
core/src/db/schema.rs:974
Methodhas_table
(&self, table_name: &str)
core/src/sql/mysql.rs:113
Methodhas_table
(&self, table_name: &str)
core/src/sql/sqlite.rs:97
Methodhas_view
(&self, table_name: &str)
core/src/sql/mysql.rs:126
Methodhas_view
(&self, table_name: &str)
core/src/sql/sqlite.rs:110
Methodhas_view
Checks if a specific view exists in the database. This method: - Fixes the view name to ensure proper formatting. - Uses the database generator to cr
core/src/db/schema.rs:925
Functionhello
(State(state): State<AppState>)
app/src/routes/web.rs:43
Functionhello_api
()
app/src/routes/api.rs:36
Functionindex
(State(_state): State<AppState>)
app/src/http/controllers/todo_controller.rs:16
Functionis_after
Validate if `value` is after the given date (YYYY-MM-DD).
macros-core/src/lib.rs:224
Functionis_after_option
(value: &str, target: &str)
macros-core/src/lib.rs:238
Functionis_after_option_date_ex
(value: Date, target: &str)
macros-core/src/lib.rs:266
Functionis_after_option_datetime_ex
(value: PrimitiveDateTime, target: &str)
macros-core/src/lib.rs:253
Functionis_before
Validate if `value` is before the given date (YYYY-MM-DD).
macros-core/src/lib.rs:231
Functionis_before_option
(value: &str, target: &str)
macros-core/src/lib.rs:282
Functionis_before_option_date_ex
(value: Date, target: &str)
macros-core/src/lib.rs:311
Functionis_before_option_datetime_ex
(value: PrimitiveDateTime, target: &str)
macros-core/src/lib.rs:298
Functionis_valid_ascii
Returns `true` if all characters in the string are ASCII. This function checks whether every byte in the string is within the ASCII range (0x00..=0x7
macros-core/src/lib.rs:131
Functionis_valid_ascii_alphanumeric
Returns `true` if all characters in the string are ASCII alphanumeric. This function checks whether every character in the string is within the ASCII
macros-core/src/lib.rs:149
Functionis_valid_date
Validate if the given string is a valid date (YYYY-MM-DD).
macros-core/src/lib.rs:185
Functionis_valid_datetime
Validate if the given string is a valid datetime (YYYY-MM-DD HH:MM:SS).
macros-core/src/lib.rs:198
Functionis_valid_email
Validate if the given string is a properly formatted email address. This function uses a regular expression to check that the input string matches th
macros-core/src/lib.rs:80
Functionis_valid_hex_color
Validate if the given string is a valid hexadecimal color. Supports formats like: - #FFF - #FFFFFF - FFF - FFFFFF
macros-core/src/lib.rs:114
Functionis_valid_ip
Returns `true` if the string is a valid IPv4 or IPv6 address. This function tries to parse the string into an `IpAddr`. If parsing succeeds, the stri
macros-core/src/lib.rs:167
Functionis_valid_json
Checks whether the input is valid JSON. Input: value `&str` Output: `true` if the string is a complete, valid JSON value; otherwise `false`. Behavior:
macros-core/src/lib.rs:175
Functionis_valid_time
Validate if the given string is a valid time (HH:MM:SS).
macros-core/src/lib.rs:211
Functionis_valid_url
Validate if the given string is a properly formatted URL. This function checks if the input string matches the general format for URLs. It supports s
macros-core/src/lib.rs:100
Functionit_works
()
integration-tests/src/lib.rs:10
Methodjson
add json column
core/src/db/table.rs:249
Methodldate
(&self, format: &str)
core/src/facades/datetime.rs:712
Methodlevel_str
(level: &LogLevel)
core/src/logger/worker.rs:47
Methodload
()
core/src/config/mod.rs:14
Functionlog_request
(req: Request<Body>, next: Next)
app/src/http/middleware/log_middleware.rs:6
Methodlong_text
add long text column
core/src/db/table.rs:244
Functionmain
()
artisan/src/artisan.rs:72
Functionmain
()
database/src/main.rs:27
Functionmain
()
app/build.rs:7
Functionmain
()
app/src/rustavel.rs:17
Functionmain
()
graveyard/src/main.rs:3
Methodmake_field
make field datatype of table
core/src/db/table.rs:163
Methodmaster
(&self)
core/src/sql/sqlite.rs:11
Functionmate_validate
(input: TokenStream)
macros/src/lib.rs:38
Methodmedium_integer
add medium integer column
core/src/db/table.rs:269
Methodmedium_text
add medium text column
core/src/db/table.rs:239
Methodmorph
add morph columns ({morph}_type, {morph}_id)
core/src/db/table.rs:336
Methodnew
()
core/src/routing.rs:53
Methodnew
(rx: UnboundedReceiver<LogMessage>)
core/src/logger/worker.rs:14
Methodnew
()
core/src/db/schema.rs:93
Methodnew
create new instance of table
core/src/db/table.rs:108
Methodnew
()
macros-core/src/lib.rs:44
Methodnew
Creates an empty builder. Prefer [`Factory::factory`].
macros-core/src/factory.rs:58
Methodnew
Creates a new, empty ValidationErrors collection. # Returns An empty ValidationErrors instance
graveyard/src/request_validator.rs:69
Functionnow_compact
()
core/src/facades/datetime.rs:100
Functionnow_rfc2822
()
core/src/facades/datetime.rs:109
Functionnow_ymd
()
core/src/facades/datetime.rs:83
Functionnow_ymd_hms
()
core/src/facades/datetime.rs:89
Methodnullable_morphs
add nullable morph columns ({morph}_type, {morph}_id)
core/src/db/table.rs:349
Functionparse_compact
( input: &str, )
core/src/facades/datetime.rs:160
← previousnext →201–300 of 359, ranked by callers