1.1.8 • Published 2 months ago

@jerrythomas/dbd v1.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

dbd

Maintainability Test Coverage

This is a simple CLI to apply DDL scripts for individual objects for developers who are more comfortable writing SQL scripts.

  • Apply a set of individual DDL scripts to a database
  • Load staging data with post-process scripts for development/testing
  • Export data from tables & views
  • Generate dbdocs DBML for all (or subset) tables
  • Support for multiple schemas where names are unique across all schemas.
  • Parse files and identify dependencies. (e.g. views depend on tables)
  • Combine all scripts into a single file for deployment
  • Support for multiple databases (e.g. postgres, mysql, mssql)
  • Support for multiple schemas with the same names in multiple schemas.

Pre-requisites

Refer to the pre-requisites document for setting up the dbd cli.

Usage

Install the CLI globally using npm (or pnpm/yarn)

npm i --global @jerrythomas/dbd

Folder Structure

Individual ddl scripts are expected to be placed under folders with names of the database object types. Subfolders are used to specify the schema names. Files are expected to have the same name as the object.

example

Node: The cli relies on dependencies mentioned in a yaml file (db.yaml) to execute scripts in a sequence. Refer to example folder.

Commands

CommandAction
dbd initcreate an example repo
dbd inspectinspect and report issues
dbd combinecombine all into single script
dbd applyapply the creation scripts
dbd importload seed/staging files
dbd exportexport tables/views
dbd dbmlgenerate dbml files
1.1.8

2 months ago

1.1.7

3 months ago

1.1.6

3 months ago

1.1.5

3 months ago

1.1.4

3 months ago

1.1.3

3 months ago

1.1.2

3 months ago

1.1.1

3 months ago

1.1.0

3 months ago

1.0.9-next.3

4 months ago

1.0.11

4 months ago

1.0.10

4 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.10-next.0

8 months ago

1.0.5

8 months ago

1.0.9-next.2

8 months ago

1.0.8-next.1

8 months ago

1.0.9-next.0

8 months ago

1.0.8-next.0

8 months ago

1.0.9-next.1

8 months ago

1.0.5-next.2

8 months ago

1.0.5-next.1

8 months ago

1.0.2-next.10

1 year ago

1.0.5-next.0

1 year ago

1.0.4

1 year ago

1.0.3-next.1

1 year ago

1.0.3

1 year ago

1.0.3-next.0

1 year ago

1.0.2-beta.9

2 years ago

1.0.2-beta.8

2 years ago

1.0.2-beta.7

2 years ago

1.0.2-beta.2

2 years ago

1.0.2-beta.3

2 years ago

1.0.2-beta.1

2 years ago

1.0.2-beta.6

2 years ago

1.0.2-beta.4

2 years ago

1.0.2-beta.5

2 years ago

1.0.2-beta.0

2 years ago

1.0.1

2 years ago