0.0.101 • Published 11 months ago

undiorm v0.0.101

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

About The Project

ORM NAME

A PostgreSQL ORM created to scaffold large-scale and advanced databases.

Currently only supports basic ORM functionalities, planning on added advanced features, such as multi-tenant support and trigger functions.

I am documenting the whole process of creating the package on twitter.

Getting Started

Installation

Coming Soon – Not yet production ready

Usage

List of all the currently supported commands.

# Initialise a new, empty configuration
init

# Generate new migration
migration:generate <migration name>

# Create empty migration
migration:create <migration name>

# Run all available migrations
migration:run

# Revert database to the selected migration
migration:revert

# Create a new, empty entity
entity:create

# Generated the types for the currently synced entities
types:generate

Examples

The repo contains an example folder - feel free to clone and play around with it; as always, suggetions are more than welcome.

Roadmap

  • ORM
    • CLI
      • Create new, empty entity
      • Create new, empty migration
      • Generate migration based on entity changes
      • Run all available migrations
      • Revert to a specific migration
      • Handle other object depend on error when trying to replace a column which is used by a view
      • Drop migrations
        • Drop last migration
    • Incremental migrations
    • Keywords in default
    • Indices
    • Autogenerate table names (pluralize)
    • Handle primary keys
    • Orm configs
      • js/ts support
      • json support
      • xml support
      • yml support
      • .env support
    • Plugin manager
    • Enum support
    • Foreign key support
      • Relation support
    • View support
      • Add 'with check' option
    • Function support
    • Trigger support
      • Add onInsert.set
      • Add onUpdate.set
      • Add onDelete.set
      • Add beforeInsert procedure SQL code
      • Add beforeUpdate procedure SQL code
      • Add beforeDelete procedure SQL code
      • Add preventDefault logic
      • Add conditional logic
    • GIS Support
    • Convert codebase to classes for easier maintenance
    • Handle naming conventions
    • Add warnings to operations with potential data loss
    • Add pull command
  • Query Builder
  • Graphql Types

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Balazs Szalay - @szalayme - balazs@szalay.me

0.0.101

11 months ago

0.0.100

1 year ago

0.0.98

1 year ago

0.0.99

1 year ago

0.0.95

1 year ago

0.0.96

1 year ago

0.0.97

1 year ago

0.0.92

1 year ago

0.0.93

1 year ago

0.0.94

1 year ago

0.0.91

2 years ago

0.0.84

2 years ago

0.0.85

2 years ago

0.0.86

2 years ago

0.0.87

2 years ago

0.0.88

2 years ago

0.0.89

2 years ago

0.0.80

2 years ago

0.0.81

2 years ago

0.0.82

2 years ago

0.0.83

2 years ago

0.0.73

2 years ago

0.0.74

2 years ago

0.0.75

2 years ago

0.0.70

2 years ago

0.0.71

2 years ago

0.0.72

2 years ago

0.0.90

2 years ago

0.0.66

2 years ago

0.0.67

2 years ago

0.0.68

2 years ago

0.0.69

2 years ago

0.0.65

2 years ago

0.0.64

2 years ago

0.0.63

2 years ago

0.0.62

2 years ago

0.0.61

2 years ago

0.0.60

2 years ago

0.0.59

2 years ago

0.0.58

3 years ago

0.0.57

3 years ago

0.0.56

3 years ago

0.0.55

3 years ago

0.0.54

3 years ago

0.0.53

3 years ago

0.0.52

3 years ago

0.0.51

3 years ago

0.0.50

3 years ago

0.0.49

3 years ago

0.0.48

3 years ago

0.0.47

3 years ago

0.0.46

3 years ago

0.0.45

3 years ago

0.0.44

3 years ago

0.0.43

3 years ago

0.0.42

3 years ago

0.0.41

3 years ago

0.0.40

3 years ago

0.0.39

3 years ago

0.0.38

3 years ago

0.0.37

3 years ago

0.0.36

3 years ago

0.0.35

3 years ago

0.0.34

3 years ago

0.0.33

3 years ago

0.0.32

3 years ago

0.0.31

3 years ago

0.0.30

3 years ago

0.0.29

3 years ago

0.0.28

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago