All Projects → rahmanfadhil → cotton

rahmanfadhil / cotton

Licence: MIT license
SQL Database Toolkit for Deno

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to cotton

zeno.zsh
zsh fuzzy completion and utility plugin with Deno.
Stars: ✭ 119 (-7.75%)
Mutual labels:  deno
Deno-news-cli
A deno based CLI app to show quick news at your terminal
Stars: ✭ 18 (-86.05%)
Mutual labels:  deno
kyuko
Fast and easy http framework for Deno Deploy 🦕
Stars: ✭ 18 (-86.05%)
Mutual labels:  deno
kafkaSaur
Apache Kafka client for Deno
Stars: ✭ 42 (-67.44%)
Mutual labels:  deno
compress
compress and uncompress for Deno
Stars: ✭ 29 (-77.52%)
Mutual labels:  deno
croner
Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.
Stars: ✭ 169 (+31.01%)
Mutual labels:  deno
azure-functions-deno-worker
Run Deno 🦕 on Azure Functions ⚡️
Stars: ✭ 99 (-23.26%)
Mutual labels:  deno
sqlite3
The fastest and correct module for SQLite3 in Deno.
Stars: ✭ 143 (+10.85%)
Mutual labels:  deno
svelte
Svelte compiler ported to Deno
Stars: ✭ 71 (-44.96%)
Mutual labels:  deno
AloeDB
Light, Embeddable, NoSQL database for Deno 🦕
Stars: ✭ 111 (-13.95%)
Mutual labels:  deno
garn-validator
Create validations with ease
Stars: ✭ 42 (-67.44%)
Mutual labels:  deno
deno-bin
Use Deno via npm
Stars: ✭ 52 (-59.69%)
Mutual labels:  deno
sinco
Browser Automation and Testing Tool for Deno, written in full TypeScript
Stars: ✭ 54 (-58.14%)
Mutual labels:  deno
deno cheerio
How to use cheerio in Deno
Stars: ✭ 23 (-82.17%)
Mutual labels:  deno
justjavac
justjavac's modules
Stars: ✭ 15 (-88.37%)
Mutual labels:  deno
dotland
deno.land website
Stars: ✭ 947 (+634.11%)
Mutual labels:  deno
deno serverless aliyun
为阿里云 serverless 平台添加 Deno Runtime
Stars: ✭ 60 (-53.49%)
Mutual labels:  deno
reno
A thin, testable routing library designed to sit on top of Deno's standard HTTP module
Stars: ✭ 127 (-1.55%)
Mutual labels:  deno
deno-mongo-api
Example for building REST APIS with deno and MongoDB
Stars: ✭ 17 (-86.82%)
Mutual labels:  deno
deno math
Deno module for high-precision calculations and scientific computing
Stars: ✭ 21 (-83.72%)
Mutual labels:  deno

Cotton

ci GitHub release (latest by date)

SQL Database Toolkit for Deno.

  • Well-tested
  • Type-safe
  • Supports MySQL, SQLite, and PostgreSQL
  • Semantic versioning

Documentation

Getting Started

Here's an example of a Deno project that uses Cotton.

import { connect } from "https://deno.land/x/[email protected]/mod.ts";

const db = await connect({
  type: "sqlite",
  database: "db.sqlite3",
});

To use Cotton in your project, you can import cotton package from deno.land/x in your file. We highly recommend you to use semantic versioning by explicitly tell Deno which version you want to use in the import URL.

Typically, the first thing you want to do is to create a connection to a database. Here, we're using connect and pass our database configuration. You can read more about connection here.

Once our database is connected, do anything with it such as performing an SQL query.

const users = await db.query("SELECT * FROM users");

for (const user of users) {
  console.log(user); // { email: '[email protected]', age: 16, ... }
}

You can learn more about Cotton through these links. Have fun! 😃

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].