oslabs-beta/Ponder(新しいタブで開きます)
主要言語: TypeScript
Simple ORM for PostGRES
- star 数
- 81
- watcher 数
- 1
- fork 数
- 6
- issue 数
- 1
- 最終更新
- 2023/01/06
主要言語: TypeScript
Simple ORM for PostGRES
An Object Relational Mapping Tool for Deno Runtime Environment.
Ponder is available for import at: https://deno.land/x/ponder and this is our link to documentation website: https://ponder.deno.dev/
Ponder is a third-party module available at deno.land. Simply import/export the dependency for use in your project.
import * as ponder from "https://deno.land/x/ponder/mod.ts";
It is recommended to use the dotenv module from Deno to protect sensitive information. Import the dotenv module, write your Database URI as a variable in your own .env file, and then you can refer to it using that variable label.
#.env PG_URI=YourDatabaseURI #app import "https://deno.land/x/dotenv/load.ts"; const PG_URI = Deno.env.get('PG_URI'); // returns YourDatabaseURI from .env file
Connect your existing PostGRES Database using the built-in method called poolConnection. Ponder uses a pool connection which is strongly recommended by PostGRES for use in their databases. Simply insert your database URI (or insert from a dotenv file).
OPTIONAL Arguments: how many pool connections you'd like to have, true or false for Lazy Loading (recommended true).
import{ poolConnection } from'./deps.ts' const yourVariable = ponder.poolConnection(PG_URI);
Now, using yourVariable you can access and use any of Ponder's built-in methods.
The documentation is available here.
See docs for complete list of methods, their functionality, and how to use them.
Features currently in development include:
We are always looking to improve!
To make contributions, create a fork of the dev branch. Please be sure to utilize the Deno Typescript linter.
Ensure that any changes made are reflected in the documentation. Make a pull request to the Dev branch when
you have finished making your changes, note that once submitted any changes made will be covered under the MIT liscense.
- Sara Brown :
- Sam Goldenberg :
- Matt Connell :
- Corey McClendon-Brown :
- Stella Baek :