🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

moleculer-postgis

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moleculer-postgis

Postgis mixin and functions for @moleculer/database

0.0.3
Source
npm
Version published
Weekly downloads
75
50%
Maintainers
1
Weekly downloads
 
Created
Source

Save, validate and parse geometries on your @moleculer/database project

License GitHub issues GitHub stars

Table of Contents

About the Project

The moleculer-postgis is designed to support Postgis functions for @moleculer/database mixin.

Getting Started

To get started, install moleculer-postgis package to your project.

npm i moleculer-postgis
yarn add moleculer-postgis

Usage

import PostgisMixin from 'moleculer-postgis';

module.exports = {
  mixins: [
    PostgisMixin: {
      srid: 3346
    }
  ],

  settings: {
    fields: {
      // example with geom and validating types
      geom: {
        type: 'any',
        geom: {
          types: ['Point', 'LineString']
        }
      },
      area: {
        type: 'number',
        virtual: true,
        geom: {
          type: 'area',
        }
      }
    }
  }
};

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. For more information, see the contribution guidelines.

License

This project is licensed under the MIT License.

Keywords

moleculer

FAQs

Package last updated on 28 Aug 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