{"id":2606,"date":"2015-06-23T17:17:37","date_gmt":"2015-06-23T09:17:37","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2606"},"modified":"2015-06-23T17:23:10","modified_gmt":"2015-06-23T09:23:10","slug":"qdb-firedac-qdb-%e7%9a%84%e6%b5%81%e8%bd%ac%e6%8d%a2%e5%99%a8%e6%ad%a3%e5%9c%a8%e5%bc%80%e5%8f%91%e4%b8%ad%ef%bc%8c%e7%9b%ae%e5%89%8d%e5%b7%b2%e7%bb%8f%e8%83%bd%e8%af%bb%e5%8f%96%e6%95%b0","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2606","title":{"rendered":"[QDB] FireDAC -> QDB \u7684\u6d41\u8f6c\u6362\u5668\u6b63\u5728\u5f00\u53d1\u4e2d\uff0c\u76ee\u524d\u5df2\u7ecf\u80fd\u8bfb\u53d6\u6570\u636e"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>\u867d\u7136\u4e0d\u5b8c\u5584\uff0c\u4f46\u662f\u4e00\u4e2a\u597d\u7684\u5f00\u59cb\u3002\u8fd9\u4e2a\u662f\u76f4\u63a5\u4ece FireDAC \u7684\u4e8c\u8fdb\u5236\u683c\u5f0f\u89e3\u6790\u751f\u6210\u7684\u6570\u636e\uff0c\u4e0d\u9700\u8981 FireDAC \u76f8\u5173\u7684\u5355\u5143\uff0c\u901a\u8fc7 TQFDConverter \u76f4\u63a5\u89e3\u6790\u6587\u4ef6\u6570\u636e\u6765\u5b8c\u6210\u3002\u8fd9\u6837\u5927\u5bb6\u5728\u8bbe\u8ba1\u624b\u673a\u7aef\u7a0b\u5e8f\u65f6\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u7528 QDataSet \u4ee3\u66ff FireDAC \u7684\u76f8\u5173\u7ec4\u4ef6\u3002<\/p>\n<p>\u8981\u5c06 FireDAC \u7684\u6570\u636e\u6d41\u52a0\u8f7d\u5230 TQDataSet \u4e2d\uff0c\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u53e5\u4ee3\u7801\u5373\u53ef\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">ADataSet.LoadFromStream(AStream, TFDBinaryConverter);<\/pre>\n<p>\u5176\u4e2d\uff0cADataSet \u662f TQDataSet \u7c7b\u578b\u7684\u5bf9\u8c61\uff0cAStream \u662f\u4fdd\u5b58\u7740 FireDAC \u8fd4\u56de\u7684\u7ed3\u679c\u96c6\u5185\u5bb9\u7684\u6570\u636e\u6d41\u3002\u76ee\u524d\u5b9e\u73b0\u7684\u662f\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684\u652f\u6301\uff0cXML \u548c JSON \u683c\u5f0f\u7684\u652f\u6301\u4ee5\u540e\u518d\u52a0\u5165\u3002<br \/>\n<a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/06\/FireDAC_QDB.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2607\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/06\/FireDAC_QDB.jpg\" alt=\"FireDAC_QDB\" width=\"950\" height=\"679\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/06\/FireDAC_QDB.jpg 950w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/06\/FireDAC_QDB-300x214.jpg 300w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u867d\u7136\u4e0d\u5b8c\u5584\uff0c\u4f46\u662f\u4e00\u4e2a\u597d\u7684\u5f00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,66,21],"tags":[426],"class_list":["post-2606","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-qdb","category-misc","tag-firedac"],"views":3474,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2606"}],"version-history":[{"count":3,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2606\/revisions"}],"predecessor-version":[{"id":2610,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2606\/revisions\/2610"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}