Skip to content

Instantly share code, notes, and snippets.

View k4kabirmalik's full-sized avatar
💭
I may be slow to respond.

Kabir Malik k4kabirmalik

💭
I may be slow to respond.
View GitHub Profile
@k4kabirmalik
k4kabirmalik / CurrencyMeta.sql
Last active July 26, 2025 17:31
List of all currency with country, currency name, ISO codes, symbols, symbol position, layout direction in SQL format
CREATE TABLE CurrencyMeta (
Country TEXT NOT NULL,
CurrencyName TEXT NOT NULL,
ISOCodeAlpha2 CHAR(2) NOT NULL,
ISOCodeAlpha3 CHAR(3) NOT NULL,
Symbol TEXT,
SymbolPosition TEXT CHECK (SymbolPosition IN ('prefix', 'postfix')) DEFAULT 'prefix',
LayoutDirection TEXT CHECK (LayoutDirection IN ('LTR', 'RTL')) DEFAULT 'LTR',
-- Unique constraint to avoid duplicates by country and currency code