Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ yarn-error.log*

# typescript
*.tsbuildinfo
next-env.d.ts
.stackql*
next-env.d.ts
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

22 changes: 6 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# stackqljs

[**StackQL**](https://github.com/stackql/stackql) client library for Deno and Node.js that exposes all features StackQL.
[__StackQL__](https://github.com/stackql/stackql) client library for Deno and Node.js that exposes all features StackQL.

## Requirements

Expand All @@ -14,18 +14,8 @@
- No dependencies
- Works in server mode (as a pg wire protocol server client) as well as local mode where it is a wrapper for the `stackql` binary for the target platform
- Exposes methods analagous to [`pystackql`](https://pystackql.readthedocs.io/en/latest/), including:
- `connect` - connect to a StackQL server - if in server mode
- `upgrade` - if in local mode, upgrade the local stackql binary from the latest release
- `execute` - execute a query returns an array of rows (objects)
- `executeStmt` - executes a statement and returns a string (like `REGISTRY PULL` or `INSERT ...`)
- `executeQueriesAsync` - executes a list of queries and returns an array of rows (objects) - queries need to return the same columns/schema

## Test

### Requirement

- To run the tests locally, [install StackQL](https://stackql.io/docs/installing-stackql) first.

```
deno task test <optional: test file path>
```
- `connect` - connect to a StackQL server - if in server mode
- `upgrade` - if in local mode, upgrade the local stackql binary from the latest release
- `execute` - execute a query returns an array of rows (objects)
- `executeStmt` - executes a statement and returns a string (like `REGISTRY PULL` or `INSERT ...`)
- `executeQueriesAsync` - executes a list of queries and returns an array of rows (objects) - queries need to return the same columns/schema
24 changes: 0 additions & 24 deletions deno.json

This file was deleted.

178 changes: 0 additions & 178 deletions deno.lock

This file was deleted.

2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { bold } from "https://deno.land/std/fmt/colors.ts"
export { bold } from "https://deno.land/std@0.206.0/fmt/colors.ts";
6 changes: 4 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { StackQL } from "./src/stackql.ts";
import { bold } from "./deps.ts";

export { StackQL };
export function getHelloWorld(): string {
return bold("Hello World");
}
49 changes: 0 additions & 49 deletions src/services/downloader.test.ts

This file was deleted.

189 changes: 0 additions & 189 deletions src/services/downloader.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/services/server.test.ts

This file was deleted.

Loading