{"id":22582443,"url":"https://github.com/vera0011/npm-sqlite3-simplifier","last_synced_at":"2026-05-05T09:33:33.196Z","repository":{"id":38378804,"uuid":"453056580","full_name":"Vera0011/NPM-sqlite3-simplifier","owner":"Vera0011","description":"NPM package, for SQLite simplifications","archived":false,"fork":false,"pushed_at":"2024-02-02T14:46:55.000Z","size":301,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T09:48:55.486Z","etag":null,"topics":["nodejs","npm","sqlite","sqlite-database","sqlite3"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@veraa/npm-sqlite3-simplifier","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vera0011.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-01-28T12:19:12.000Z","updated_at":"2022-03-24T15:26:31.000Z","dependencies_parsed_at":"2022-08-24T04:31:09.435Z","dependency_job_id":"7ebbfc82-269d-410b-be73-a2c46b543f77","html_url":"https://github.com/Vera0011/NPM-sqlite3-simplifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vera0011%2FNPM-sqlite3-simplifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vera0011%2FNPM-sqlite3-simplifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vera0011%2FNPM-sqlite3-simplifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vera0011%2FNPM-sqlite3-simplifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vera0011","download_url":"https://codeload.github.com/Vera0011/NPM-sqlite3-simplifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246068283,"owners_count":20718501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs","npm","sqlite","sqlite-database","sqlite3"],"created_at":"2024-12-08T06:09:56.483Z","updated_at":"2026-05-05T09:33:33.139Z","avatar_url":"https://github.com/Vera0011.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQLite Simplifier for NodeJS\n\n# ¿How it works?\n\nThis package was made to simplify the SQLite functions (although, their documentation is horrible, so I'm here to help you)\n\n**Important Information:**\n- The package is totally public (everyone can see the code), located in https://github.com/Vera0011/NPM-sqlite3-simplifier.git\n- The package **INCLUDES SQLite3 AND SQLCypher**\n- If you liked the package, leave a star in the repository, please!\n- Tha package is made to have different options, that we will see down here\n\n## Starting\n\n**1-** First of all, you need to install the package, like this:\n```\nnpm i @veraa/npm-sqlite3-simplifier\n```\n\n**2-** Import in your code the functions (you can just import those you need):\n```js\nconst {databaseLoad, databaseRun, databaseGet, databaseAll, databaseClose, databaseDropTable } = require(\"@veraa/npm-sqlite3-simplifier\");\n``` \n\n**3-** And that's it! The functions are asynchronous, so don't forget to use __async / await__\n\n## Configuration:\n- SQLCypher is **activated** from default (to encrypt all data).\n- If you want to disable SQLCypher, go to the __package.json__ of the module, and in the options section, change __\"isCypherEnabled\": true__ to __\"isCypherEnabled\": false__.\n- **IF YOU USE SQLCypher, change the password, located in __package.json__ of the module, __\"key\"__ section** (you can change it to whatever you want).\n\n\n\n## Functions, parameters, etc\n\n**1-**\n```js\nawait databaseLoad(path, databaseName);\n/** \n@params\n- Path (string)\nPath where you want the database to get started\n\n- databaseName (string)\nThe name you want for your database (set to \"database.db\" for default)\n\n@Return\n- If all is okay, returns 1\n- If an error occures, returns 0 and a error message\n*/\n```\n\n**2-**\n```js\nawait databaseRun(sql, params);\n\n/** \n@params\n- sql (string)\nSQL sentence used. Example: `CREATE TABLE IF NOT EXISTS example (example TEXT)`\n\n- params (array of strings)\nIf you want to use parameters, for example: [userData, userName], use this parameter. Default is null\n\n@Return\n- If all is okay, returns 1\n- If an error occures, returns 0 and a error message\n*/\n```\n\n**3-**\n```js\nawait databaseGet(sql, params);\n\n/** \n@params\n- sql (string)\nSQL sentence used. Example: `INSERT INTO example VALUES (example)`\n\n- params (array of strings)\nIf you want to use parameters, for example: [userData, userName], use this parameter. Default is null\n\n@Return\n- If all is okay, returns the first coincidence found in the database\n- If an error occures, returns 0 and a error message\n*/\n```\n\n**4-**\n```js\nawait databaseAll(sql, params);\n\n/** \n@params\n- sql (string)\nSQL sentence used. Example: `SELECT * FROM example WHERE examle=\"example\"`\n\n- params (array of strings)\nIf you want to use parameters, for example: [userData, userName], use this parameter. Default is null\n\n@Return\n- If all is okay, returns all the coincidences found in the database\n- If an error occures, returns 0 and a error message\n*/\n```\n\n**5-**\n```js\nawait databaseClose();\n\n/** \n@Return\n- If all is okay, returns 1\n- If an error occures, returns 0 and a error message\n*/\n```\n\n**6-**\n```js\nawait databaseDropTable(table);\n\n/** \n@params\n- table (string)\nName of the table to drop.\n\n@Return\n- If all is okay, returns 1\n- If an error occures, returns 0 and a error message\n*/\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvera0011%2Fnpm-sqlite3-simplifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvera0011%2Fnpm-sqlite3-simplifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvera0011%2Fnpm-sqlite3-simplifier/lists"}