{"id":21481331,"url":"https://github.com/ragarwalll/hana-orm","last_synced_at":"2025-03-17T09:13:46.683Z","repository":{"id":196338266,"uuid":"679238788","full_name":"ragarwalll/hana-orm","owner":"ragarwalll","description":"HANA ORM for NodeJS Applications with typescript support","archived":false,"fork":false,"pushed_at":"2023-09-24T16:26:23.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-27T22:42:58.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ragarwalll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null}},"created_at":"2023-08-16T11:58:58.000Z","updated_at":"2023-09-23T15:47:48.000Z","dependencies_parsed_at":"2023-09-24T15:55:27.365Z","dependency_job_id":"a311c20e-57d0-479c-94f9-f359babee0d5","html_url":"https://github.com/ragarwalll/hana-orm","commit_stats":null,"previous_names":["ragarwal06/hana-orm","ragarwalll/hana-orm"],"tags_count":5,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragarwalll%2Fhana-orm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragarwalll%2Fhana-orm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragarwalll%2Fhana-orm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragarwalll%2Fhana-orm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragarwalll","download_url":"https://codeload.github.com/ragarwalll/hana-orm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006398,"owners_count":20382443,"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":[],"created_at":"2024-11-23T12:23:27.313Z","updated_at":"2025-03-17T09:13:46.658Z","avatar_url":"https://github.com/ragarwalll.png","language":"TypeScript","readme":"@ragarwal06/hana-orm - SAP HANA Database Client Wrapper for NodeJS (with Typescipt Support)\n==============================================\n\n\u003ca href=\"https://www.npmjs.com/package/@ragarwal06/hana-orm\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@ragarwal06/hana-orm\" alt=\"Version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@ragarwal06/hana-orm\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dw/@ragarwal06/hana-orm\" alt=\"Total Downloads\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@ragarwal06/hana-orm\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/@ragarwal06/hana-orm\" alt=\"License\"\u003e\n\u003c/a\u003e\n\nTable of contents\n-------------\n\n* [Install](#install)\n* [Getting started](#getting-started)\n* [Contact](#contact)\n\nInstall\n-------\n\nInstall from npm:\n\n```bash\nnpm install @ragarwal06/hana-orm\n```\n\nor clone from the [GitHub repository](https://github.com/ragarwal06/hana-orm) to run tests and examples locally:\n\n```bash\ngit clone https://github.com/ragarwal06/hana-orm.git\ncd hana-orm\nnpm install\n```\n\nGetting started\n------------\n\nIf you do not have access to an SAP HANA server, go to the [SAP HANA Developer Center](https://developers.sap.com/topics/hana.html) and choose one of the options to use SAP HANA Express or deploy a new SAP HANA Cloud server.\n\nThis is a very simple example showing how to use this module in Javascript:\n\n```js\nconst hanaOrm = require(\"@ragarwal06/hana-orm\");\nconst client = hanaOrm.createClient({\n  host: \"hostname\",\n  port: 30015,\n  user: \"user\",\n  password: \"secret\",\n});\nclient.then(() =\u003e {\n  const { insert, remove, find, update, prepareForTable } =\n    hanaOrm.databaseOperations();\n    \n    insert({\n      columnNames: [\"name\"],\n      conditions: {\n        name: \"\",\n      },\n      clause: \"AND\",\n    })\n});\n```\n\nThis is a very simple example showing how to use this module in Typescript:\n\n```ts\nimport { createClient, databaseOperations } from \"@ragarwal06/hana-orm\";\nconst client = createClient({\n  host: \"hostname\",\n  port: 30015,\n  user: \"user\",\n  password: \"secret\",\n});\n\ninterface Users {\n  name: string;\n}\n\nclient.then(() =\u003e {\n  const { insert, remove, find, update, prepareForTable } =\n    databaseOperations();\n\n  find\u003cUsers\u003e({\n    columnNames: [\"name\"],\n    conditions: {\n      name: \"\",\n    },\n    clause: \"AND\",\n  });\n});\n```\n\nThis is a very simple example showing how to use this module in Express:\n\n```ts\napp.use(prepareClient({\n  host: \"hostname\",\n  port: 30015,\n  user: \"user\",\n  password: \"secret\",\n}))\n```\n\n```ts\nrouter.get('/user', async (req: Request, res: Response) =\u003e {\n  const { insert, remove, find, update, prepareForTable } =\n    req.db;\n});\n```\n\nContact\n-------\n\nIf you face any issue please write to [owner](mailto:agarwal.rahul324@gmail.com) or create a [GitHub issue](https://github.com/ragarwal06/hana-orm/issues/new?assignees=\u0026labels=bug\u0026projects=\u0026template=issue.md\u0026title=)\n\nFor feature request please request [here](https://github.com/ragarwal06/hana-orm/issues/new?assignees=\u0026labels=feature\u0026projects=\u0026template=feature.md\u0026title=)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragarwalll%2Fhana-orm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragarwalll%2Fhana-orm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragarwalll%2Fhana-orm/lists"}