1.8.1 • Published 3 years ago

sql-ts-knex-generator v1.8.1

Weekly downloads
40
License
MIT
Repository
github
Last release
3 years ago

A simple command line tool to generate typescript CRUD operations

Generate CRUD operations and TypeScript interfaces from database schemas.

Supports the following databases: MySQL, Microsoft SQL Server, SQLite and PostgreSQL.

How to use

npx sql-ts-knex-generator -c ./config.json

example config file:

{
  "client": "mssql",
  "tables": ["dbo.TABLE_NAME"],
  "connection": {
    "server": "********",
    "database": "*******",
    "user": "*******",
    "password": "********",
    "options": {
      "encrypt": true,
      "enableArithAbort": true
    },
    "requestTimeout": 15000,
    "connectionTimeout": 15000
  }
}

It will create a folder and generate a file for each table containing CRUD (create, read, update, delete) functions based on DB schema.

It respects nullable and required fields.

Config file options

Config file options OR sql-ts docs

Credits:

1.7.3

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.8.0-beta01

3 years ago

1.8.0-beta03

3 years ago

1.8.0-beta02

3 years ago

1.8.0-beta05

3 years ago

1.8.0-beta04

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0-beta01

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

0.2.0-beta02

3 years ago

0.2.0-beta01

3 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago