🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

loopback-connector-crateio

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-connector-crateio

crate connector for loopback-datasource-juggler

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

loopback-connector-crateio

Please note that this package is in a very early state and is experimental.

loopback-connector-crate is the Crate connector module for loopback-datasource-juggler.

It is derived from the mysql implementation at loopback-connector-mysql

Installation

npm install loopback-connector-crateio --save

Basic use

To use it you need loopback-datasource-juggler.

  • Setup dependencies in package.json:

    {
      ...
      "dependencies": {
        "loopback-datasource-juggler": "latest",
        "loopback-connector-crateio": "latest"
      },
      ...
    }
    
  • Use:

        var DataSource = require('loopback-datasource-juggler').DataSource;
        var dataSource = new DataSource('crateio', {
            host: 'localhost',
            port: 4200
        });
    

Crate Features

Models can be defined with object properties:

```json
var ModelWithSchemaObject = db.define('ModelWithSchemaObject', {
    o: {
        type: Object,
        policy: 'STRICT',
        schema: 'ObjectModel'
    }
});
```

Limitations

alterTable can only add/create new properties.

It is not possible to create indices.

Testing

To run tests a instance crate must be running on port 4200.

Simplest way to install and run crate:

bash -c "$(curl -L try.crate.io)"

Keywords

crate

FAQs

Package last updated on 23 Mar 2015

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