Skip to content

fix(sql): add SQL support for Postgres NUMERIC and custom data types (fix: #3158)#3275

Merged
FabianLars merged 3 commits intotauri-apps:v2from
mikenikles:mikenikles/support-custom-types
Mar 5, 2026
Merged

fix(sql): add SQL support for Postgres NUMERIC and custom data types (fix: #3158)#3275
FabianLars merged 3 commits intotauri-apps:v2from
mikenikles:mikenikles/support-custom-types

Conversation

@mikenikles
Copy link
Copy Markdown
Contributor

This PR adds support for Postgres NUMERIC (#3158) and custom data types.

The following invoice_type can be used for testing:

CREATE TYPE invoice_type AS ENUM (
    'outgoing_invoice',
    'incoming_invoice',
    'credit_note',
    'debit_note',
    'proforma'
);

CREATE TABLE invoices (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    invoice_number VARCHAR(50) NOT NULL UNIQUE,
    type invoice_type NOT NULL,
    subtotal NUMERIC(12, 2) NOT NULL,
    issue_date DATE NOT NULL DEFAULT CURRENT_DATE,
    due_date DATE NOT NULL
);

INSERT INTO invoices (invoice_number, type, subtotal, issue_date, due_date)
VALUES
    ('INV-2026-001', 'outgoing_invoice', 4500.00, '2026-01-10', '2026-02-10'),
    ('INV-2026-002', 'incoming_invoice', 12750.00, '2026-02-01', '2026-03-01'),
    ('CN-2026-001', 'credit_note', 500.00, '2026-02-05', '2026-03-05');

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 16, 2026

Package Changes Through be963c2

There are 12 changes which include sql with minor, sql-js with minor, fs with minor, fs-js with minor, http with patch, http-js with patch, updater with patch, updater-js with patch, dialog with minor, dialog-js with minor, deep-link with patch, deep-link-js with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.41 2.0.42
api-example-js 2.0.37 2.0.38
deep-link-example-js 2.2.10 2.2.11
deep-link 2.4.7 2.4.8
deep-link-js 2.4.7 2.4.8
fs 2.4.5 2.5.0
fs-js 2.4.5 2.5.0
dialog 2.6.0 2.7.0
dialog-js 2.6.0 2.7.0
http 2.5.7 2.5.8
http-js 2.5.7 2.5.8
persisted-scope 2.3.5 2.3.6
single-instance 2.4.0 2.4.1
sql 2.3.2 2.4.0
sql-js 2.3.2 2.4.0
updater 2.10.0 2.10.1
updater-js 2.10.0 2.10.1

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Comment thread plugins/sql/src/decode/postgres.rs
@FabianLars FabianLars linked an issue Mar 5, 2026 that may be closed by this pull request
@FabianLars FabianLars merged commit 1dc3612 into tauri-apps:v2 Mar 5, 2026
147 checks passed
@mikenikles mikenikles deleted the mikenikles/support-custom-types branch March 7, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Plugin-SQL] unsupported datatype: NUMERIC

2 participants