|
1 | | -# ByteDatabase |
2 | | -a cleanup and a more optimized update with docs and more methods will be coming soon. |
3 | | -eta: before june 7th |
| 1 | +# ByteDatabase - database for beginners. |
| 2 | +<div align="center"> |
| 3 | + <p> |
| 4 | + <a href="https://join.cloudteam.me"><img src="https://img.shields.io/discord/934070836619518082?color=%237289da&label=DIscord&style=for-the-badge" alt="Discord server" /></a> |
| 5 | + <a href="https://www.npmjs.com/package/byte.db"><img src="https://img.shields.io/npm/v/byte.db.svg?style=for-the-badge&logo=appveyor&maxAge=3600" alt="NPM version" /></a> |
| 6 | + <a href="https://www.npmjs.com/package/byte.db"><img src="https://img.shields.io/npm/dt/byte.db.svg?style=for-the-badge&logo=appveyor&maxAge=3600" alt="NPM downloads" /></a> |
| 7 | + <a href="https://www.buymeacoffee.com/cloudteam"><img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshields-io-buymeacoffee.vercel.app%2Fapi%3Fusername%3Dcloudteam%26type%3Dpatrons&style=for-the-badge&logo=appveyor" alt="Patreon" /></a> |
| 8 | + </p> |
| 9 | +</div> |
| 10 | + |
| 11 | +<div align="center"> |
| 12 | + <p><img src="https://cdn.discordapp.com/attachments/979835741930655854/979845371163451412/bytedb_banner.png" alt="Enmap Logo" /> |
| 13 | +</div> |
| 14 | + |
| 15 | +## Table of Content |
| 16 | +- [Features](#features) |
| 17 | +- [Installation](#installation) |
| 18 | +- [Changelog](#changelog) |
| 19 | +- [Quick Examples](#quick-examples) |
| 20 | +- [Credits](#credits) |
| 21 | + |
| 22 | +## Features |
| 23 | +- <b>Persistent Storage</b>: Data stored won't disappear through restarts. |
| 24 | +- <b>Support for non-javascript/typescript projects</b>: With our API (on development) you can use the database on any project you want. |
| 25 | +- <b>Built for Beginners</b>: Our database is beginner friendly and our docs are straight-foward. |
| 26 | + |
| 27 | +## Installation |
| 28 | +Using NPM: |
| 29 | +``` |
| 30 | +npm i byte.db |
| 31 | +``` |
| 32 | +_If you're having issues with installing, please read our troubleshooting guide [here](https://github.com/cloudteamdev/ByteDatabase/docs/troubleshooting.md)_ |
| 33 | + |
| 34 | +## Changelog |
| 35 | +nothing yet |
| 36 | + |
| 37 | +## Quick Examples |
| 38 | +in ES6: |
| 39 | +```ts |
| 40 | +import { ByteDatabase } from "byte.db" |
| 41 | +``` |
| 42 | +in CommonJS: |
| 43 | +```js |
| 44 | +const { ByteDatabase } = require("byte.db") |
| 45 | +``` |
| 46 | +initialise the database by doing: |
| 47 | +```ts |
| 48 | +const bytedb = new ByteDatabase() |
| 49 | +// use default path and properties (learn more: https://github.com/cloudteamdev/ByteDatabase/docs/guide.md#properties) |
| 50 | +``` |
| 51 | +snippets:<br> |
| 52 | + ┕ insert: |
| 53 | + ```ts |
| 54 | + bytedb.insert("hello_world", "helloworld") // { changes: 1, lastInsertRowid: 1 } |
| 55 | + ``` |
| 56 | + ┕ find: |
| 57 | + ```ts |
| 58 | + bytedb.find("hello_world") // helloworld |
| 59 | + ``` |
| 60 | +_for more detailed examples check out our guide [here](https://github.com/cloudteamdev/ByteDatabase/docs/guide.md#methods)_ |
| 61 | + |
| 62 | +## Credits |
| 63 | +This database is an official project by the [CloudTeam](https://cloudteam.me) and is managed by [avonryle#2022](htts://github.com/avonryle) in discord. |
| 64 | +... other people will be posted later |
0 commit comments