Skip to content

Commit 1ebe100

Browse files
Update readme.md #27
1 parent c44b01b commit 1ebe100

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ npm install sqlitecloud-js
1818
## Usage
1919

2020
```ts
21-
// import sqlitecloud driver
2221
import { Database } from 'sqlitecloud-js'
2322

24-
// trivial example here but let's suppose we have this in a variable
2523
let name = 'Ava Jones'
2624

27-
// run our prepared statement (or plain sql) with familiar print syntax
2825
let results = await database.sql`SELECT * FROM people WHERE name = ${name}`
2926
// => returns [{ id: 5, name: 'Ava Jones', age: 22, hobby: 'Time traveling' }]
3027
```
3128

32-
## API
29+
Use `Database.sql` for executing both your prepared statements and plain SQL queries asynchronously. This method returns an array of rows for SELECT queries and supports the standard syntax for UPDATE, INSERT, and DELETE.
30+
31+
We aim for full compatibility with the established [sqlite3](https://www.npmjs.com/package/sqlite3) API, with the primary distinction being that our driver connects to SQLiteCloud databases. This allows you to migrate your local SQLite databases to the cloud while continuing to use your existing codebase.
3332

34-
We are striving to be 100% compatibile with the widely used sqlite3 APIs, the difference being that this driver connects to your SQLiteCloud database. You can take you local SQLite, deploy in the cloud and keep using the same code. Easy! You can also use Database.sql to run an async query.
33+
The package is developed entirely in TypeScript and is fully compatible with JavaScript, without requiring any native libraries. This makes it a straightforward and effective tool for managing cloud-based databases in a familiar SQLite environment.
34+
35+
## API
3536

3637
### myPackage(input, options?)
3738

@@ -54,9 +55,9 @@ Lorem ipsum.
5455

5556
[build-img]: https://github.com/ryansonshine/typescript-npm-package-template/actions/workflows/release.yml/badge.svg
5657
[build-url]: https://github.com/ryansonshine/typescript-npm-package-template/actions/workflows/release.yml
57-
[downloads-img]: https://img.shields.io/npm/dt/typescript-npm-package-template
58-
[downloads-url]: https://www.npmtrends.com/typescript-npm-package-template
59-
[npm-img]: https://img.shields.io/npm/v/typescript-npm-package-template
60-
[npm-url]: https://www.npmjs.com/package/typescript-npm-package-template
58+
[downloads-img]: https://img.shields.io/npm/dt/sqlitecloud-js
59+
[downloads-url]: https://www.npmtrends.com/sqlitecloud-js
60+
[npm-img]: https://img.shields.io/npm/v/sqlitecloud-js
61+
[npm-url]: https://www.npmjs.com/package/sqlitecloud-js
6162
[issues-img]: https://img.shields.io/github/issues/sqlitecloud/sqlitecloud-js
6263
[issues-url]: https://github.com/sqlitecloud/sqlitecloud-js/issues

0 commit comments

Comments
 (0)