"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[4270],{6780:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"XXTLanControl.lua/tabledb/README","title":"\u6570\u636e\u8868\u64cd\u4f5c","description":"LCC.db \u4e3a\u7ed3\u6784\u5316\u6570\u636e\u63d0\u4f9b\u8868\u683c\u5b58\u50a8\uff0c\u6240\u6709\u7528\u6237\u5217\u5747\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u5b58\u50a8\uff0c\u81ea\u52a8\u9644\u5e26\u81ea\u589e id\u3002","source":"@site/docs/XXTLanControl.lua/tabledb/README.md","sourceDirName":"XXTLanControl.lua/tabledb","slug":"/XXTLanControl.lua/tabledb/","permalink":"/docs/XXTLanControl.lua/tabledb/","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":10,"frontMatter":{"sidebar_position":10},"sidebar":"tutorialSidebar","previous":{"title":"\u83b7\u53d6\u961f\u5217\u957f\u5ea6 (LCC.kvdb.queue.size)","permalink":"/docs/XXTLanControl.lua/kvdb/queue/size"},"next":{"title":"\u521b\u5efa\u6570\u636e\u8868 (LCC.db.create)","permalink":"/docs/XXTLanControl.lua/tabledb/create"}}');var l=t(4848),o=t(8453);const s={sidebar_position:10},c="\u6570\u636e\u8868\u64cd\u4f5c",i={},d=[{value:"\u5f15\u5165\u6a21\u5757",id:"\u5f15\u5165\u6a21\u5757",level:2},{value:"\u5f00\u59cb\u4e4b\u524d",id:"\u5f00\u59cb\u4e4b\u524d",level:2}];function a(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.header,{children:(0,l.jsx)(n.h1,{id:"\u6570\u636e\u8868\u64cd\u4f5c",children:"\u6570\u636e\u8868\u64cd\u4f5c"})}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"LCC.db"})," \u4e3a\u7ed3\u6784\u5316\u6570\u636e\u63d0\u4f9b\u8868\u683c\u5b58\u50a8\uff0c\u6240\u6709\u7528\u6237\u5217\u5747\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u5b58\u50a8\uff0c\u81ea\u52a8\u9644\u5e26\u81ea\u589e ",(0,l.jsx)(n.code,{children:"id"}),"\u3002"]}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"\u63d0\u4f9b\u521b\u5efa\u8868\u3001\u6279\u91cf\u65b0\u589e\u3001\u7f16\u8f91\u3001\u5220\u9664\u63a5\u53e3"}),"\n",(0,l.jsxs)(n.li,{children:["\u63d0\u4f9b ",(0,l.jsx)(n.code,{children:"get"}),"\u3001",(0,l.jsx)(n.code,{children:"list"}),"\u3001",(0,l.jsx)(n.code,{children:"count"}),"\u3001",(0,l.jsx)(n.code,{children:"fetch_one"})," \u7b49\u8bfb\u53d6\u80fd\u529b"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"fetch_one"})," \u7528\u4e8e\u5e76\u53d1\u5b89\u5168\u5730\u9886\u53d6\u5355\u884c\u4efb\u52a1"]}),"\n",(0,l.jsx)(n.li,{children:"\u9002\u5408\u628a\u754c\u9762\u91cc\u7ef4\u62a4\u7684\u6570\u636e\u8868\u7ee7\u7eed\u4ea4\u7ed9\u811a\u672c\u6216\u8ba1\u5212\u4efb\u52a1\u5904\u7406"}),"\n"]}),"\n",(0,l.jsx)(n.h2,{id:"\u5f15\u5165\u6a21\u5757",children:"\u5f15\u5165\u6a21\u5757"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-lua",children:'local LCC = require("XXTLanControl")\n'})}),"\n",(0,l.jsx)(n.h2,{id:"\u5f00\u59cb\u4e4b\u524d",children:"\u5f00\u59cb\u4e4b\u524d"}),"\n",(0,l.jsxs)(n.p,{children:["\u4f7f\u7528\u4efb\u4f55\u63a5\u53e3\u524d\uff0c\u8bf7\u786e\u4fdd\u5df2\u7ecf\u8c03\u7528 ",(0,l.jsx)(n.code,{children:"LCC.set_api_url()"})," \u6216\u4ece\u4e2d\u63a7\u542f\u52a8\u811a\u672c\uff0c\u5e76\u6267\u884c ",(0,l.jsx)(n.code,{children:"LCC.connect()"})," \u5b8c\u6210\u521d\u59cb\u5316\u3002"]})]})}function u(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(a,{...e})}):a(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var r=t(6540);const l={},o=r.createContext(l);function s(e){const n=r.useContext(o);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:s(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]);