Skip to content

Commit

Permalink
Chore/cleanup (#156)
Browse files Browse the repository at this point in the history
* Bumped deno

* Updated deps

* Updated readme
  • Loading branch information
halvardssm authored Jul 31, 2022
1 parent dfa91d5 commit 941ab93
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI

env:
DENO_VERSION: 1.17.2
DENO_VERSION: 1.24.1

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish Docker

env:
DENO_VERSION: 1.17.2
DENO_VERSION: 1.24.1

on:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_nest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish Egg

env:
DENO_VERSION: 1.17.2
DENO_VERSION: 1.24.1
NEST_VERSION: 0.3.10

on:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Nessie Change Log

## Version Next

- Deno v1.24.1
- Deno std v0.150.0
- Cliffy v0.24.3
- PostgreSQL v0.16.1
- Support for CockroachDB with the PostgreSQL client

## Version 2.0.5 - 2022-01-11

- Deno v1.17.2
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DB_USER=root
DB_PWD=pwd
DB_NAME=nessie
NESSIE_VERSION=2.0.5
DENO_VERSION=1.17.2
DENO_VERSION=1.24.1
DOCKER_IMAGE=halvardm/nessie

test_all: test_fmt test_unit db_all_restart test_integration_cli db_all_restart test_integration_update_timestamps image_build image_test_clean image_test image_test_clean
Expand Down
54 changes: 35 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<img alt="Docs" src="https://img.shields.io/badge/Nessie-doc-informational.svg?style=for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6vxzGn5KUP9sY3x2elPf7SfUdp75SQJQPa3M+C2OP2dPF+LParhlQv238747uaMubbQyPDuYQpbkLcOoi9dUM49P217WuzTpQsUi9MhHpcXXLpDr/bVNWATphjPjfZtzbMplD6jEltrPAeI76hrLqrBz1qEScl4xfqEZuSP4/aLLwWOQC9ScAAAAASUVORK5CYII=" />
</a>
<a href="https://deno.land">
<img alt="Deno Version" src="https://img.shields.io/badge/deno-v1.17.2-green.svg?style=for-the-badge&logo=deno"/>
<img alt="Deno Version" src="https://img.shields.io/badge/deno-v1.24.1-green.svg?style=for-the-badge&logo=deno"/>
</a>
<a href="https://github.com/halvardssm/deno-nessie/actions?query=branch%3Amain+workflow%3ACI">
<img alt="GitHub Workflow Status (branch)" src="https://img.shields.io/github/workflow/status/halvardssm/deno-nessie/CI/main?style=for-the-badge&logo=github">
Expand Down Expand Up @@ -52,10 +52,6 @@ information.
🎉 **Version 2 is released**: To migrate from version 1 follow the steps in the
[migration section](#migrate-from-version-1) bellow.

> If you would like to see your DB flavor supported, take a look at how to make
> a client plugin with examples in the [clients folder](./clients) or in the
> section [How to make a client](#how-to-make-a-client).
> See documentation for the
> [clients](https://doc.deno.land/https/deno.land/x/nessie/mod.ts).
Expand All @@ -66,14 +62,21 @@ information.

## Contents

- [Contents](#contents)
- [Available Via](#available-via)
- [CLI Usage](#cli-usage)
- [Docker Usage](#docker-usage)
- [Contributing](#contributing)
- [Flags](#flags)
- [Deno flags and Permissions](#deno-flags-and-permissions)
- [Config file](#config-file)
- [Remote Migration or Seed files](#remote-migration-or-seed-files)
- [Custom Migration or Seed templates](#custom-migration-or-seed-templates)
- [Docker usage](#docker-usage)
- [Uses](#uses)
- [Examples](#examples)
- [How to Make a Client](#how-to-make-a-client)
- [Migrate from Version 1](#migrate-from-version-1)
- [Clients](#clients)
- [How to make a client](#how-to-make-a-client)
- [Migrate from version 1](#migrate-from-version-1)
- [Contributing](#contributing)

## Available Via

Expand Down Expand Up @@ -318,18 +321,11 @@ See the [example folder](./examples) for more examples.
See the specific [Nessie image docs](./image/README.md) for using Nessie with a
docker image.

## Contributing

All contributions are welcome, make sure to read the
[contribution guideline](./.github/CONTRIBUTING.md).

## Uses

- [Cliffy](https://deno.land/x/cliffy/)
- [Deno Postgres](https://deno.land/x/postgres/) - Also compatible with CockroachDB
- [Deno MySQL](https://deno.land/x/mysql/) - Currently it works with password
for 5.*, but for >=8 you have to send a blank password, see
[issue 37](https://github.com/manyuanrong/deno_mysql/issues/37)
- [Deno Postgres](https://deno.land/x/postgres/)
- [Deno MySQL](https://deno.land/x/mysql/)
- [Deno SQLite](https://deno.land/x/sqlite/)

## Examples
Expand Down Expand Up @@ -411,7 +407,22 @@ export default class extends AbstractSeed<ClientPostgreSQL> {

See the [example folder](./examples) for more

## How to make a client
## Clients

Provided clients are

- [PostgreSQL](./clients/ClientPostgreSQL.ts) (also works for CockroachDB)
- [MySQL](./clients/ClientMySQL.ts) & [MySQL 5.5](./clients/ClientMySQL55.ts)
- Currently it works with password for 5.*, but for >=8 you have to send a
blank password, see
[issue 37](https://github.com/manyuanrong/deno_mysql/issues/37)
- [SQLite](./clients/ClientSQLite.ts)

> If you would like to see your DB flavor supported, take a look at how to make
> a client plugin with examples in the [clients folder](./clients) or in the
> next section .
### How to make a client

A client needs to extend [AbstractClient](./clients/AbstractClient.ts).

Expand Down Expand Up @@ -466,3 +477,8 @@ steps, please open a new discussion (not an issue).
migration files)

If you come across any issues, you can open a new discussion on GitHub.

## Contributing

All contributions are welcome, make sure to read the
[contribution guideline](./.github/CONTRIBUTING.md).
16 changes: 8 additions & 8 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ export {
relative,
resolve,
toFileUrl,
} from "https://deno.land/std@0.119.0/path/mod.ts";
} from "https://deno.land/std@0.150.0/path/mod.ts";
export {
assert,
assertEquals,
} from "https://deno.land/std@0.119.0/testing/asserts.ts";
export { exists } from "https://deno.land/std@0.119.0/fs/mod.ts";
export { format } from "https://deno.land/std@0.119.0/datetime/mod.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";
export { exists } from "https://deno.land/std@0.150.0/fs/mod.ts";
export { format } from "https://deno.land/std@0.150.0/datetime/mod.ts";
export {
bold,
green,
yellow,
} from "https://deno.land/std@0.119.0/fmt/colors.ts";
} from "https://deno.land/std@0.150.0/fmt/colors.ts";

/** Cliffy */
export {
Expand All @@ -26,16 +26,16 @@ export {
HelpCommand as CliffyHelpCommand,
Select as CliffySelect,
Toggle as CliffyToggle,
} from "https://deno.land/x/cliffy@v0.20.1/mod.ts";
export type { IAction as CliffyIAction } from "https://deno.land/x/cliffy@v0.20.1/mod.ts";
} from "https://deno.land/x/cliffy@v0.24.3/mod.ts";
export type { IAction as CliffyIAction } from "https://deno.land/x/cliffy@v0.24.3/mod.ts";

/** MySQL */
export { Client as MySQLClient } from "https://deno.land/x/[email protected]/mod.ts";

/** PostgreSQL */
export {
Client as PostgreSQLClient,
} from "https://deno.land/x/postgres@v0.14.2/mod.ts";
} from "https://deno.land/x/postgres@v0.16.1/mod.ts";

/** SQLite */
export { DB as SQLiteClient } from "https://deno.land/x/[email protected]/mod.ts";

0 comments on commit 941ab93

Please sign in to comment.