MCPcopy Create free account

hub / github.com/JasonShin/sqlx-ts / functions

Functions287 in github.com/JasonShin/sqlx-ts

Methodmysql_fetch_table
( &self, table_names: &Vec<&str>, conn: &Mutex<Pool<MySqlConnectionManager>>, )
src/ts_generator/information_schema.rs:143
FunctionnameOverrideArrowFunction
()
tests/demo/typescript/expression/arrow-function.ts:5
Methodnew
(db_type: &str, generate_types: bool, generate_path: Option<PathBuf>, config_file_name: Option<String>)
test-utils/src/sandbox.rs:32
Methodnew
(cache: &'a HashMap<String, Arc<Mutex<DBConn>>>)
src/core/connection.rs:59
Methodnew
(conn_url: String)
src/core/postgres/pool.rs:11
Methodnew
(conn_url: String, connection_name: String)
src/core/mysql/pool.rs:12
Methodnew
(db_path: String, connection_name: String)
src/core/sqlite/pool.rs:24
Methodnew
()
src/ts_generator/information_schema.rs:34
Methodnew
(name: String)
src/ts_generator/types/ts_query.rs:378
Methodnew
()
src/common/config.rs:90
Methodnew
(path_to_dotenv: Option<String>)
src/common/dotenv.rs:27
FunctionplainArrowFunction
()
tests/demo/typescript/expression/arrow-function.ts:3
Functionpostgres_db_url_failure_test
()
tests/cli.rs:414
Functionpostgres_db_url_from_config_test
()
tests/cli.rs:279
Functionpostgres_db_url_test
()
tests/cli.rs:230
Methodpostgres_fetch_table
( &self, schema: &String, table_names: &Vec<&str>, conn: &Mutex<Pool<PostgresConnectionManager
src/ts_generator/information_schema.rs:68
Functionprepare
Runs the prepare statement on the input SQL. Validates the query is right by directly connecting to the configured database. It also processes ts inte
src/core/postgres/prepare.rs:11
Functionprepare
Runs the prepare statement on the input SQL. Validates the query is right by directly connecting to the configured SQLite database. It also processes
src/core/sqlite/prepare.rs:12
MethodprivateMethod
()
tests/demo/typescript/expression/class-accessors.ts:21
MethodpublicMethod
()
tests/demo/typescript/expression/class-accessors.ts:25
Methodset_db_host
(&mut self, db_host: String)
test-utils/src/sandbox.rs:88
Methodset_db_name
(&mut self, db_name: String)
test-utils/src/sandbox.rs:108
Methodset_db_pass
(&mut self, db_pass: String)
test-utils/src/sandbox.rs:103
Methodset_db_port
(&mut self, db_port: i32)
test-utils/src/sandbox.rs:93
Methodset_db_type
(&mut self, db_type: String)
test-utils/src/sandbox.rs:78
Methodset_db_user
(&mut self, db_user: String)
test-utils/src/sandbox.rs:98
Methodset_file_extension
(&mut self, file_extension: String)
test-utils/src/sandbox.rs:83
Functionshould_detect_invalid_sql
()
tests/sqlite_query_parameters.rs:217
Functionshould_exit_with_code_0_when_no_errors
()
tests/exit_code_on_error.rs:57
Functionshould_exit_with_code_1_when_sql_errors_detected
()
tests/exit_code_on_error.rs:11
Functionshould_fail_with_many_successes_and_one_failure_in_middle
()
tests/exit_code_on_error.rs:99
Functionshould_fail_with_multiple_files_one_success_one_failure
()
tests/exit_code_on_error.rs:154
Functionshould_handle_insert_with_params
()
tests/sqlite_query_parameters.rs:138
Functionshould_handle_multiple_types
()
tests/sqlite_query_parameters.rs:169
Functionshould_handle_query_params_with_question_mark
()
tests/sqlite_query_parameters.rs:104
Functionshould_not_warn_on_field_names_of_asterix
()
tests/alias.rs:46
Functionshould_recognize_coalesce_as_type_polymorphic
()
src/ts_generator/sql_parser/expressions/functions.test.rs:75
Functionshould_recognize_ifnull_as_type_polymorphic
()
src/ts_generator/sql_parser/expressions/functions.test.rs:68
Functionshould_recognize_nullif_as_type_polymorphic
()
src/ts_generator/sql_parser/expressions/functions.test.rs:81
Functionshould_return_date_method_falsy
()
src/ts_generator/sql_parser/expressions/functions.test.rs:47
Functionshould_return_date_method_truthy
()
src/ts_generator/sql_parser/expressions/functions.test.rs:38
Functionshould_return_numeric_method_falsy
()
src/ts_generator/sql_parser/expressions/functions.test.rs:17
Functionshould_return_numeric_method_truthy
()
src/ts_generator/sql_parser/expressions/functions.test.rs:8
Functionshould_return_string_method_falsy
()
src/ts_generator/sql_parser/expressions/functions.test.rs:32
Functionshould_return_string_method_truthy
()
src/ts_generator/sql_parser/expressions/functions.test.rs:23
Functionshould_return_type_polymorphic_function_falsy
()
src/ts_generator/sql_parser/expressions/functions.test.rs:62
Functionshould_return_type_polymorphic_function_truthy
()
src/ts_generator/sql_parser/expressions/functions.test.rs:53
Functionshould_select_default_for_unnamed_expr
()
src/ts_generator/sql_parser/expressions/translate_table_with_joins.test.rs:12
Functionshould_select_default_for_unnamed_expr_with_table_alias
()
src/ts_generator/sql_parser/expressions/translate_table_with_joins.test.rs:36
Functionshould_select_join_table_for_expr_with_alias
()
src/ts_generator/sql_parser/expressions/translate_table_with_joins.test.rs:86
Functionshould_select_join_table_for_unnamed_expr_with_table_alias
()
src/ts_generator/sql_parser/expressions/translate_table_with_joins.test.rs:60
Functionshould_succeed_with_multiple_files_all_successful
()
tests/exit_code_on_error.rs:213
Functionshould_validate_simple_select
()
tests/sqlite_query_parameters.rs:70
Functionshould_warn_on_clashing_field_names_on_join
()
tests/alias.rs:9
Functionshould_warn_on_clashing_field_names_on_join_asterix
()
tests/alias.rs:80
MethodsomeMethod
()
tests/demo/typescript/expression/class-accessors.ts:48
Methodsql2
()
tests/demo/typescript/expression/types.ts:25
Methodsql3
(value: string)
tests/demo/typescript/expression/types.ts:26
Methodsqlite_fetch_table
( &self, table_names: &Vec<&str>, conn: &Mutex<Pool<SqliteConnectionManager>>, )
src/ts_generator/information_schema.rs:216
Methodtest
()
tests/demo/typescript/expression/class-accessors.ts:6
Functiontest1
()
test-utils/src/lib.rs:18
FunctiontestIfStatement
()
tests/demo/typescript/statement/if.ts:7
Functiontest_cjs_files
()
tests/demo_happy_path.rs:215
Functiontest_cts_files
()
tests/demo_happy_path.rs:167
Functiontest_display_object_name_qualified_database_schema_table
()
src/ts_generator/sql_parser/quoted_strings.rs:102
Functiontest_display_object_name_qualified_schema_table
()
src/ts_generator/sql_parser/quoted_strings.rs:94
Functiontest_display_object_name_qualified_with_quotes
()
src/ts_generator/sql_parser/quoted_strings.rs:118
Functiontest_display_object_name_single_identifier
()
src/ts_generator/sql_parser/quoted_strings.rs:86
Functiontest_display_object_name_with_quotes
()
src/ts_generator/sql_parser/quoted_strings.rs:110
Functiontest_empty_sql_file
()
tests/sql_file_support.rs:487
Functiontest_js_files
()
tests/demo_happy_path.rs:119
Functiontest_mjs_files
()
tests/demo_happy_path.rs:191
Functiontest_mts_files
()
tests/demo_happy_path.rs:143
Functiontest_multiple_extensions
()
tests/demo_happy_path.rs:263
Functiontest_multiple_queries_in_single_sql_file
()
tests/sql_file_support.rs:45
Functiontest_multiple_sql_files_in_directory
()
tests/sql_file_support.rs:306
Functiontest_playpen_schema_inventory_items_relationship
()
tests/sql_file_support.rs:518
Functiontest_single_sql_file_validation
()
tests/sql_file_support.rs:10
Functiontest_sql_file_type_generation
()
tests/sql_file_support.rs:88
Functiontest_sql_file_type_generation_with_custom_path
()
tests/sql_file_support.rs:441
Functiontest_sql_file_with_comments_and_whitespace
()
tests/sql_file_support.rs:246
Functiontest_sql_file_with_complex_queries
()
tests/sql_file_support.rs:143
Functiontest_sql_file_with_database_connection_annotation
()
tests/sql_file_support.rs:381
Functiontest_sql_file_with_invalid_syntax
()
tests/sql_file_support.rs:343
Functiontest_sql_file_with_mysql_syntax
()
tests/sql_file_support.rs:204
Functiontest_sql_files
()
tests/demo_happy_path.rs:239
Methodwarning
(message: &str, log_level: LogLevel)
src/common/config.rs:429
← previous201–287 of 287, ranked by callers