-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from ScopeSV/init-readme
feat: readme and restart
- Loading branch information
Showing
3 changed files
with
76 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |