jjw

写给自己的博客。 记录学习的点滴以备查。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 11 下一页

2023年8月25日

摘要: TOL = class(TObject) public procedure W(W: TJsonWriter; Instance: TObject; Options: TTextWriterWriteObjectOptions); end; TPerson = class private FName 阅读全文

posted @ 2023-08-25 14:06 jjw 阅读(411) 评论(0) 推荐(0)

2023年8月22日

摘要: TFileServiceFunction = record strict private type TFunctionNameRec = record const LoadFile = 'LoadFile'; SaveFile = 'SaveFile'; GetAllFileNames = 'Get 阅读全文

posted @ 2023-08-22 14:34 jjw 阅读(217) 评论(0) 推荐(0)

2023年8月17日

摘要: mormot2框架中有个THttpServer类,它有一个Router属性,定义如下: property Router: TUriRouter read fRoute; Router是添加路由的入口点,它有和http协议对应的get, post, put, delete等方法,这些方法可以添加路由, 阅读全文

posted @ 2023-08-17 10:23 jjw 阅读(1379) 评论(0) 推荐(0)

2023年8月15日

摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文

posted @ 2023-08-15 16:20 jjw 阅读(635) 评论(0) 推荐(0)

2023年8月14日

摘要: TConverterEx<T: class> = class(TJsonConverter) public function CanConvert(ATypeInf: PTypeInfo): Boolean; override; function ReadJson(const AReader: TJ 阅读全文

posted @ 2023-08-14 18:28 jjw 阅读(305) 评论(0) 推荐(0)

摘要: TConverterCommon = class(TJsonConverter) public function CanConvert(ATypeInf: PTypeInfo): Boolean; override; function ReadJson(const AReader: TJsonRea 阅读全文

posted @ 2023-08-14 14:54 jjw 阅读(379) 评论(0) 推荐(0)

2023年8月9日

摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文

posted @ 2023-08-09 17:00 jjw 阅读(398) 评论(0) 推荐(0)

2023年7月12日

摘要: typeorm中的createContection已经被废弃,改为DataSource,dataSource.initialize()方法会连接数据库,返的是个promise. const con = new DataSource({ type: 'mssql', ...options, optio 阅读全文

posted @ 2023-07-12 17:53 jjw 阅读(28) 评论(0) 推荐(0)

摘要: const fp = require('fastify-plugin') const { DataSource } = require('typeorm') function dbPlugin(fastify, options, done) { const con = new DataSource( 阅读全文

posted @ 2023-07-12 17:49 jjw 阅读(19) 评论(0) 推荐(0)

摘要: const routes = (fastify, options, done) => { fastify.post('/login', async (request, reply) => { return 'ok' }) fastify.get('/getBooks', async (request 阅读全文

posted @ 2023-07-12 17:43 jjw 阅读(27) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 11 下一页