Releases: overextended/oxmysql
Releases Β· overextended/oxmysql
v2.0.1
BLOB data type
These should now unpack as an ordered array in the Lua runtime (previously, they were indexed by by a string starting from '0').
local function parseBuffer(buffer)
local tbl = {}
for i = 1, #buffer do
tbl[i] = string.char(buffer[i])
end
return table.concat(tbl)
end
MySQL.scalar('SELECT value FROM table', function(result)
result = parseBuffer(result)
print(json.encode(result)
end)
Bug Fixes
- Add charset to cast binary and json data correctly #86 (Jaime Filho)
- mysql2/binary_parser: Return BLOB as an array (Linden)
Chores
- Update version (Linden)
v2.0.0
Breaking update
If you're still using deprecated exports, do not update.
Lua resources should be utilising lib/MySQL.lua with either new syntax or mysql-async syntax.
JS resources should update export names.
Refer to the following for more information
Features
- Initial UI files #79 (Luke)
- Initial UI design #79 (Luke)
- SPA router #79 (Luke)
- ui: Client-side wrapper (dunak-debug)
- lib: Introduce wrapper for typescript (dunak-debug)
- ui: Query data fetching (Luke)
- ui: Setting resource list from NUI message (Luke)
- ui: Add react-router (dunak-debug)
- nui: Content container, right nav bar (Luke)
- nui: Entry animation (Luke)
- nui: Generate resource list from client data (Luke)
- nui: Query time table (Luke)
- nui: RightBar data fetching (Luke)
- nui: Table pagination (Luke)
- nui: WIP manual pagination (Luke)
- ui: Implement sorting function (WIP) (dunak-debug)
- ui: Render spinner until data fetched (dunak-debug)
- Add husky (Luke)
- nui: WIP pie chart (Luke)
- nui: Fetch chart data from resources (Luke)
- nui: Display slow queries with yellow text color (Luke)
- lib: Lua Language Server library definitions (Linden)
- nui: Display the amount of slow queries (Luke)
- Setup build scripts (Luke)
Bug Fixes
- Set correct fxmanifest bundle.js path (Luke)
- Initialize resource array before using it (Luke)
- lib: accept cb.__cfx_functionReference during safeArgs (#80) #80 (Dunak)
- ui: Don't display failed fetches in browser (Luke)
- nui: Main content wrapper (Luke)
- nui: Visibility setting and building (Luke)
- client: Set visibility and focus (Luke)
- nui: Don't throw failed to fetch error in browser (Luke)
- nui: Add missing key to resource map (Luke)
- nui: Add missing key to resource map (Luke)
- nui: Left bar width (Luke)
- execute: Parse parameters as intended (dunak-debug)
- nui: Data fetching into manual pagination (Luke)
- nui: Set resource name overflow to ellipsis (Luke)
- nui: Reset route on open event (Luke)
- Return correct scalar value (dunak-debug)
- lint: Use js commitlint config (dunak-debug)
- nui: Properly space all main content elements (Luke)
- nui: Truncate total query time (Luke)
- Scalar return value (dunak-debug)
- nui: Align columns (Luke)
- nui: Show current selected link in white (Luke)
- nui: Adjust resources header size (Luke)
- db/execute: Parse responses during prepare (Linden)
- utils/typeCast: Ensure field.packet is defined (Linden)
- logger: Require command ace permission to open ui (Luke)
- Update pre-release workflow (Luke)
- Update the proper pre-release workflow (Luke)
- src/update: Remove .zip from release url (Linden)
Code Refactoring
- Use store to set current resource #79 (Luke)
- nui: Layout improvements (Luke)
- nui: Improve resource text handling (Luke)
- nui: Truncate query text and show tooltip (Luke)
- utils/typeCast: Change BIT and BLOB types (Linden)
- update: Use GitHub releases API (Linden)
- nui: Improve design scalability (Luke)
Chores
v1.9.3
Bug Fixes
- config: Throw error when connection string not found (dunak-debug)
Commits
- 8f7fc7b: Update README.md (Linden)
v1.9.2
v1.9.1
v1.9.0
Features
- lib: setup new export wrappers with mysql-async aliases (Linden)
Bug Fixes
- execute: incorrect queryCount when sending single array (Linden)
- lib: don't clear alias table (Linden)
- lib: ensure safeArgs when using __call method (Linden)
- lib: Pass transaction to safeArgs (Dunak)
- lib: safeArgs requires transaction for await (Linden)
- lib: set correct alias for execute (Linden)
Code Refactoring
- patches: remove redundant code (Linden)
- replace webpack with esbuild (Linden)
- pool: cleanup connection options and createPool defaults (Linden)
- config: moved typeCast function into config (Linden)
- utils: rename parser and add additional functions (Linden)
- transaction: parse arguments prior to establishing connection (Linden)
- execute: split into execute and query (Linden)
- utilise new exports and deprecate old ones (Linden)
- rename exports (Linden)
- lib: MySQL.Sync and MySQL.Async shared __index method (Linden)
Chores
- update readme info and include some sample queries (Linden)