Registry / database / claviz-database-forms

claviz-database-forms

JSON →
library0.0.13jsnpmunverified

CRUD functionality for PostgreSQL and MSSQL database tables in Claviz. Current stable version: 0.0.13 (March 2025). Release cadence: weekly. Key differentiators: provides no-code tables/forms for database tables, supports autocomplete, XLSX upload, hooks, and styling. Requires external query functions and numeral package.

npm install claviz-database-forms
INSTALL
IMPORT
SIG · CLAVIZ-DATABASE-FO
C
claviz-database-forms
databasejavascriptv0.0.13
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

claviz-database-forms
✓ import 'claviz-database-forms'
This package is likely a plugin or side-effect module; no explicit exports needed.

Shows required function setup for PostgreSQL and MSSQL query execution.

// Setup: create query functions with specific naming async function executePostgreSqlQuery(query) { // implementation using pg client const result = await client.query(query); return result.rows; } async function executeMssqlQuery(query) { // implementation using mssql const result = await pool.request().query(query); return result.recordset; } // Then in Claviz UI, assign these functions to tables/forms. // Also add clavizAdminUsername and clavizAdminPassword to KeyVault. // Required: npm install numeral
Debug
Known issues
gotchaQuery functions must contain 'executePostgreSqlQuery' or 'executeMssqlQuery' in their name (case-insensitive).
fix
Rename functions to include the required substring.
affects: >=0.0.1
gotchaValidator function signature changed: must accept (values, isExisting) parameters.
fix
Update validator functions to match the new signature.
affects: >=0.0.1
gotchaXLSX upload preview limited to first 100 rows (since v0.0.12).
fix
No fix; behavior change accepted.
affects: >=0.0.12
gotchaDate fields are normalized to UTC (since v0.0.3).
fix
Adjust timezone handling in application code.
affects: >=0.0.3
Errors
Common errors & fixes
Error: `format` can only be used on `Date`, `Number` or `"Formula"` cells
Numerical values not cast to Numeric type when downloading XLSX.
fix
Update to v0.0.11 or later.
"$meta" missing in dbTable
Bug in v0.0.1 that omits metadata field.
fix
Update to v0.0.2 or later.
Upgrade
Version history
0.0.13latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Anthropic
1
OpenAI (training)
1
Resources
claviz-database-forms — npm install claviz-database-forms · libregistry