Skip to content

Releases: overextended/oxmysql

v2.0.1

18 Feb 23:09
Compare
Choose a tag to compare

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

v2.0.0

18 Feb 18:09
0c76206
Compare
Choose a tag to compare

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

  • nui: WIP React rewrite (Luke)
  • nui: Rename some exported components (Luke)
  • ui: Remove yarn.log from .gitignore (dunak-debug)
  • ui: Update boilerplate version (Luke)
  • nui: Remove unused imports (Luke)
  • fxmanifest: add convar_category (Linden)
  • nui: Remove unnecessary alt ([Luke](255dc69...
Read more

v1.9.3

01 Jan 22:40
Compare
Choose a tag to compare

Bug Fixes

  • config: Throw error when connection string not found (dunak-debug)

Commits

  • 8f7fc7b: Update README.md (Linden)

v1.9.2

28 Dec 17:18
Compare
Choose a tag to compare

Bug Fixes

  • db: parseArguments during try block (Linden)
  • utils: convertNamedPlaceholders requires parameters (Linden)

v1.9.1

28 Dec 07:42
Compare
Choose a tag to compare

Bug Fixes

  • lib: accept cb.__cfx_functionReference during safeArgs #80 (Linden)
  • db: incorrect error reporting failed queries (Linden)

v1.9.0

24 Dec 17:55
893b802
Compare
Choose a tag to compare

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)

Commits

  • 00bfcd3: Relicense from GPL to LGPL (Linden)
  • 9b8d6d6: update release workflows (Linden)

v1.8.7

10 Dec 10:57
Compare
Choose a tag to compare

Bug Fixes

  • execute: check resourcestate is 'started' to resolve promise (Linden)

v1.8.6

10 Dec 00:20
Compare
Choose a tag to compare

Code Refactoring

  • execute: execute queries after first tick (Linden)
  • patch/named-placeholders: performance tweaks (Linden)

Tests

  • revert recent changes (Linden)
  • re-enable slow query warnings (Linden)

Commits

  • b27662d: Update issue templates (Linden)

v1.8.5

06 Dec 06:56
Compare
Choose a tag to compare

Bug Fixes

v1.8.4

03 Dec 16:23
Compare
Choose a tag to compare

Bug Fixes

  • JS sync exports check (Linden)