mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
deploy: b982a68337
This commit is contained in:
1 parent
bdb3fd0a69
commit
17388606cc
87 files changed
+475
-287
No files matched your search
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7835],{3905:function(e,t,n){n.d(t,{Zo:function(){return c},kt:function(){return d}});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=a.createContext({}),u=function(e){var t=a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},c=function(e){var t=u(e.components);return a.createElement(l.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},p=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,l=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),p=u(n),d=r,y=p["".concat(l,".").concat(d)]||p[d]||m[d]||o;return n?a.createElement(y,s(s({ref:t},c),{},{components:n})):a.createElement(y,s({ref:t},c))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,s=new Array(o);s[0]=p;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:r,s[1]=i;for(var u=2;u<o;u++)s[u]=n[u];return a.createElement.apply(null,s)}return a.createElement.apply(null,n)}p.displayName="MDXCreateElement"},1409:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return i},contentTitle:function(){return l},metadata:function(){return u},assets:function(){return c},toc:function(){return m},default:function(){return d}});var a=n(7462),r=n(3366),o=(n(7294),n(3905)),s=["components"],i={},l="Transaction",u={unversionedId:"oxmysql/Usage/transaction",id:"oxmysql/Usage/transaction",title:"Transaction",description:"todo - update formatting and information",source:"@site/docs/oxmysql/Usage/transaction.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/transaction",permalink:"/docs/oxmysql/Usage/transaction",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/transaction.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Single",permalink:"/docs/oxmysql/Usage/single"},next:{title:"Update",permalink:"/docs/oxmysql/Usage/update"}},c={},m=[{value:"Transactions",id:"transactions",level:2},{value:"Specific Format",id:"specific-format",level:3},{value:"Usage",id:"usage",level:3},{value:"Lua",id:"lua",level:4},{value:"JavaScript",id:"javascript",level:4},{value:"Shared Format",id:"shared-format",level:3},{value:"Lua",id:"lua-1",level:4},{value:"JavaScript",id:"javascript-1",level:4},{value:"Transaction Isolation Level",id:"transaction-isolation-level",level:2}],p={toc:m};function d(e){var t=e.components,n=(0,r.Z)(e,s);return(0,o.kt)("wrapper",(0,a.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"transaction"},"Transaction"),(0,o.kt)("p",null,"todo - update formatting and information"),(0,o.kt)("h2",{id:"transactions"},"Transactions"),(0,o.kt)("p",null,"A transaction executes multiple queries and commits them only if all succeed. If one fails, none of the queries are committed. The return value is a ",(0,o.kt)("inlineCode",{parentName:"p"},"boolean"),", which is the result of the transaction."),(0,o.kt)("h3",{id:"specific-format"},"Specific Format"),(0,o.kt)("p",null,"When using the ",(0,o.kt)("inlineCode",{parentName:"p"},"Specific")," format you must pass one parameter to the oxmysql export. In this case, the ",(0,o.kt)("inlineCode",{parentName:"p"},"queries")," parameter contains your queries and the SQL variables unique to each query."),(0,o.kt)("p",null,"This is useful for transactions where the queries do not share many SQL variables."),(0,o.kt)("h3",{id:"usage"},"Usage"),(0,o.kt)("h4",{id:"lua"},"Lua"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"local queries = {\n { query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { ['someid'] = 1 } },\n { query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { ['someid'] = 2 } }\n} -- NOTE, the 'values' tables can be named 'parameters' here for MySQL-Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2202],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return f}});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=r.createContext({}),c=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(s.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),d=c(n),f=a,m=d["".concat(s,".").concat(f)]||d[f]||p[f]||o;return n?r.createElement(m,i(i({ref:t},u),{},{components:n})):r.createElement(m,i({ref:t},u))}));function f(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,i=new Array(o);i[0]=d;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:a,i[1]=l;for(var c=2;c<o;c++)i[c]=n[c];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},3713:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return l},contentTitle:function(){return s},metadata:function(){return c},assets:function(){return u},toc:function(){return p},default:function(){return f}});var r=n(7462),a=n(3366),o=(n(7294),n(3905)),i=["components"],l={},s="Update",c={unversionedId:"oxmysql/Usage/update",id:"oxmysql/Usage/update",title:"Update",description:"Returns the number of affected rows by the query.",source:"@site/docs/oxmysql/Usage/update.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/update",permalink:"/docs/oxmysql/Usage/update",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/update.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Transaction",permalink:"/docs/oxmysql/Usage/transaction"},next:{title:"index",permalink:"/docs/ox_lib/Client/"}},u={},p=[{value:"Lua",id:"lua",level:2},{value:"Callback",id:"callback",level:3},{value:"Promise",id:"promise",level:3},{value:"JavaScript",id:"javascript",level:2},{value:"Callback",id:"callback-1",level:3},{value:"Promise",id:"promise-1",level:3}],d={toc:p};function f(e){var t=e.components,n=(0,a.Z)(e,i);return(0,o.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"update"},"Update"),(0,o.kt)("p",null,"Returns the number of affected rows by the query."),(0,o.kt)("h2",{id:"lua"},"Lua"),(0,o.kt)("h3",{id:"callback"},"Callback"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:update\n-- Alias: MySQL.Async.update\n\nMySQL.Async.update('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier}, function(affectedRows)\n if affectedRows then\n print(affectedRows)\n end\nend)\n")),(0,o.kt)("h3",{id:"promise"},"Promise"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:update_async\n-- Alias: MySQL.update\n\nCreateThread(function()\n local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier})\n if affectedRows then\n print(affectedRows)\n end\nend)\n")),(0,o.kt)("h2",{id:"javascript"},"JavaScript"),(0,o.kt)("h3",{id:"callback-1"},"Callback"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-js"},"exports.oxmysql.update('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier], function(affectedRows) {\n if (affectedRows)\n console.log(affectedRows)\n})\n")),(0,o.kt)("h3",{id:"promise-1"},"Promise"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-js"},"setImmediate(async () => {\n const id = exports.oxmysql.update_async('UPDATE usLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6995],{3905:function(e,r,t){t.d(r,{Zo:function(){return u},kt:function(){return m}});var n=t(7294);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach((function(r){a(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function o(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var s=n.createContext({}),c=function(e){var r=n.useContext(s),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(s.Provider,{value:r},e.children)},p={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,s=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),f=c(t),m=a,d=f["".concat(s,".").concat(m)]||f[m]||p[m]||l;return t?n.createElement(d,i(i({ref:r},u),{},{components:t})):n.createElement(d,i({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,i=new Array(l);i[0]=f;var o={};for(var s in r)hasOwnProperty.call(r,s)&&(o[s]=r[s]);o.originalType=e,o.mdxType="string"==typeof e?e:a,i[1]=o;for(var c=2;c<l;c++)i[c]=t[c];return n.createElement.apply(null,i)}return n.createElement.apply(null,t)}f.displayName="MDXCreateElement"},4790:function(e,r,t){t.r(r),t.d(r,{frontMatter:function(){return o},contentTitle:function(){return s},metadata:function(){return c},assets:function(){return u},toc:function(){return p},default:function(){return m}});var n=t(7462),a=t(3366),l=(t(7294),t(3905)),i=["components"],o={},s="Scalar",c={unversionedId:"oxmysql/Usage/scalar",id:"oxmysql/Usage/scalar",title:"Scalar",description:"Returns the first column for a single row.",source:"@site/docs/oxmysql/Usage/scalar.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/scalar",permalink:"/docs/oxmysql/Usage/scalar",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/scalar.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Query",permalink:"/docs/oxmysql/Usage/query"},next:{title:"Single",permalink:"/docs/oxmysql/Usage/single"}},u={},p=[{value:"Lua",id:"lua",level:2},{value:"Callback",id:"callback",level:3},{value:"Promise",id:"promise",level:3},{value:"JavaScript",id:"javascript",level:2},{value:"Callback",id:"callback-1",level:3},{value:"Promise",id:"promise-1",level:3}],f={toc:p};function m(e){var r=e.components,t=(0,a.Z)(e,i);return(0,l.kt)("wrapper",(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"scalar"},"Scalar"),(0,l.kt)("p",null,"Returns the first column for a single row."),(0,l.kt)("h2",{id:"lua"},"Lua"),(0,l.kt)("h3",{id:"callback"},"Callback"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:scalar\n-- Alias: MySQL.Async.fetchScalar\n\nMySQL.scalar('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier}, function(firstname)\n print(firstname)\nend)\n")),(0,l.kt)("h3",{id:"promise"},"Promise"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:scalar_async\n-- Alias: MySQL.Sync.fetchScalar\n\nCreateThread(function()\n local firstname = MySQL.scalar.await('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier})\n print(firstname)\nend)\n")),(0,l.kt)("h2",{id:"javascript"},"JavaScript"),(0,l.kt)("h3",{id:"callback-1"},"Callback"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-js"},"exports.oxmysql.scalar('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier], function(firstname) {\n console.log(firstname)\n})\n")),(0,l.kt)("h3",{id:"promise-1"},"Promise"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-js"},"(async () => {\n const firstname = await exports.oxmysql.scalar_async('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier]) {\n console.log(firstname)\n})()\n")))}m.isMDXComponent=!0}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2596],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return m}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),u=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},s=function(e){var t=u(e.components);return r.createElement(c.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),f=u(n),m=o,d=f["".concat(c,".").concat(m)]||f[m]||p[m]||i;return n?r.createElement(d,a(a({ref:t},s),{},{components:n})):r.createElement(d,a({ref:t},s))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=f;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l.mdxType="string"==typeof e?e:o,a[1]=l;for(var u=2;u<i;u++)a[u]=n[u];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},5018:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return l},contentTitle:function(){return c},metadata:function(){return u},assets:function(){return s},toc:function(){return p},default:function(){return m}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),a=["components"],l={title:"Installation"},c=void 0,u={unversionedId:"oxmysql/Installation/index",id:"oxmysql/Installation/index",title:"Installation",description:"",source:"@site/docs/oxmysql/Installation/index.md",sourceDirName:"oxmysql/Installation",slug:"/oxmysql/Installation/",permalink:"/docs/oxmysql/Installation/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Installation/index.md",tags:[],version:"current",frontMatter:{title:"Installation"},sidebar:"docs",previous:{title:"Documentation",permalink:"/docs/"},next:{title:"index",permalink:"/docs/ox_lib/Client/"}},s={},p=[],f={toc:p};function m(e){var t=e.components,n=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}))}m.isMDXComponent=!0}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4772],{3905:function(e,t,r){r.d(t,{Zo:function(){return l},kt:function(){return m}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),u=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},l=function(e){var t=u(e.components);return n.createElement(s.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,s=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),f=u(r),m=o,d=f["".concat(s,".").concat(m)]||f[m]||p[m]||i;return r?n.createElement(d,a(a({ref:t},l),{},{components:r})):n.createElement(d,a({ref:t},l))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=f;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:o,a[1]=c;for(var u=2;u<i;u++)a[u]=r[u];return n.createElement.apply(null,a)}return n.createElement.apply(null,r)}f.displayName="MDXCreateElement"},4968:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return c},contentTitle:function(){return s},metadata:function(){return u},assets:function(){return l},toc:function(){return p},default:function(){return m}});var n=r(7462),o=r(3366),i=(r(7294),r(3905)),a=["components"],c={title:"Usage"},s=void 0,u={unversionedId:"oxmysql/Usage/index",id:"oxmysql/Usage/index",title:"Usage",description:"todo - include some information about proper formatting, placeholders, bad practices, etc.",source:"@site/docs/oxmysql/Usage/index.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/",permalink:"/docs/oxmysql/Usage/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/index.md",tags:[],version:"current",frontMatter:{title:"Usage"},sidebar:"docs",previous:{title:"Common Issues",permalink:"/docs/oxmysql/Getting Started/issues"},next:{title:"Insert",permalink:"/docs/oxmysql/Usage/insert"}},l={},p=[],f={toc:p};function m(e){var t=e.components,r=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"todo - include some information about proper formatting, placeholders, bad practices, etc."))}m.isMDXComponent=!0}}]);
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4377],{3905:function(e,t,n){n.d(t,{Zo:function(){return p},kt:function(){return d}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),u=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},p=function(e){var t=u(e.components);return r.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),f=u(n),d=o,m=f["".concat(l,".").concat(d)]||f[d]||s[d]||i;return n?r.createElement(m,c(c({ref:t},p),{},{components:n})):r.createElement(m,c({ref:t},p))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=f;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var u=2;u<i;u++)c[u]=n[u];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},909:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return a},contentTitle:function(){return l},metadata:function(){return u},assets:function(){return p},toc:function(){return s},default:function(){return d}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),c=["components"],a={},l=void 0,u={unversionedId:"ox_lib/Client/index",id:"ox_lib/Client/index",title:"index",description:"",source:"@site/docs/ox_lib/Client/index.md",sourceDirName:"ox_lib/Client",slug:"/ox_lib/Client/",permalink:"/docs/ox_lib/Client/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Client/index.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Installation",permalink:"/docs/oxmysql/Installation/"},next:{title:"Cache",permalink:"/docs/ox_lib/Client/cache"}},p={},s=[],f={toc:s};function d(e){var t=e.components,n=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}))}d.isMDXComponent=!0}}]);
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4377],{3905:function(e,t,n){n.d(t,{Zo:function(){return p},kt:function(){return d}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),u=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},p=function(e){var t=u(e.components);return r.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),f=u(n),d=o,m=f["".concat(l,".").concat(d)]||f[d]||s[d]||i;return n?r.createElement(m,c(c({ref:t},p),{},{components:n})):r.createElement(m,c({ref:t},p))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=f;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var u=2;u<i;u++)c[u]=n[u];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},909:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return a},contentTitle:function(){return l},metadata:function(){return u},assets:function(){return p},toc:function(){return s},default:function(){return d}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),c=["components"],a={},l=void 0,u={unversionedId:"ox_lib/Client/index",id:"ox_lib/Client/index",title:"index",description:"",source:"@site/docs/ox_lib/Client/index.md",sourceDirName:"ox_lib/Client",slug:"/ox_lib/Client/",permalink:"/docs/ox_lib/Client/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Client/index.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Update",permalink:"/docs/oxmysql/Usage/update"},next:{title:"Cache",permalink:"/docs/ox_lib/Client/cache"}},p={},s=[],f={toc:s};function d(e){var t=e.components,n=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}))}d.isMDXComponent=!0}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:function(e){e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Documentation","href":"/docs/","docId":"index"},{"type":"category","label":"MySQL","items":[{"type":"category","label":"Getting Started","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Benchmark","href":"/docs/oxmysql/Getting Started/benchmark","docId":"oxmysql/Getting Started/benchmark"},{"type":"link","label":"Common Issues","href":"/docs/oxmysql/Getting Started/issues","docId":"oxmysql/Getting Started/issues"}],"href":"/docs/oxmysql/Getting Started/"},{"type":"category","label":"Usage","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Insert","href":"/docs/oxmysql/Usage/insert","docId":"oxmysql/Usage/insert"},{"type":"link","label":"Prepare","href":"/docs/oxmysql/Usage/prepare","docId":"oxmysql/Usage/prepare"},{"type":"link","label":"Query","href":"/docs/oxmysql/Usage/query","docId":"oxmysql/Usage/query"},{"type":"link","label":"Scalar","href":"/docs/oxmysql/Usage/scalar","docId":"oxmysql/Usage/scalar"},{"type":"link","label":"Single","href":"/docs/oxmysql/Usage/single","docId":"oxmysql/Usage/single"},{"type":"link","label":"Transaction","href":"/docs/oxmysql/Usage/transaction","docId":"oxmysql/Usage/transaction"},{"type":"link","label":"Update","href":"/docs/oxmysql/Usage/update","docId":"oxmysql/Usage/update"}],"href":"/docs/oxmysql/Usage/"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Library","items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Cache","href":"/docs/ox_lib/Client/cache","docId":"ox_lib/Client/cache"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Client/callback","docId":"ox_lib/Client/callback"},{"type":"link","label":"Disable Controls","href":"/docs/ox_lib/Client/disableControls","docId":"ox_lib/Client/disableControls"},{"type":"link","label":"Streaming","href":"/docs/ox_lib/Client/streaming","docId":"ox_lib/Client/streaming"},{"type":"link","label":"Vehicle Properties","href":"/docs/ox_lib/Client/vehicleProperties","docId":"ox_lib/Client/vehicleProperties"}],"href":"/docs/ox_lib/Client/"},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Permissions","href":"/docs/ox_lib/Server/acl","docId":"ox_lib/Server/acl"},{"type":"link","label":"Command","href":"/docs/ox_lib/Server/addCommand","docId":"ox_lib/Server/addCommand"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Server/callback","docId":"ox_lib/Server/callback"},{"type":"link","label":"Version check","href":"/docs/ox_lib/Server/version","docId":"ox_lib/Server/version"}],"href":"/docs/ox_lib/Server/"},{"type":"category","label":"Shared","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Dependency version","href":"/docs/ox_lib/Shared/version","docId":"ox_lib/Shared/version"}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"Inventory","items":[{"type":"link","label":"Configuration","href":"/docs/ox_inventory/config","docId":"ox_inventory/config"},{"type":"link","label":"Getting Started","href":"/docs/ox_inventory/installation","docId":"ox_inventory/installation"},{"type":"category","label":"Guides","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Placeholder","href":"/docs/ox_inventory/Guides/placeholder","docId":"ox_inventory/Guides/placeholder"}]},{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"External","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Items","href":"/docs/ox_inventory/Functions/External/Client/Items","docId":"ox_inventory/Functions/External/Client/Items"},{"type":"link","label":"openInventory","href":"/docs/ox_inventory/Functions/External/Client/openInventory","docId":"ox_inventory/Functions/External/Client/openInventory"},{"type":"link","label":"openNearbyInventory","href":"/docs/ox_inventory/Functions/External/Client/openNearbyInventory","docId":"ox_inventory/Functions/External/Client/openNearbyInventory"},{"type":"link","label":"setStashTarget","href":"/docs/ox_inventory/Functions/External/Client/setStashTarget","docId":"ox_inventory/Functions/External/Client/setStashTarget"},{"type":"link","label":"useItem","href":"/docs/ox_inventory/Functions/External/Client/useItem","docId":"ox_inventory/Functions/External/Client/useItem"},{"type":"link","label":"useSlot","href":"/docs/ox_inventory/Functions/External/Client/useSlot","docId":"ox_inventory/Functions/External/Client/useSlot"},{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Keyboard","href":"/doLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:function(e){e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Documentation","href":"/docs/","docId":"index"},{"type":"category","label":"MySQL","items":[{"type":"link","label":"Installation","href":"/docs/oxmysql/Installation/","docId":"oxmysql/Installation/index"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Library","items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Cache","href":"/docs/ox_lib/Client/cache","docId":"ox_lib/Client/cache"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Client/callback","docId":"ox_lib/Client/callback"},{"type":"link","label":"Disable Controls","href":"/docs/ox_lib/Client/disableControls","docId":"ox_lib/Client/disableControls"},{"type":"link","label":"Streaming","href":"/docs/ox_lib/Client/streaming","docId":"ox_lib/Client/streaming"},{"type":"link","label":"Vehicle Properties","href":"/docs/ox_lib/Client/vehicleProperties","docId":"ox_lib/Client/vehicleProperties"}],"href":"/docs/ox_lib/Client/"},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Permissions","href":"/docs/ox_lib/Server/acl","docId":"ox_lib/Server/acl"},{"type":"link","label":"Command","href":"/docs/ox_lib/Server/addCommand","docId":"ox_lib/Server/addCommand"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Server/callback","docId":"ox_lib/Server/callback"},{"type":"link","label":"Version check","href":"/docs/ox_lib/Server/version","docId":"ox_lib/Server/version"}],"href":"/docs/ox_lib/Server/"},{"type":"category","label":"Shared","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Dependency version","href":"/docs/ox_lib/Shared/version","docId":"ox_lib/Shared/version"}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"Inventory","items":[{"type":"link","label":"Configuration","href":"/docs/ox_inventory/config","docId":"ox_inventory/config"},{"type":"link","label":"Getting Started","href":"/docs/ox_inventory/installation","docId":"ox_inventory/installation"},{"type":"category","label":"Guides","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Placeholder","href":"/docs/ox_inventory/Guides/placeholder","docId":"ox_inventory/Guides/placeholder"}]},{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"External","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Items","href":"/docs/ox_inventory/Functions/External/Client/Items","docId":"ox_inventory/Functions/External/Client/Items"},{"type":"link","label":"openInventory","href":"/docs/ox_inventory/Functions/External/Client/openInventory","docId":"ox_inventory/Functions/External/Client/openInventory"},{"type":"link","label":"openNearbyInventory","href":"/docs/ox_inventory/Functions/External/Client/openNearbyInventory","docId":"ox_inventory/Functions/External/Client/openNearbyInventory"},{"type":"link","label":"setStashTarget","href":"/docs/ox_inventory/Functions/External/Client/setStashTarget","docId":"ox_inventory/Functions/External/Client/setStashTarget"},{"type":"link","label":"useItem","href":"/docs/ox_inventory/Functions/External/Client/useItem","docId":"ox_inventory/Functions/External/Client/useItem"},{"type":"link","label":"useSlot","href":"/docs/ox_inventory/Functions/External/Client/useSlot","docId":"ox_inventory/Functions/External/Client/useSlot"},{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Keyboard","href":"/docs/ox_inventory/Functions/External/Client/Interface/Keyboard","docId":"ox_inventory/Functions/External/Client/Interface/Keyboard"},{"type":"link","label":"Progress","href":"/docs/ox_inventory/Functions/External/Client/Interface/Progress","docId":"ox_inventory/Functions/External/Client/Interface/Progress"}]},{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/External/Client/Inventory/Search","docId":"ox_inventory/Functions/External/Client/Inventory/Search"}]},{"type":"category","label":"Utils","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"notify","href":"/docs/ox_inventory/Functions/External/Client/Utils/notify","docId":"ox_inventory/Functions/External/Client/Utils/notify"},{"type":"link","label":"weaponWheel","href":"/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel","docId":"ox_inventory/Functions/External/Client/Utils/weaponWheel"}]}]},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Items","hLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9491],{3905:function(e,r,n){n.d(r,{Zo:function(){return u},kt:function(){return m}});var t=n(7294);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function i(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach((function(r){a(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function o(e,r){if(null==e)return{};var n,t,a=function(e,r){if(null==e)return{};var n,t,a={},l=Object.keys(e);for(t=0;t<l.length;t++)n=l[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t<l.length;t++)n=l[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=t.createContext({}),p=function(e){var r=t.useContext(s),n=r;return e&&(n="function"==typeof e?e(r):i(i({},r),e)),n},u=function(e){var r=p(e.components);return t.createElement(s.Provider,{value:r},e.children)},c={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},d=t.forwardRef((function(e,r){var n=e.components,a=e.mdxType,l=e.originalType,s=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),d=p(n),m=a,f=d["".concat(s,".").concat(m)]||d[m]||c[m]||l;return n?t.createElement(f,i(i({ref:r},u),{},{components:n})):t.createElement(f,i({ref:r},u))}));function m(e,r){var n=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=n.length,i=new Array(l);i[0]=d;var o={};for(var s in r)hasOwnProperty.call(r,s)&&(o[s]=r[s]);o.originalType=e,o.mdxType="string"==typeof e?e:a,i[1]=o;for(var p=2;p<l;p++)i[p]=n[p];return t.createElement.apply(null,i)}return t.createElement.apply(null,n)}d.displayName="MDXCreateElement"},675:function(e,r,n){n.r(r),n.d(r,{frontMatter:function(){return o},contentTitle:function(){return s},metadata:function(){return p},assets:function(){return u},toc:function(){return c},default:function(){return m}});var t=n(7462),a=n(3366),l=(n(7294),n(3905)),i=["components"],o={},s="Prepare",p={unversionedId:"oxmysql/Usage/prepare",id:"oxmysql/Usage/prepare",title:"Prepare",description:"The only function that provides true prepared statements, granting native protection and query planning by MySQL.",source:"@site/docs/oxmysql/Usage/prepare.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/prepare",permalink:"/docs/oxmysql/Usage/prepare",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/prepare.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Insert",permalink:"/docs/oxmysql/Usage/insert"},next:{title:"Query",permalink:"/docs/oxmysql/Usage/query"}},u={},c=[{value:"Lua",id:"lua",level:2},{value:"Callback",id:"callback",level:3},{value:"Promise",id:"promise",level:3},{value:"JavaScript",id:"javascript",level:2},{value:"Callback",id:"callback-1",level:3},{value:"Promise",id:"promise-1",level:3}],d={toc:c};function m(e){var r=e.components,n=(0,a.Z)(e,i);return(0,l.kt)("wrapper",(0,t.Z)({},d,n,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"prepare"},"Prepare"),(0,l.kt)("p",null,"The only function that provides true ",(0,l.kt)("a",{parentName:"p",href:"https://github.com/sidorares/node-mysql2#using-prepared-statements"},"prepared statements"),", granting native protection and query planning by MySQL.",(0,l.kt)("br",{parentName:"p"}),"\n","Prepare can be used to execute frequently called queries faster and accepts multiple sets of parameters to be used with a single query. "),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Date will not return the datestring commonly used in FiveM"),(0,l.kt)("li",{parentName:"ul"},"TINYINT 1 and BIT will not return a boolean"),(0,l.kt)("li",{parentName:"ul"},"You can only use ",(0,l.kt)("inlineCode",{parentName:"li"},"?")," value placeholders, ",(0,l.kt)("inlineCode",{parentName:"li"},"??")," column placeholders and named placeholders will throw an error ")),(0,l.kt)("p",null,"When using SELECT, the return value will match ",(0,l.kt)("inlineCode",{parentName:"p"},"query, single, or scalar")," depending on the number of columns and rows selected."),(0,l.kt)("h2",{id:"lua"},"Lua"),(0,l.kt)("h3",{id:"callback"},"Callback"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:prepare\n-- Alias: MySQL.Async.prepare\n\nMySQL.prepare('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)\n if result then\n for _, v in pairLine truncated
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6971],{3905:function(e,t,n){n.d(t,{Zo:function(){return f},kt:function(){return d}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},f=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},s=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),s=l(n),d=o,m=s["".concat(u,".").concat(d)]||s[d]||p[d]||i;return n?r.createElement(m,a(a({ref:t},f),{},{components:n})):r.createElement(m,a({ref:t},f))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=s;var c={};for(var u in t)hasOwnProperty.call(t,u)&&(c[u]=t[u]);c.originalType=e,c.mdxType="string"==typeof e?e:o,a[1]=c;for(var l=2;l<i;l++)a[l]=n[l];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}s.displayName="MDXCreateElement"},1269:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return c},contentTitle:function(){return u},metadata:function(){return l},assets:function(){return f},toc:function(){return p},default:function(){return d}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),a=["components"],c={title:"Documentation"},u=void 0,l={unversionedId:"index",id:"index",title:"Documentation",description:"Here you can find all of the official documentation for resoruces developed by the Overextended team",source:"@site/docs/index.md",sourceDirName:".",slug:"/",permalink:"/docs/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/index.md",tags:[],version:"current",frontMatter:{title:"Documentation"},sidebar:"docs",next:{title:"Installation",permalink:"/docs/oxmysql/Installation/"}},f={},p=[],s={toc:p};function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Here you can find all of the official documentation for resoruces developed by the Overextended team"),(0,i.kt)("p",null,'If you feel like the documentation is lacking in some department then feel free to go onto that page\nand click the "Edit this page" at the bottom and submit a Pull Request.'))}d.isMDXComponent=!0}}]);
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6971],{3905:function(e,t,n){n.d(t,{Zo:function(){return f},kt:function(){return d}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},f=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},s=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,f=a(e,["components","mdxType","originalType","parentName"]),s=l(n),d=o,m=s["".concat(u,".").concat(d)]||s[d]||p[d]||i;return n?r.createElement(m,c(c({ref:t},f),{},{components:n})):r.createElement(m,c({ref:t},f))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=s;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var l=2;l<i;l++)c[l]=n[l];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}s.displayName="MDXCreateElement"},1269:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return a},contentTitle:function(){return u},metadata:function(){return l},assets:function(){return f},toc:function(){return p},default:function(){return d}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),c=["components"],a={title:"Documentation"},u=void 0,l={unversionedId:"index",id:"index",title:"Documentation",description:"Here you can find all of the official documentation for resoruces developed by the Overextended team",source:"@site/docs/index.md",sourceDirName:".",slug:"/",permalink:"/docs/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/index.md",tags:[],version:"current",frontMatter:{title:"Documentation"},sidebar:"docs",next:{title:"Getting Started",permalink:"/docs/oxmysql/Getting Started/"}},f={},p=[],s={toc:p};function d(e){var t=e.components,n=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Here you can find all of the official documentation for resoruces developed by the Overextended team"),(0,i.kt)("p",null,'If you feel like the documentation is lacking in some department then feel free to go onto that page\nand click the "Edit this page" at the bottom and submit a Pull Request.'))}d.isMDXComponent=!0}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1884],{3905:function(e,n,t){t.d(n,{Zo:function(){return u},kt:function(){return m}});var r=t(7294);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n){if(null==e)return{};var t,r,l=function(e,n){if(null==e)return{};var t,r,l={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(l[t]=e[t]);return l}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}var o=r.createContext({}),c=function(e){var n=r.useContext(o),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},u=function(e){var n=c(e.components);return r.createElement(o.Provider,{value:n},e.children)},p={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,l=e.mdxType,a=e.originalType,o=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),f=c(t),m=l,d=f["".concat(o,".").concat(m)]||f[m]||p[m]||a;return t?r.createElement(d,i(i({ref:n},u),{},{components:t})):r.createElement(d,i({ref:n},u))}));function m(e,n){var t=arguments,l=n&&n.mdxType;if("string"==typeof e||l){var a=t.length,i=new Array(a);i[0]=f;var s={};for(var o in n)hasOwnProperty.call(n,o)&&(s[o]=n[o]);s.originalType=e,s.mdxType="string"==typeof e?e:l,i[1]=s;for(var c=2;c<a;c++)i[c]=t[c];return r.createElement.apply(null,i)}return r.createElement.apply(null,t)}f.displayName="MDXCreateElement"},5846:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return s},contentTitle:function(){return o},metadata:function(){return c},assets:function(){return u},toc:function(){return p},default:function(){return m}});var r=t(7462),l=t(3366),a=(t(7294),t(3905)),i=["components"],s={},o="Single",c={unversionedId:"oxmysql/Usage/single",id:"oxmysql/Usage/single",title:"Single",description:"Returns the columns for a single row.",source:"@site/docs/oxmysql/Usage/single.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/single",permalink:"/docs/oxmysql/Usage/single",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/single.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Scalar",permalink:"/docs/oxmysql/Usage/scalar"},next:{title:"Transaction",permalink:"/docs/oxmysql/Usage/transaction"}},u={},p=[{value:"Lua",id:"lua",level:2},{value:"Callback",id:"callback",level:3},{value:"Promise",id:"promise",level:3},{value:"JavaScript",id:"javascript",level:2},{value:"Callback",id:"callback-1",level:3},{value:"Promise",id:"promise-1",level:3}],f={toc:p};function m(e){var n=e.components,t=(0,l.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},f,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"single"},"Single"),(0,a.kt)("p",null,"Returns the columns for a single row."),(0,a.kt)("h2",{id:"lua"},"Lua"),(0,a.kt)("h3",{id:"callback"},"Callback"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:single\n-- Alias: MySQL.Async.fetchSingle\n\nMySQL.single('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)\n if result then\n print(result.identifier, result.firstname, result.lastname)\n end\nend)\n")),(0,a.kt)("h3",{id:"promise"},"Promise"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:single_async\n-- Alias: MySQL.Sync.fetchSingle\n\nCreateThread(function()\n local result = MySQL.single.await('SELECT * FROM users WHERE identifier = ?', {playerIdentifier})\n if result then\n print(result.identifier, result.firstname, result.lastname)\n end\nend)\n")),(0,a.kt)("h2",{id:"javascript"},"JavaScript"),(0,a.kt)("h3",{id:"callback-1"},"Callback"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-js"},"exports.oxmysql.single('SELECT * FROM users WHERE identifier = ?', [playerIdentifier], function(result) {\n if (result)\n console.log(result.identifier, result.firstname, result.lastname)\n})\n")),(0,a.kt)("h3",{id:"promise-1"},"Promise"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-js"},"setImmediate(async () => {\n const result = await exports.oxmysql.Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6193],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return p}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),c=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),m=c(n),p=o,f=m["".concat(l,".").concat(p)]||m[p]||d[p]||a;return n?r.createElement(f,i(i({ref:t},u),{},{components:n})):r.createElement(f,i({ref:t},u))}));function p(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=m;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var c=2;c<a;c++)i[c]=n[c];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},7950:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return s},contentTitle:function(){return l},metadata:function(){return c},assets:function(){return u},toc:function(){return d},default:function(){return p}});var r=n(7462),o=n(3366),a=(n(7294),n(3905)),i=["components"],s={},l="Getting Started",c={unversionedId:"oxmysql/Getting Started/index",id:"oxmysql/Getting Started/index",title:"Getting Started",description:"Installation",source:"@site/docs/oxmysql/Getting Started/index.md",sourceDirName:"oxmysql/Getting Started",slug:"/oxmysql/Getting Started/",permalink:"/docs/oxmysql/Getting Started/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Getting Started/index.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Documentation",permalink:"/docs/"},next:{title:"Benchmark",permalink:"/docs/oxmysql/Getting Started/benchmark"}},u={},d=[{value:"Installation",id:"installation",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Using the UI",id:"using-the-ui",level:3}],m={toc:d};function p(e){var t=e.components,n=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"getting-started"},"Getting Started"),(0,a.kt)("h2",{id:"installation"},"Installation"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Download the ",(0,a.kt)("a",{parentName:"li",href:"https://github.com/overextended/oxmysql/releases/latest"},"latest build")," of oxmysql (not the source code)."),(0,a.kt)("li",{parentName:"ul"},"Extract the contents of the archive to your resources folder."),(0,a.kt)("li",{parentName:"ul"},"Start the resource near the top of your resources in your ",(0,a.kt)("inlineCode",{parentName:"li"},"server.cfg"),"."),(0,a.kt)("li",{parentName:"ul"},"If you have a lot of streamed assets, load them first to prevent timing out the connection.")),(0,a.kt)("h2",{id:"configuration"},"Configuration"),(0,a.kt)("p",null,"You can change the configuration settings by using convars inside your ",(0,a.kt)("inlineCode",{parentName:"p"},"server.cfg"),".\nReference the following for an idea of how to set your connection options.\nYou must include one of the following lines, adjusted for your connection and database settings."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},'set mysql_connection_string "mysql://root:12345@localhost/es_extended?charset=utf8mb4"\nset mysql_connection_string "user=root;database=es_extended;password=12345;charset=utf8mb4"\n')),(0,a.kt)("p",null,"Certain special characters are reserved or blocked and may cause issues when used in your password.",(0,a.kt)("br",{parentName:"p"}),"\n","For more optional settings (such as multiple statements) you can reference ",(0,a.kt)("a",{parentLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9155],{3905:function(e,t,r){r.d(t,{Zo:function(){return u},kt:function(){return d}});var n=r(7294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):s(s({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,i=e.originalType,l=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),m=c(r),d=a,f=m["".concat(l,".").concat(d)]||m[d]||p[d]||i;return r?n.createElement(f,s(s({ref:t},u),{},{components:r})):n.createElement(f,s({ref:t},u))}));function d(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=r.length,s=new Array(i);s[0]=m;var o={};for(var l in t)hasOwnProperty.call(t,l)&&(o[l]=t[l]);o.originalType=e,o.mdxType="string"==typeof e?e:a,s[1]=o;for(var c=2;c<i;c++)s[c]=r[c];return n.createElement.apply(null,s)}return n.createElement.apply(null,r)}m.displayName="MDXCreateElement"},3854:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return o},contentTitle:function(){return l},metadata:function(){return c},assets:function(){return u},toc:function(){return p},default:function(){return d}});var n=r(7462),a=r(3366),i=(r(7294),r(3905)),s=["components"],o={},l="Insert",c={unversionedId:"oxmysql/Usage/insert",id:"oxmysql/Usage/insert",title:"Insert",description:"Inserts a new entry into the database and returns the insert id for the row, if valid.",source:"@site/docs/oxmysql/Usage/insert.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/insert",permalink:"/docs/oxmysql/Usage/insert",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/insert.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Usage",permalink:"/docs/oxmysql/Usage/"},next:{title:"Prepare",permalink:"/docs/oxmysql/Usage/prepare"}},u={},p=[{value:"Lua",id:"lua",level:2},{value:"Callback",id:"callback",level:3},{value:"Promise",id:"promise",level:3},{value:"JavaScript",id:"javascript",level:2},{value:"Callback",id:"callback-1",level:3},{value:"Promise",id:"promise-1",level:3}],m={toc:p};function d(e){var t=e.components,r=(0,a.Z)(e,s);return(0,i.kt)("wrapper",(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"insert"},"Insert"),(0,i.kt)("p",null,"Inserts a new entry into the database and returns the insert id for the row, if valid."),(0,i.kt)("h2",{id:"lua"},"Lua"),(0,i.kt)("h3",{id:"callback"},"Callback"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:insert\n-- Alias: MySQL.Async.insert\nMySQL.insert('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier, firstName,lastName}, function(id)\n print(id)\nend)\n")),(0,i.kt)("h3",{id:"promise"},"Promise"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:insert_async\n-- Alias: MySQL.Sync.insert\nCreateThread(function()\nlocal id = MySQL.insert.await('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier,firstName, lastName})\n print(id)\nend)\n")),(0,i.kt)("h2",{id:"javascript"},"JavaScript"),(0,i.kt)("h3",{id:"callback-1"},"Callback"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"exports.oxmysql.insert('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', [playerIdentifier, firstName, lastName], function(id) {\n console.log(id)\n})\n")),(0,i.kt)("h3",{id:"promise-1"},"Promise"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"(async () => {\n const id = exports.oxmysql.insert_async('INSERT INTO users (identifier, firstnameLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9730],{3905:function(e,r,n){n.d(r,{Zo:function(){return c},kt:function(){return d}});var t=n(7294);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?i(Object(n),!0).forEach((function(r){a(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function o(e,r){if(null==e)return{};var n,t,a=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=t.createContext({}),u=function(e){var r=t.useContext(s),n=r;return e&&(n="function"==typeof e?e(r):l(l({},r),e)),n},c=function(e){var r=u(e.components);return t.createElement(s.Provider,{value:r},e.children)},p={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},f=t.forwardRef((function(e,r){var n=e.components,a=e.mdxType,i=e.originalType,s=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),f=u(n),d=a,y=f["".concat(s,".").concat(d)]||f[d]||p[d]||i;return n?t.createElement(y,l(l({ref:r},c),{},{components:n})):t.createElement(y,l({ref:r},c))}));function d(e,r){var n=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var i=n.length,l=new Array(i);l[0]=f;var o={};for(var s in r)hasOwnProperty.call(r,s)&&(o[s]=r[s]);o.originalType=e,o.mdxType="string"==typeof e?e:a,l[1]=o;for(var u=2;u<i;u++)l[u]=n[u];return t.createElement.apply(null,l)}return t.createElement.apply(null,n)}f.displayName="MDXCreateElement"},2462:function(e,r,n){n.r(r),n.d(r,{frontMatter:function(){return o},contentTitle:function(){return s},metadata:function(){return u},assets:function(){return c},toc:function(){return p},default:function(){return d}});var t=n(7462),a=n(3366),i=(n(7294),n(3905)),l=["components"],o={},s="Query",u={unversionedId:"oxmysql/Usage/query",id:"oxmysql/Usage/query",title:"Query",description:"Generic function that can be utilised for any query.",source:"@site/docs/oxmysql/Usage/query.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/query",permalink:"/docs/oxmysql/Usage/query",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/query.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Prepare",permalink:"/docs/oxmysql/Usage/prepare"},next:{title:"Scalar",permalink:"/docs/oxmysql/Usage/scalar"}},c={},p=[{value:"Lua",id:"lua",level:2},{value:"Callback",id:"callback",level:3},{value:"Promise",id:"promise",level:3},{value:"JavaScript",id:"javascript",level:2},{value:"Callback",id:"callback-1",level:3},{value:"Promise",id:"promise-1",level:3}],f={toc:p};function d(e){var r=e.components,n=(0,a.Z)(e,l);return(0,i.kt)("wrapper",(0,t.Z)({},f,n,{components:r,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"query"},"Query"),(0,i.kt)("p",null,"Generic function that can be utilised for any query.",(0,i.kt)("br",{parentName:"p"}),"\n","When selecting data it will return all matching rows and columns, otherwise it will return field data such as insertid, affectedRows, etc."),(0,i.kt)("h2",{id:"lua"},"Lua"),(0,i.kt)("h3",{id:"callback"},"Callback"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:query\n-- Alias: MySQL.Async.query\n\nMySQL.query('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)\n if result then\n for _, v in pairs(result) do\n print(v.identifier, v.firstname, v.lastname)\n end\n end\nend)\n")),(0,i.kt)("h3",{id:"promise"},"Promise"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:query\n-- Alias: MySQL.Sync.query\n\nCreateThread(function()\n local result = MySQL.query.await('SELECT * FROM users WHERE identifier = ?', {playerIdentifier})\n if result then\n for _, v in pairs(result) do\n print(v.identifier, v.firstname, v.lastname)\n end\n end\nend)\n")),(0,i.kt)("h2",{id:"javascript"},"JavaScript"),(0,i.kt)("h3",{id:"callback-1"},"Callback"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"exports.oxmysql.query('SELECT * FROM users WHERE identifier = ?', [playerIdentifier], function(result) {\n if (result) {\n result.forEach(Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[336],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return d}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),l=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=l(e.components);return r.createElement(c.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},p=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),p=l(n),d=o,f=p["".concat(c,".").concat(d)]||p[d]||m[d]||a;return n?r.createElement(f,i(i({ref:t},u),{},{components:n})):r.createElement(f,i({ref:t},u))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=p;var s={};for(var c in t)hasOwnProperty.call(t,c)&&(s[c]=t[c]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var l=2;l<a;l++)i[l]=n[l];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}p.displayName="MDXCreateElement"},3109:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return s},contentTitle:function(){return c},metadata:function(){return l},assets:function(){return u},toc:function(){return m},default:function(){return d}});var r=n(7462),o=n(3366),a=(n(7294),n(3905)),i=["components"],s={},c="Common Issues",l={unversionedId:"oxmysql/Getting Started/issues",id:"oxmysql/Getting Started/issues",title:"Common Issues",description:"Unable to establish a connection",source:"@site/docs/oxmysql/Getting Started/issues.md",sourceDirName:"oxmysql/Getting Started",slug:"/oxmysql/Getting Started/issues",permalink:"/docs/oxmysql/Getting Started/issues",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Getting Started/issues.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Benchmark",permalink:"/docs/oxmysql/Getting Started/benchmark"},next:{title:"Usage",permalink:"/docs/oxmysql/Usage/"}},u={},m=[{value:"Unable to establish a connection",id:"unable-to-establish-a-connection",level:3},{value:"No such export ... in resource oxmysql",id:"no-such-export--in-resource-oxmysql",level:3}],p={toc:m};function d(e){var t=e.components,n=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"common-issues"},"Common Issues"),(0,a.kt)("h3",{id:"unable-to-establish-a-connection"},"Unable to establish a connection"),(0,a.kt)("p",null,"This is usually the result of incorrect database settings or your password containing reserved characters (",(0,a.kt)("inlineCode",{parentName:"p"},"; , / ? : @ & = + $ #"),")."),(0,a.kt)("div",{className:"admonition admonition-tip alert alert--success"},(0,a.kt)("div",{parentName:"div",className:"admonition-heading"},(0,a.kt)("h5",{parentName:"div"},(0,a.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,a.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",viewBox:"0 0 12 16"},(0,a.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))),"Solution")),(0,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},"Ensure you have entered the correct database settings in the mysql_connection_string convar.",(0,a.kt)("br",{parentName:"p"}),"\n","You can try using the semicolon-separated format ifLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7008],{3905:function(e,n,r){r.d(n,{Zo:function(){return c},kt:function(){return y}});var t=r(7294);function a(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?o(Object(r),!0).forEach((function(n){a(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function s(e,n){if(null==e)return{};var r,t,a=function(e,n){if(null==e)return{};var r,t,a={},o=Object.keys(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=t.createContext({}),u=function(e){var n=t.useContext(l),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},c=function(e){var n=u(e.components);return t.createElement(l.Provider,{value:n},e.children)},m={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},p=t.forwardRef((function(e,n){var r=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),p=u(r),y=a,d=p["".concat(l,".").concat(y)]||p[y]||m[y]||o;return r?t.createElement(d,i(i({ref:n},c),{},{components:r})):t.createElement(d,i({ref:n},c))}));function y(e,n){var r=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=p;var s={};for(var l in n)hasOwnProperty.call(n,l)&&(s[l]=n[l]);s.originalType=e,s.mdxType="string"==typeof e?e:a,i[1]=s;for(var u=2;u<o;u++)i[u]=r[u];return t.createElement.apply(null,i)}return t.createElement.apply(null,r)}p.displayName="MDXCreateElement"},7782:function(e,n,r){r.r(n),r.d(n,{frontMatter:function(){return s},contentTitle:function(){return l},metadata:function(){return u},assets:function(){return c},toc:function(){return m},default:function(){return y}});var t=r(7462),a=r(3366),o=(r(7294),r(3905)),i=["components"],s={},l="Benchmark",u={unversionedId:"oxmysql/Getting Started/benchmark",id:"oxmysql/Getting Started/benchmark",title:"Benchmark",description:"Internal benchmark",source:"@site/docs/oxmysql/Getting Started/benchmark.md",sourceDirName:"oxmysql/Getting Started",slug:"/oxmysql/Getting Started/benchmark",permalink:"/docs/oxmysql/Getting Started/benchmark",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Getting Started/benchmark.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Getting Started",permalink:"/docs/oxmysql/Getting Started/"},next:{title:"Common Issues",permalink:"/docs/oxmysql/Getting Started/issues"}},c={},m=[{value:"Lua (5.4)",id:"lua-54",level:4},{value:"JavaScript",id:"javascript",level:4}],p={toc:m};function y(e){var n=e.components,r=(0,a.Z)(e,i);return(0,o.kt)("wrapper",(0,t.Z)({},p,r,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"benchmark"},"Benchmark"),(0,o.kt)("p",null,"Internal benchmark"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre"},"Low: 0.1222ms | Avg: 0.14188357ms | Total: 1418.8357ms (10000 queries)\n")),(0,o.kt)("p",null,"Round-trip-time for exports"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre"},"Low: 0.1997ms | Avg: 0.25898800ms | Total: 2589.8800ms (10000 queries)\n")),(0,o.kt)("h4",{id:"lua-54"},"Lua (5.4)"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"local val = 10000\nRegisterCommand('luasync', function()\n local queryTimesLocal = {}\n local result\n MySQL.prepare.await('SELECT identifier from users WHERE lastname = ?', {'Linden'})\n\n for i=1, val do\n local time = os.nanotime()\n local r = MySQL.prepare.await('SELECT identifier from users WHERE lastname = ?', {'Linden'})\n queryTimesLocal[#queryTimesLocal+1] = (os.nanotime() - time) / 1000000\n if i==1 then result = r end\n end\n\n local queryMsLow, queryMsSum = 1000, 0\n\n for _, v in pairs(queryTimesLocal) do queryMsSum = queryMsSum + v end\n for _, v in pairs(queryTimesLocal) do\n if v < queryMsLow then queryMsLow = v end\n end\n\n local averageQueryTime = queryMsSum / #queryTimesLocal\n print(json.encode(result))\n print('Low: '.. queryMsLow ..'ms | Avg: '..averageQueryTime..'ms | Total: '..queryMsSum..'ms ('..#queryTimesLocal..' queries)')\nend)\n")),(0,o.kt)("h4",{id:"javascript"},"JavaScript"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"lanLine truncated
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! For license information please see main.5dfdbe8e.js.LICENSE.txt */
|
||||
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{9782:function(e,t,n){"use strict";n.r(t),t.default={title:"Overextended",tagline:"Official documentation for Overextended resources",url:"https://overextended.github.io",baseUrl:"/",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",favicon:"img/ox.ico",organizationName:"overextended",projectName:"overextended.github.io",presets:[["classic",{docs:{sidebarPath:"/home/runner/work/overextended.github.io/overextended.github.io/sidebars.js",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/"},theme:{customCss:"/home/runner/work/overextended.github.io/overextended.github.io/src/css/custom.css"}}]],themeConfig:{colorMode:{defaultMode:"dark",disableSwitch:!0,respectPrefersColorScheme:!1,switchConfig:{darkIcon:"\ud83c\udf1c",darkIconStyle:{},lightIcon:"\ud83c\udf1e",lightIconStyle:{}}},navbar:{title:"Overextended",logo:{alt:"Ox Logo",src:"/img/ox_64.png",width:32,height:32},items:[{href:"https://www.github.com/overextended",label:"GitHub",position:"left"},{href:"https://www.discord.gg/overextended",label:"Discord",position:"left"},{to:"docs/",label:"Documentation",position:"right"},{type:"search",position:"right"}],hideOnScroll:!1},footer:{style:"dark",copyright:"Copyright \xa9 2022 Overextended",links:[]},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:"#c5a5c5"}},{types:["attr-value"],style:{color:"#8dc891"}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:"#8dc891"}},{types:["punctuation"],style:{color:"#8dc891"}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:"#c5a5c5"}},{types:["at-rule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},additionalLanguages:["lua"]},docs:{versionPersistence:"localStorage"},metadata:[],hideableSidebar:!1,autoCollapseSidebarCategories:!1,tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",locales:["en"],localeConfigs:{}},onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},plugins:[],themes:[],titleDelimiter:"|",noIndex:!1}},723:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(7294),o=n(7462),a=n(8356),i=n.n(a);function l(e){var t=e.error,n=e.retry,o=e.pastDelay;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,t.message),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):o?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see main.d24f4672.js.LICENSE.txt */
|
||||
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{9782:function(e,t,n){"use strict";n.r(t),t.default={title:"Overextended",tagline:"Official documentation for Overextended resources",url:"https://overextended.github.io",baseUrl:"/",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",favicon:"img/ox.ico",organizationName:"overextended",projectName:"overextended.github.io",presets:[["classic",{docs:{sidebarPath:"/home/runner/work/overextended.github.io/overextended.github.io/sidebars.js",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/"},theme:{customCss:"/home/runner/work/overextended.github.io/overextended.github.io/src/css/custom.css"}}]],themeConfig:{colorMode:{defaultMode:"dark",disableSwitch:!0,respectPrefersColorScheme:!1,switchConfig:{darkIcon:"\ud83c\udf1c",darkIconStyle:{},lightIcon:"\ud83c\udf1e",lightIconStyle:{}}},navbar:{title:"Overextended",logo:{alt:"Ox Logo",src:"/img/ox_64.png",width:32,height:32},items:[{href:"https://www.github.com/overextended",label:"GitHub",position:"left"},{href:"https://www.discord.gg/overextended",label:"Discord",position:"left"},{to:"docs/",label:"Documentation",position:"right"},{type:"search",position:"right"}],hideOnScroll:!1},footer:{style:"dark",copyright:"Copyright \xa9 2022 Overextended",links:[]},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:"#c5a5c5"}},{types:["attr-value"],style:{color:"#8dc891"}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:"#8dc891"}},{types:["punctuation"],style:{color:"#8dc891"}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:"#c5a5c5"}},{types:["at-rule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},additionalLanguages:["lua"]},docs:{versionPersistence:"localStorage"},metadata:[],hideableSidebar:!1,autoCollapseSidebarCategories:!1,tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",locales:["en"],localeConfigs:{}},onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},plugins:[],themes:[],titleDelimiter:"|",noIndex:!1}},723:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(7294),o=n(7462),a=n(8356),i=n.n(a);function l(e){var t=e.error,n=e.retry,o=e.pastDelay;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,t.message),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):o?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dLine truncated
|
||||
File renamed without changes.
@@ -1 +0,0 @@
|
||||
!function(){"use strict";var e,t,f,c,n,r={},d={};function a(e){var t=d[e];if(void 0!==t)return t.exports;var f=d[e]={exports:{}};return r[e].call(f.exports,f,f.exports,a),f.exports}a.m=r,e=[],a.O=function(t,f,c,n){if(!f){var r=1/0;for(u=0;u<e.length;u++){f=e[u][0],c=e[u][1],n=e[u][2];for(var d=!0,b=0;b<f.length;b++)(!1&n||r>=n)&&Object.keys(a.O).every((function(e){return a.O[e](f[b])}))?f.splice(b--,1):(d=!1,n<r&&(r=n));if(d){e.splice(u--,1);var o=c();void 0!==o&&(t=o)}}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[f,c,n]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},f=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var n=Object.create(null);a.r(n);var r={};t=t||[null,f({}),f([]),f(f)];for(var d=2&c&&e;"object"==typeof d&&!~t.indexOf(d);d=f(d))Object.getOwnPropertyNames(d).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},a.d(n,r),n},a.d=function(e,t){for(var f in t)a.o(t,f)&&!a.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:t[f]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,f){return a.f[f](e,t),t}),[]))},a.u=function(e){return"assets/js/"+({53:"935f2afb",528:"800d88d2",836:"1b758871",838:"37fe4dea",1187:"79c260cf",1308:"0d195716",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1685:"29e7168c",2031:"dadefd20",2352:"d3c921a8",2558:"a3457942",2566:"3e2cefe5",2596:"5ffc6399",2717:"078b18b7",2961:"38789362",3085:"1f391b9e",3120:"2c127759",3149:"9a9bc35c",3237:"1df93b7f",3256:"b51a0084",3330:"2b610ee2",3506:"26f73f9f",3608:"9e4087bc",3656:"1efa5838",3795:"6ff605af",3964:"67ac35a6",3974:"e3015b82",4093:"cadd292b",4196:"4e1fc67b",4349:"341f8302",4377:"8bbdd1b6",4569:"8c300d32",4868:"d03a288b",5231:"8e0f778b",5981:"42e2cc7c",6230:"4edc5f94",6388:"d4cbf223",6661:"8c5ee32e",6763:"12ae9db4",6901:"ecb88550",6971:"c377a04b",7309:"f402e59b",7414:"393be207",7653:"27ba855c",7882:"dcdd45ce",7918:"17896441",8102:"b9b062d6",9136:"2339d2f0",9315:"ba38ef30",9373:"cd20b58f",9490:"6907d369",9514:"1be78505",9666:"863aad54",9791:"1d131567",9931:"f133530e",9957:"09dc1e0e"}[e]||e)+"."+{53:"e3a0351c",528:"09e65ce2",836:"481b561e",838:"6e68fcdf",1187:"bc7e0407",1308:"68d99755",1358:"13c6cbb7",1477:"ef5c39b9",1521:"8556017d",1685:"e2ef1cd1",2031:"1d13f36f",2352:"484d4352",2558:"ff70a6d3",2566:"360ab7e3",2596:"6c8c9c1b",2717:"8bd6b355",2961:"5215d409",3085:"ec33a90a",3120:"78439447",3149:"2cac84a2",3237:"84d7bf77",3256:"01f49bf8",3330:"b963f4d0",3506:"5a53b0a0",3608:"49f3d38a",3656:"7abcb9be",3795:"730df6d8",3964:"a9767eb6",3974:"6191525d",4093:"08121389",4196:"e4dccbeb",4349:"b26e2fda",4377:"e531719e",4569:"44d5bd79",4608:"8a1af423",4868:"2236ec8e",5231:"b861e162",5897:"9d699ae9",5981:"35d6ab1f",6230:"5689046a",6388:"19a3e4ec",6460:"c1927e5c",6661:"25e86019",6763:"27be86cf",6901:"104942f5",6971:"429aeb84",7309:"d5492e0e",7414:"7d8576b6",7653:"e4c5b50e",7882:"5b1b87c4",7918:"0cc10e7c",8102:"3b429645",9136:"d87c08eb",9315:"87ff99d9",9373:"d28430d0",9490:"44596f3b",9514:"f8bc29db",9666:"be64730a",9791:"0b8fdd78",9931:"a6599842",9957:"34c4b9c7"}[e]+".js"},a.miniCssF=function(e){},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c={},n="website:",a.l=function(e,t,f,r){if(c[e])c[e].push(t);else{var d,b;if(void 0!==f)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var i=o[u];if(i.getAttribute("src")==e||i.getAttribute("data-webpack")==n+f){d=i;break}}d||(b=!0,(d=document.createElement("script")).charset="utf-8",d.timeout=120,a.nc&&d.setAttribute("nonce",a.nc),d.setAttribute("data-webpack",n+f),d.src=e),c[e]=[t];var l=function(t,f){d.onerror=d.onload=null,clearTimeout(s);var n=c[e];if(delete c[e],d.parentNode&&d.parentNode.removeChild(d),n&&n.forEach((function(e){return e(f)})),t)return t(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=l.bind(null,d.onerror),d.onload=l.bind(null,d.onload),b&&document.head.appendChild(d)}},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.p="/",a.gca=function(e){return e={17896441:"7918",38789362:"2961","935f2afb":"53","800d88d2":"528","1b758871":"836","37fe4dea":"838","79c260cf":"1187","0d195716":"1308",afe7e8e5:"1358",b2f554cd:"1477","0f06fd08":"1521","29e7168c":"1685",dadefd20:"2031",d3c921a8:"2352",a3457942:"2558","3e2cefe5":"2566","5ffc6399":"2596","078b18b7":"2717","1f391b9e":"3085","2c127759":"3120","9a9bc35c":"3149","1df93b7f":"3237",b51a0084:"3256","2b610ee2":"3330","26f73fLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var e,f,t,d,c,a={},n={};function r(e){var f=n[e];if(void 0!==f)return f.exports;var t=n[e]={exports:{}};return a[e].call(t.exports,t,t.exports,r),t.exports}r.m=a,e=[],r.O=function(f,t,d,c){if(!t){var a=1/0;for(u=0;u<e.length;u++){t=e[u][0],d=e[u][1],c=e[u][2];for(var n=!0,b=0;b<t.length;b++)(!1&c||a>=c)&&Object.keys(r.O).every((function(e){return r.O[e](t[b])}))?t.splice(b--,1):(n=!1,c<a&&(a=c));if(n){e.splice(u--,1);var o=d();void 0!==o&&(f=o)}}return f}c=c||0;for(var u=e.length;u>0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[t,d,c]},r.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(f,{a:f}),f},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var c=Object.create(null);r.r(c);var a={};f=f||[null,t({}),t([]),t(t)];for(var n=2&d&&e;"object"==typeof n&&!~f.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach((function(f){a[f]=function(){return e[f]}}));return a.default=function(){return e},r.d(c,a),c},r.d=function(e,f){for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(f,t){return r.f[t](e,f),f}),[]))},r.u=function(e){return"assets/js/"+({53:"935f2afb",336:"e836e7f0",528:"800d88d2",836:"1b758871",838:"37fe4dea",1187:"79c260cf",1308:"0d195716",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1685:"29e7168c",1884:"c8b7a7b8",2031:"dadefd20",2202:"34a267b8",2352:"d3c921a8",2558:"a3457942",2566:"3e2cefe5",2717:"078b18b7",2961:"38789362",3085:"1f391b9e",3120:"2c127759",3149:"9a9bc35c",3237:"1df93b7f",3256:"b51a0084",3330:"2b610ee2",3506:"26f73f9f",3608:"9e4087bc",3656:"1efa5838",3795:"6ff605af",3964:"67ac35a6",3974:"e3015b82",4093:"cadd292b",4196:"4e1fc67b",4349:"341f8302",4377:"8bbdd1b6",4569:"8c300d32",4772:"871b43d2",4868:"d03a288b",5231:"8e0f778b",5981:"42e2cc7c",6193:"d4a6286b",6230:"4edc5f94",6388:"d4cbf223",6661:"8c5ee32e",6763:"12ae9db4",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7309:"f402e59b",7414:"393be207",7653:"27ba855c",7835:"23a5733a",7882:"dcdd45ce",7918:"17896441",8102:"b9b062d6",9136:"2339d2f0",9155:"d6b25613",9315:"ba38ef30",9373:"cd20b58f",9490:"6907d369",9491:"adbed512",9514:"1be78505",9666:"863aad54",9730:"daa8642d",9791:"1d131567",9931:"f133530e",9957:"09dc1e0e"}[e]||e)+"."+{53:"0307aba5",336:"673b3edf",528:"09e65ce2",836:"481b561e",838:"6e68fcdf",1187:"bc7e0407",1308:"68d99755",1358:"13c6cbb7",1477:"ef5c39b9",1521:"8556017d",1685:"e2ef1cd1",1884:"1244de6b",2031:"1d13f36f",2202:"eb57e5c2",2352:"484d4352",2558:"ff70a6d3",2566:"360ab7e3",2717:"8bd6b355",2961:"5215d409",3085:"ec33a90a",3120:"78439447",3149:"2cac84a2",3237:"84d7bf77",3256:"01f49bf8",3330:"b963f4d0",3506:"5a53b0a0",3608:"49f3d38a",3656:"7abcb9be",3795:"730df6d8",3964:"a9767eb6",3974:"6191525d",4093:"08121389",4196:"e4dccbeb",4349:"b26e2fda",4377:"58751fa3",4569:"44d5bd79",4608:"8a1af423",4772:"cd34a86e",4868:"2236ec8e",5231:"b861e162",5897:"9d699ae9",5981:"35d6ab1f",6193:"e624e6a0",6230:"5689046a",6388:"19a3e4ec",6460:"c1927e5c",6661:"25e86019",6763:"27be86cf",6901:"104942f5",6971:"dadea231",6995:"09d0d563",7008:"f1e773cc",7309:"d5492e0e",7414:"7d8576b6",7653:"e4c5b50e",7835:"5434213e",7882:"5b1b87c4",7918:"0cc10e7c",8102:"3b429645",9136:"d87c08eb",9155:"66ffdf3a",9315:"87ff99d9",9373:"d28430d0",9490:"44596f3b",9491:"f84c0c4b",9514:"f8bc29db",9666:"be64730a",9730:"1be78b3f",9791:"0b8fdd78",9931:"a6599842",9957:"34c4b9c7"}[e]+".js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d={},c="website:",r.l=function(e,f,t,a){if(d[e])d[e].push(f);else{var n,b;if(void 0!==t)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var i=o[u];if(i.getAttribute("src")==e||i.getAttribute("data-webpack")==c+t){n=i;break}}n||(b=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.nc),n.setAttribute("data-webpack",c+t),n.src=e),d[e]=[f];var l=function(f,t){n.onerror=n.onload=null,clearTimeout(s);var c=d[e];if(delete d[e],n.parentNode&&n.parentNode.removeChild(n),c&&c.forEach((function(e){return e(t)})),f)return f(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),b&&document.head.appendChild(n)}},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/",r.gca=function(e){return e={17896441:"7918",38789362:"2961",56163916:"6995","935f2afb":"53",e836e7f0:"336","800d88d2":"528","1b7Line truncated
|
||||
Reference in new issue
Block a user