Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@igeg/database

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@igeg/database

  • 1.11.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@igeg/database

npm version license

The @igeg/database npm package provides a set of classes that can be used as DTOs for database interactions with the MyAdmin and SG applications.

Installation

You can install the @igeg/database package using npm:

npm install @igeg/database

or alternatively by using yarn

yarn add @igeg/database

Usage

To use the @igeg/database package in your application, follow these steps:

  1. Import the desired classes into your application using the import statement:

    import { CustomerDto } from '@igeg/database';
    
  2. Use the imported classes as types in your code to define your data structures. For example, to define a user:

    const user = new CustomerDto();
    user.name = 'John Doe';
    user.email = 'john@example.com';
    
  3. You can also use the classes as DTOs to interact with the database. For example, to save a user:

    const userEntity = new UserEntity();
    userEntity.save(user)
      .then(() => {
        console.log('User saved successfully!');
      })
      .catch((error) => {
        console.error('Failed to save user:', error);
      });
    

Contributing

Contributions are welcome! If you find any issues or want to contribute enhancements, feel free to submit a pull request.

License

This package is licensed under the MIT License.

FAQs

Package last updated on 09 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc