Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@bigbinary/neeto-database-viewer

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigbinary/neeto-database-viewer

Common component used by [neeto-course-web](https://github.com/bigbinary/neeto-course-web) and [neeto-course-site](https://github.com/bigbinary/neeto-course-site) for viewing sqlite databases and running queries on them. Powered by [sql.js](https://sql.js

latest
npmnpm
Version
1.0.18
Version published
Weekly downloads
54
170%
Maintainers
3
Weekly downloads
 
Created
Source

Neeto Database Viewer

Common component used by neeto-course-web and neeto-course-site for viewing sqlite databases and running queries on them. Powered by sql.js

Usage

<DatabaseViewer
          dbBinaryContent={dbBinaryContent}
        />

[!NOTE] Please check and install the required peer dependencies

Props:

PropTypeRequiredDescription
dbBinaryContentstringYesBase64 encoded database file content.
shouldRunCodebooleanNoSet to true to run the query (remember to set it back to false).
querystringNoQuery to be ran.
isExercisebooleanNoSpecify if evaluation is required. (Default : false)
solutionQuerystringNoThe solution query used for evaluation
focusTableBeforeRunstringNoname of the table which should be focused
focusTableAfterRunstringNoname of the table which should be focused after running query
checkForViewscomma separated stringNoViews that should be taken into account while evaluation
setDbInstancefunctionNoCallback function which provides the db instance created using sql.js .Can be used to export db
onSqlRunfunctionNoCallback function which runs after query and evaluation is complete. Provides evaluation result and error message as arguments
showSchemaDataSwitcherbooleanNoSpecify if selector for schama and data needs to be shown
showForeignKeysbooleanNoIf Foreign keys need to be shown

Development setup

Example app is created with vite. Simply run

yarn dev

FAQs

Package last updated on 07 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts