# 06-crm **Repository Path**: czlan91/06-crm ## Basic Information - **Project Name**: 06-crm - **Description**: rust 第六周 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-27 - **Last Updated**: 2024-07-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Geektime Rust 语言训练营 ## protobuf 1. 本地安装 protobuf 2. 安装 protobuf 依赖 prost, prost-build, prost-types 3. 创建 protobuf 文件 4. 在项目目录下,创建 build.rs文件, ## faker-rs 生成数据 ## 初始化数据库 ```shell ❯ sqlx migrate add init ❯ touch .env ❯ sqlx migrate run ``` ## ```sql -- 查看索引大小 select pg_size_pretty (pg_indexes_size('user_stats')) size; -- 查看数据的大小 select pg_size_pretty (pg_relation_size('user_stats')) size; ```