Skip to content

Commit

Permalink
Merge pull request #18 from ScopeSV/init-readme
Browse files Browse the repository at this point in the history
feat: readme and restart
  • Loading branch information
ScopeSV authored Oct 26, 2023
2 parents e525e01 + 8b02735 commit 01979ac
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 58 deletions.
58 changes: 0 additions & 58 deletions CHANGELOG.md

This file was deleted.

7 changes: 7 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2023 Stephan Valois

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# kyseline

---

Cli tool for [Kysely](https://github.com/kysely-org/kysely) Query builder.
This tool can help you create

## Quick start

in the root of your project, add a config file `kyselinecfg.json`

#### Config

```json
{
"migrationDir": path, // add path to your migrations directory
"useJsExtension": bool // optional
}
```

if `useJsExtension` is not provided, the tool will scan your project directory for a `tsconfig.json` file. If found, `.ts` will be used, else `.js`

#### Commands

To create a new table migration:

```bash
$ npx kyseline migration:make create_foo_table foo:string bar:integer
```

To add fields to an existing table:

```bash
$ npx kyseline migration:make add_foo_from_foo_table foo:string bar:integer
```

To remove fields from an existing table:

```bash
$ npx kyseline migration:make remove_foo_from_footable foo
```

<!-- ## Deployment
Add additional notes about how to deploy this on a live system -->

<!-- ## Built With
- [Dropwizard](http://www.dropwizard.io/1.0.2/docs/) - The web framework used
- [Maven](https://maven.apache.org/) - Dependency Management
- [ROME](https://rometools.github.io/rome/) - Used to generate RSS Feeds -->

<!-- ## Contributing
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us. -->

## Versioning

The project uses [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

## Authors

- **Stephan Valois** -

<!-- See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project. -->

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

0 comments on commit 01979ac

Please sign in to comment.