Skip to content

Instantly share code, notes, and snippets.

View raelb's full-sized avatar

Rael Bauer raelb

View GitHub Profile
@raelb
raelb / sample.pas
Created September 21, 2024 22:37
serialize record with RecordSaveJson/DynArraySaveJson
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,
mormot.core.base;
@raelb
raelb / sample.pas
Last active September 23, 2024 21:50
mormot service method returns base64 string on Lazarus
type
TNotebook = packed record
ID: TID;
Title: RawUTF8;
GUID: RawUTF8;
CurrentNote: TID;
procedure LoadFromObj(OrmNotebook: TOrmNotebook);
end;
TNotebookArray = array of TNotebook;