doc see website
-
1 It is recommended to clone this project using Intellij Clion/VSCode
-
2 next,you should run command
git clone https://github.com/rbatis/rbatis.git -
3 next,you should run command
git pull -
4 next,you should run command
cargo update
- crud.rs: Demonstrates basic CRUD (Create, Read, Update, Delete) operations.
- crud_json.rs: Shows storing and querying JSON data.
- crud_sql.rs: Illustrates the usage of ids: &[&str] parameter, which directly converts to SQL statements.
- log.rs: Demonstrates how to set up a logging interceptor in rbatis.
- macro_proc_htmlsql.rs: Shows the usage of htmlsql for processing HTML-like SQL statements.
- macro_proc_htmlsql_custom_func.rs: Demonstrates the functionality of custom functions in htmlsql.
- macro_proc_htmlsql_file.rs: Shows how to load html_sql statements from a file.
- macro_proc_htmlsql_page.rs: Illustrates pagination using htmlsql.
- macro_proc_pysql: Demonstrates the usage of pysql.
- macro_proc_rawsql: Shows how to use raw SQL statements in rbatis.
- plugin_intercept: Demonstrates the usage of interceptors in rbatis.
- plugin_intercept_read_write_separation: Read write separation DataBase
- plugin_table_sync: Illustrates automatically synchronizing struct definitions to table structures.
- pool_custom: Shows how to customize connection pool parameters.
- table_extend.rs: Demonstrates a struct inheriting members from another struct.
- transaction: Shows how to use transactions in rbatis.
- mysql
docker run -d --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql
- postgres
docker run --name postgres -e POSTGRES_PASSWORD=123456 -p 5432:5432 -d postgres
- mssql
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=TestPass!123456" -p 1433:1433 --name sqlservercontainer -d mcr.microsoft.com/mssql/server:2022-latest