Conform
Check and standardize phone numbers, emails, IBANs, EU VAT numbers, card numbers, URLs and postal codes offline, with no external service
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Available · $10/month organization minimum
Use with an agent
Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.
npx skills add Query-farm/vgi-skills --skill orchard
Copy this request into your coding agent to get started.
Use https://query.farm/products/orchard/connectors/conform/index.md to help me query Conform with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.
Validate and normalise a column of email addresses
Example output · captured
- Connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT email, conform.main.is_valid_email(email) AS valid,
conform.main.normalize_email(email) AS normalized,
conform.main.email_domain(email) AS domain
FROM (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]')) AS t(email)
| valid | normalized | domain | |
|---|---|---|---|
| [email protected] | true | [email protected] | example.com |
| [email protected] | true | [email protected] | query.farm |
| [email protected] | true | [email protected] | sub.example.org |
Quick start
Choose where to run Conform, then follow the steps below.
The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.
1. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
2. Attach the connector
Attach with uvx
Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.
ATTACH 'conform' AS conform (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-conform-worker'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'conform' AS conform (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-conform:0.5.0'
);
3. Run a query
SELECT email, conform.main.is_valid_email(email) AS valid,
conform.main.normalize_email(email) AS normalized,
conform.main.email_domain(email) AS domain
FROM (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]')) AS t(email)
Run the connector on a server you manage. You operate the service and choose who can connect.
1. Deploy the connector on your server
Follow the connector’s deployment instructions. Use its supported HTTP transport, or launch it remotely over SSH. The connection guide explains both options.
2. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach the connector
For an HTTP deployment, replace the example URL with your endpoint. Add the authentication options your deployment requires. For SSH, use the SSH connection instructions.
ATTACH 'conform' AS conform
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT email, conform.main.is_valid_email(email) AS valid,
conform.main.normalize_email(email) AS normalized,
conform.main.email_domain(email) AS domain
FROM (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]')) AS t(email)
Query Farm operates Conform for your team. Hosting has a $10 monthly minimum per organization; usage counts toward it. From $2.97 per instance-month ($10 monthly minimum).
1. Create your hosted connector
Open the console, choose your organization and deployment size, and add any service credentials there.
2. Install the vgi extension
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach your deployment
Copy the ATTACH statement from your deployment in the console and run it in DuckDB or Haybarn. Use conform as the catalog alias for the query below.
4. Run a query
SELECT email, conform.main.is_valid_email(email) AS valid,
conform.main.normalize_email(email) AS normalized,
conform.main.email_domain(email) AS domain
FROM (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]')) AS t(email)
Technical details
- Verified connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
- Verified on
- December 1, 2026
Pin a version for production
When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.
Attach with uvx
Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.
ATTACH 'conform' AS conform (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-conform-worker'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'conform' AS conform (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-conform:0.5.0'
);
Overview
Validate + normalize phone/email/IBAN/VAT/card/URL/postal fields for SQL
Validate and normalize phone numbers, emails, IBANs, EU VAT numbers, credit-card numbers, URLs, and postal codes directly in DuckDB SQL -- no UDF plumbing, no external service, and no network calls. The conform extension turns the data-cleaning steps you would normally script in Python into fast, set-based SQL functions, so you can check validity, standardize formatting, and extract field parts right where your data lives.
This catalog is built for anyone wrangling messy real-world contact, banking, and payment data: data engineers cleaning a CRM export, analysts deduplicating customer records, or pipelines that must reject malformed input before it lands. Every check is offline, deterministic, and total -- functions never raise on garbage (with one deliberate exception, an unknown postal-code country), returning false for is_valid_* and NULL for formatters and extractors. That makes the extension hermetic and safe to run over huge tables without DNS lookups or flaky I/O.
Under the hood, conform composes three best-in-class, battle-tested libraries. Phone parsing, validation, and E.164/national/international formatting come from phonenumbers (the Python port of Google's libphonenumber). IBAN, EU VAT, and the Luhn credit-card check come from python-stdnum (documentation). Email syntax validation and normalization come from email-validator. URL and postal-code handling are implemented in-process against per-country rules.
What you get
The surface divides into three shapes -- validity tests that return a boolean, normalizers/formatters that rewrite a value into a canonical string (ideal for joining or deduplication), and part extractors that pull a single component (a domain, country, brand, or host) out of a well-formed value -- plus discovery tables that enumerate the phone regions and card brands the worker recognizes.
Phone and VAT functions take an optional ISO region/country argument ('US' and the EU-prefixed form are defaults); postal-code validation requires a country.
SELECT conform.main.normalize_email('[email protected]');
SELECT conform.main.format_phone_e164('07911 123456', 'GB');
SELECT conform.main.mask_card('4111-1111-1111-1111');Catalog
Everything conform exposes once attached — read straight from the worker's
released build.
main 3 tables · 21 functions
Field validation, normalization, and discovery functions for the conform catalog
Schema examples (12)
Check whether a string is a syntactically valid email address.
SELECT conform.main.is_valid_email('[email protected]');
Canonicalize an email address (lower-cased domain) for deduplication.
SELECT conform.main.normalize_email('[email protected]');
Format a US phone number into canonical E.164 storage form.
SELECT conform.main.format_phone_e164('202-456-1111');
Validate an IBAN (length plus mod-97 checksum).
SELECT conform.main.is_valid_iban('GB82 WEST 1234 5698 7654 32');
8 more examples
Detect a payment card's brand from its prefix and length.
SELECT conform.main.card_brand('4111111111111111');
Mask a card number, keeping only the last four digits.
SELECT conform.main.mask_card('4111-1111-1111-1111');
Format-check a US postal (ZIP) code.
SELECT conform.main.is_valid_postal_code('90210', 'US');
List every recognized payment-card brand.
SELECT * FROM conform.main.card_brands() ORDER BY brand;
Count sign-ups per email domain after dropping invalid addresses, collapsing addresses that differ only in domain case into one unique address.
WITH signups(email) AS (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]'), ('[email protected]'), ('not-an-email')) SELECT conform.main.email_domain(email) AS domain, count(*) AS signup_rows, count(DISTINCT conform.main.normalize_email(email)) AS unique_addresses
FROM signups
WHERE conform.main.is_valid_email(email)
GROUP BY domain
ORDER BY domain;
Find contacts whose (valid) phone number belongs to a different country than the one on their record, showing the number's real region, E.164 form and line type.
WITH contacts(name, country, phone) AS (VALUES ('Ada', 'GB', '+44 7400 123456'), ('Bea', 'US', '+49 30 901820'), ('Cal', 'FR', '+33 6 12 34 56 78'), ('Dov', 'US', '(202) 456-1111'), ('Eli', 'US', '12345')) SELECT name, country, conform.main.phone_region(phone) AS phone_region, conform.main.format_phone_e164(phone) AS e164, conform.main.phone_type(phone) AS line_type
FROM contacts
WHERE conform.main.is_valid_phone(phone) AND conform.main.phone_region(phone) <> country
ORDER BY name;
Audit supplier bank details: validate and pretty-print each IBAN, normalize the VAT number, and flag whether the IBAN's country matches the VAT number's country (NULL when the IBAN is invalid).
WITH suppliers(name, iban, vat) AS (VALUES ('Alpen GmbH', 'DE89 3704 0044 0532 0130 00', 'DE 136 695 976'), ('Thames Ltd', 'GB82WEST12345698765432', 'DE136695976'), ('Seine SA', 'FR1420041010050500013M02606', 'FR40303265045'), ('Typo BV', 'NL00ABNA0417164300', 'NL004495445B01')) SELECT name, conform.main.is_valid_iban(iban) AS iban_ok, conform.main.format_iban(iban) AS iban, conform.main.iban_country(iban) AS iban_country, conform.main.format_vat(vat) AS vat, conform.main.iban_country(iban) = left(conform.main.format_vat(vat), 2) AS countries_match
FROM suppliers
ORDER BY name;
For every recognized card brand, count the payment card numbers of that brand and how many pass the Luhn check; brands with no cards show zero and unrecognized numbers are left out.
WITH payments(pan) AS (VALUES ('4111 1111 1111 1111'), ('4111 1111 1111 1112'), ('5555 5555 5555 4444'), ('3782 822463 10005'), ('6011111111111117'), ('9999 0000')) SELECT b.brand, count(p.pan) AS cards, count(p.pan) FILTER (WHERE conform.main.is_valid_card(p.pan)) AS luhn_valid
FROM conform.main.card_brands AS b
LEFT JOIN payments AS p ON conform.main.card_brand(p.pan) = b.brand
GROUP BY b.brand
ORDER BY b.brand;
card_brands
The brands card_brand() can return, one per row (discovery table).
For every recognized card brand, count the payment card numbers of that brand and how many pass the Luhn check; brands with no cards show zero and unrecognized numbers are left out.
WITH payments(pan) AS (VALUES ('4111 1111 1111 1111'), ('4111 1111 1111 1112'), ('5555 5555 5555 4444'), ('3782 822463 10005'), ('6011111111111117'), ('9999 0000')) SELECT b.brand, count(p.pan) AS cards, count(p.pan) FILTER (WHERE conform.main.is_valid_card(p.pan)) AS luhn_valid
FROM conform.main.card_brands AS b
LEFT JOIN payments AS p ON conform.main.card_brand(p.pan) = b.brand
GROUP BY b.brand
ORDER BY b.brand;
Check whether 'visa' is among the recognized card brands.
SELECT count(*) > 0 AS has_visa
FROM conform.main.card_brands
WHERE brand = 'visa';
Count how many card brands the worker recognizes.
SELECT count(*) AS brand_count FROM conform.main.card_brands;
1 more example
SELECT count(*) AS brand_count FROM conform.main.card_brands();
supported_phone_regions
Every (region, country_code) the phone functions understand (discovery table).
Count the supported regions and the distinct dialling codes among them.
SELECT count(*) AS regions, count(DISTINCT country_code) AS dialling_codes
FROM conform.main.supported_phone_regions;
Look up the UK's international dialling code.
SELECT country_code
FROM conform.main.supported_phone_regions
WHERE region = 'GB';
SELECT count(*) AS regions FROM conform.main.supported_phone_regions();
1 more example
SELECT country_code
FROM conform.main.supported_phone_regions()
WHERE region = 'GB';
supported_postal_countries
Every country is_valid_postal_code() understands, one per row (discovery table).
List every supported postal-code country in order.
SELECT country
FROM conform.main.supported_postal_countries
ORDER BY country;
Confirm US postal codes are supported before validating.
SELECT count(*) > 0 AS supported
FROM conform.main.supported_postal_countries
WHERE country = 'US';
SELECT count(*) AS countries FROM conform.main.supported_postal_countries();
1 more example
SELECT count(*) > 0 AS supported
FROM conform.main.supported_postal_countries()
WHERE country = 'US';
card_brand (text VARCHAR)
Card brand (visa/mastercard/amex/discover/diners/jcb) by prefix+length, or NULL
Detect the card brand
SELECT conform.main.card_brand('4111111111111111');
email_domain (text VARCHAR)
The (normalized) domain part of an email address, or NULL if invalid
Extract the email domain
SELECT conform.main.email_domain('[email protected]');
format_iban (text VARCHAR)
IBAN grouped into space-separated blocks of four, or NULL if invalid
Pretty-print an IBAN
SELECT conform.main.format_iban('GB82WEST12345698765432');
format_phone_e164 (text VARCHAR, region VARCHAR) +1 overload
Format a phone number as E.164, e.g. '+12024561111' (region defaults to 'US')
format_phone_e164(text VARCHAR) → VARCHARformat_phone_e164(text VARCHAR, region VARCHAR) → VARCHAR
Format a US phone number as E.164
SELECT conform.main.format_phone_e164('202-456-1111');
Format a UK phone number as E.164
SELECT conform.main.format_phone_e164('07911 123456', 'GB');
format_phone_international (text VARCHAR, region VARCHAR) +1 overload
Format a phone number in international form, e.g. '+1 202-456-1111' (region 'US')
format_phone_international(text VARCHAR) → VARCHARformat_phone_international(text VARCHAR, region VARCHAR) → VARCHAR
Format a US phone number in international form
SELECT conform.main.format_phone_international('202-456-1111');
Format a UK phone number in international form
SELECT conform.main.format_phone_international('07911 123456', 'GB');
format_phone_national (text VARCHAR, region VARCHAR) +1 overload
Format a phone number in national form, e.g. '(202) 456-1111' (region 'US')
format_phone_national(text VARCHAR) → VARCHARformat_phone_national(text VARCHAR, region VARCHAR) → VARCHAR
Format a US phone number in national form
SELECT conform.main.format_phone_national('2024561111');
Format a UK phone number in national form
SELECT conform.main.format_phone_national('07911 123456', 'GB');
format_vat (text VARCHAR, country VARCHAR) +1 overload
Compact (stripped, upper-cased) EU VAT number, or NULL if invalid
format_vat(text VARCHAR) → VARCHARformat_vat(text VARCHAR, country VARCHAR) → VARCHAR
Compact an EU VAT number
SELECT conform.main.format_vat('DE 136 695 976');
Compact a German VAT number
SELECT conform.main.format_vat('136 695 976', 'DE');
iban_country (text VARCHAR)
Two-letter country code of a valid IBAN, or NULL if invalid
Country code of an IBAN
SELECT conform.main.iban_country('GB82WEST12345698765432');
Audit supplier bank details: validate and pretty-print each IBAN, normalize the VAT number, and flag whether the IBAN's country matches the VAT number's country (NULL when the IBAN is invalid).
WITH suppliers(name, iban, vat) AS (VALUES ('Alpen GmbH', 'DE89 3704 0044 0532 0130 00', 'DE 136 695 976'), ('Thames Ltd', 'GB82WEST12345698765432', 'DE136695976'), ('Seine SA', 'FR1420041010050500013M02606', 'FR40303265045'), ('Typo BV', 'NL00ABNA0417164300', 'NL004495445B01')) SELECT name, conform.main.is_valid_iban(iban) AS iban_ok, conform.main.format_iban(iban) AS iban, conform.main.iban_country(iban) AS iban_country, conform.main.format_vat(vat) AS vat, conform.main.iban_country(iban) = left(conform.main.format_vat(vat), 2) AS countries_match
FROM suppliers
ORDER BY name;
is_valid_card (text VARCHAR)
True if the card number's digits pass the Luhn checksum
Validate a card number via Luhn
SELECT conform.main.is_valid_card('4111 1111 1111 1111');
is_valid_email (text VARCHAR)
True if text is a syntactically valid email address (no DNS lookup)
Valid email
SELECT conform.main.is_valid_email('[email protected]');
is_valid_iban (text VARCHAR)
True if text is a structurally valid IBAN (checksum included)
Validate an IBAN
SELECT conform.main.is_valid_iban('GB82 WEST 1234 5698 7654 32');
is_valid_phone (text VARCHAR, region VARCHAR) +1 overload
True if text is a valid phone number (region defaults to 'US')
is_valid_phone(text VARCHAR) → BOOLEANis_valid_phone(text VARCHAR, region VARCHAR) → BOOLEAN
Validate a US phone number
SELECT conform.main.is_valid_phone('202-456-1111');
Validate a UK phone number
SELECT conform.main.is_valid_phone('07911 123456', 'GB');
is_valid_postal_code (text VARCHAR, country VARCHAR)
True if text matches a country's postal-code format (modest coverage: US, CA, GB, DE, FR, NL, AU, JP, IN, BR). Unknown country raises an error.
Validate a US ZIP code
SELECT conform.main.is_valid_postal_code('90210', 'US');
Validate a Canadian postal code
SELECT conform.main.is_valid_postal_code('K1A 0B1', 'CA');
is_valid_url (text VARCHAR)
True if text is an absolute URL with a scheme and host
Validate a URL
SELECT conform.main.is_valid_url('https://example.com/path');
is_valid_vat (text VARCHAR, country VARCHAR) +1 overload
True if text is a valid EU VAT number (country-prefixed, e.g. 'DE136695976')
is_valid_vat(text VARCHAR) → BOOLEANis_valid_vat(text VARCHAR, country VARCHAR) → BOOLEAN
Validate a country-prefixed EU VAT number
SELECT conform.main.is_valid_vat('DE136695976');
Validate a German VAT number (unprefixed)
SELECT conform.main.is_valid_vat('136695976', 'DE');
mask_card (text VARCHAR)
Mask all but the last four digits, e.g. '************1234' (NULL if <4 digits)
Mask a card number
SELECT conform.main.mask_card('4111-1111-1111-1111');
SELECT conform.main.card_brand('4111111111111111');
SELECT conform.main.is_valid_card('4111 1111 1111 1111');
6 more examples
SELECT conform.main.normalize_email('[email protected]');
SELECT conform.main.format_phone_e164('202-456-1111');
WITH signups(email) AS (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]'), ('[email protected]'), ('not-an-email')) SELECT conform.main.email_domain(email) AS domain, count(*) AS signup_rows, count(DISTINCT conform.main.normalize_email(email)) AS unique_addresses
FROM signups
WHERE conform.main.is_valid_email(email)
GROUP BY domain
ORDER BY domain;
WITH contacts(name, country, phone) AS (VALUES ('Ada', 'GB', '+44 7400 123456'), ('Bea', 'US', '+49 30 901820'), ('Cal', 'FR', '+33 6 12 34 56 78'), ('Dov', 'US', '(202) 456-1111'), ('Eli', 'US', '12345')) SELECT name, country, conform.main.phone_region(phone) AS phone_region, conform.main.format_phone_e164(phone) AS e164, conform.main.phone_type(phone) AS line_type
FROM contacts
WHERE conform.main.is_valid_phone(phone) AND conform.main.phone_region(phone) <> country
ORDER BY name;
WITH suppliers(name, iban, vat) AS (VALUES ('Alpen GmbH', 'DE89 3704 0044 0532 0130 00', 'DE 136 695 976'), ('Thames Ltd', 'GB82WEST12345698765432', 'DE136695976'), ('Seine SA', 'FR1420041010050500013M02606', 'FR40303265045'), ('Typo BV', 'NL00ABNA0417164300', 'NL004495445B01')) SELECT name, conform.main.is_valid_iban(iban) AS iban_ok, conform.main.format_iban(iban) AS iban, conform.main.iban_country(iban) AS iban_country, conform.main.format_vat(vat) AS vat, conform.main.iban_country(iban) = left(conform.main.format_vat(vat), 2) AS countries_match
FROM suppliers
ORDER BY name;
WITH payments(pan) AS (VALUES ('4111 1111 1111 1111'), ('4111 1111 1111 1112'), ('5555 5555 5555 4444'), ('3782 822463 10005'), ('6011111111111117'), ('9999 0000')) SELECT b.brand, count(p.pan) AS cards, count(p.pan) FILTER (WHERE conform.main.is_valid_card(p.pan)) AS luhn_valid
FROM conform.main.card_brands AS b
LEFT JOIN payments AS p ON conform.main.card_brand(p.pan) = b.brand
GROUP BY b.brand
ORDER BY b.brand;
normalize_email (text VARCHAR)
Normalized email address (lower-cased domain, etc.), or NULL if invalid
Normalize an email address
SELECT conform.main.normalize_email('[email protected]');
Count sign-ups per email domain after dropping invalid addresses, collapsing addresses that differ only in domain case into one unique address.
WITH signups(email) AS (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]'), ('[email protected]'), ('not-an-email')) SELECT conform.main.email_domain(email) AS domain, count(*) AS signup_rows, count(DISTINCT conform.main.normalize_email(email)) AS unique_addresses
FROM signups
WHERE conform.main.is_valid_email(email)
GROUP BY domain
ORDER BY domain;
normalize_url (text VARCHAR)
Lower-case scheme + host and strip a default port, or NULL if invalid
Normalize a URL
SELECT conform.main.normalize_url('HTTP://Example.com:80/Path');
phone_region (text VARCHAR, region VARCHAR) +1 overload
The ISO region a phone number belongs to (parse region defaults to 'US')
phone_region(text VARCHAR) → VARCHARphone_region(text VARCHAR, region VARCHAR) → VARCHAR
Region a number belongs to
SELECT conform.main.phone_region('+447400123456');
Find contacts whose (valid) phone number belongs to a different country than the one on their record, showing the number's real region, E.164 form and line type.
WITH contacts(name, country, phone) AS (VALUES ('Ada', 'GB', '+44 7400 123456'), ('Bea', 'US', '+49 30 901820'), ('Cal', 'FR', '+33 6 12 34 56 78'), ('Dov', 'US', '(202) 456-1111'), ('Eli', 'US', '12345')) SELECT name, country, conform.main.phone_region(phone) AS phone_region, conform.main.format_phone_e164(phone) AS e164, conform.main.phone_type(phone) AS line_type
FROM contacts
WHERE conform.main.is_valid_phone(phone) AND conform.main.phone_region(phone) <> country
ORDER BY name;
Region a UK number belongs to
SELECT conform.main.phone_region('07400 123456', 'GB');
phone_type (text VARCHAR, region VARCHAR) +1 overload
Line type of a phone number, e.g. 'mobile'/'fixed_line' (parse region 'US')
phone_type(text VARCHAR) → VARCHARphone_type(text VARCHAR, region VARCHAR) → VARCHAR
Line type of a US number
SELECT conform.main.phone_type('202-456-1111');
Line type of a UK number
SELECT conform.main.phone_type('07911 123456', 'GB');
url_host (text VARCHAR)
Lower-cased host of a valid URL, or NULL if invalid
Extract the URL host
SELECT conform.main.url_host('https://WWW.Example.com/a');
Try these queries
Check whether a string is a syntactically valid email address.
SELECT conform.main.is_valid_email('[email protected]')
Uses is_valid_email
Canonicalize an email address (lower-cased domain) for deduplication.
SELECT conform.main.normalize_email('[email protected]')
Uses normalize_email
Format a US phone number into canonical E.164 storage form.
SELECT conform.main.format_phone_e164('202-456-1111')
Uses format_phone_e164
Validate an IBAN (length plus mod-97 checksum).
SELECT conform.main.is_valid_iban('GB82 WEST 1234 5698 7654 32')
Uses is_valid_iban
Detect a payment card's brand from its prefix and length.
SELECT conform.main.card_brand('4111111111111111')
Uses card_brand
Mask a card number, keeping only the last four digits.
SELECT conform.main.mask_card('4111-1111-1111-1111')
Uses mask_card
40 more examples in the Catalog, each listed under the table or function it uses.
Questions it can answer
Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.
- Is '[email protected]' a syntactically valid email address? Return the boolean.
- Normalize the email address '[email protected]' to its canonical form.
- Extract just the domain part of the email address '[email protected]'.
- Is '202-456-1111' a valid US phone number? Return the boolean.
- Format the UK phone number '07911 123456' as a canonical E.164 string.
- Format the US phone number '2024561111' in national display form.
Conform is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.
Related workers
Calendar
Dates, units & validation
Public holidays and business days for hundreds of countries, plus Easter, ISO weeks, and RRULE recurrences
Color
Dates, units & validation
Convert colors between hex, RGB, HSL and CIELAB, measure CIEDE2000 difference, and check WCAG contrast for accessibility
Units
Dates, units & validation
Convert measurements between units, normalize them to SI, and check that two quantities are comparable