摘要: const amqp = require('amqplib'); async function consumeMessages() { try { // 1. 连接 RabbitMQ const connection = await amqp.connect('amqp://localhost'); 阅读全文
posted @ 2025-12-05 16:06 liliyou 阅读(3) 评论(0) 推荐(0)
摘要: <update id="batchUpdateDynamic"> UPDATE user SET <foreach collection="fields" item="field" separator=","> ${field.name} = #{field.value} </foreach> WH 阅读全文
posted @ 2025-12-02 15:41 liliyou 阅读(4) 评论(0) 推荐(0)
摘要: SELECT DATE_FORMAT(CURRENT_TIMESTAMP, '%Y-%m-%d %H:%i:%s') AS formatted_time; 阅读全文
posted @ 2025-12-01 16:39 liliyou 阅读(8) 评论(0) 推荐(0)
摘要: 镜像源名称 镜像地址 备注微软官方中国镜像 https://nuget.cdn.azure.cn/v3/index.json 官方推荐的国内镜像华为云镜像 https://repo.huaweicloud.com/repository/nuget/v3/index.json 稳定且速度快腾讯云镜像 阅读全文
posted @ 2025-11-27 09:35 liliyou 阅读(412) 评论(0) 推荐(0)
摘要: // 启用WAL模式提高并发性能 Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db"); Statement stmt = conn.createStatement(); stmt.execute("PRAGMA j 阅读全文
posted @ 2025-11-13 15:17 liliyou 阅读(5) 评论(0) 推荐(0)
摘要: -- 如果新表不存在,则创建并插入数据 CREATE TABLE new_table AS SELECT * FROM source_table WHERE your_conditions; 阅读全文
posted @ 2025-11-07 08:30 liliyou 阅读(6) 评论(0) 推荐(0)
摘要: truncate -s 0 test.txt 阅读全文
posted @ 2025-11-03 09:55 liliyou 阅读(5) 评论(0) 推荐(0)
摘要: "D:\Program Files\Git\bin\bash.exe" -c "ls" 阅读全文
posted @ 2025-09-23 09:18 liliyou 阅读(15) 评论(0) 推荐(0)
摘要: vcpkg install nlohmann-json 阅读全文
posted @ 2025-09-20 09:36 liliyou 阅读(8) 评论(0) 推荐(0)
摘要: Qt5.6.3 是最后支持xp系统的长期支持版本。 阅读全文
posted @ 2025-07-11 16:34 liliyou 阅读(36) 评论(0) 推荐(0)