npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jollof-data-pg

v0.0.5

Published

JollofJS pg adapter

Downloads

4

Readme

jollof-data-pg

ArangoDB data adapter for JollofJS.

With this adapter, you can now use ArangoDB (v3+) as a datasource with The JollofJS Framework!

What is ArangoDB

ArangoDB is a modern multi-model database that merges the functionality of a Document, Key-Value, and Graphing Database system all-in-one. It also comes with native support for joins, transactions, Materialized views, comes with it's own SQL (String Query Language) called AQL, etc.

Basically ArangoDB can handle everything you'd expect from a RDBM and MORE, all done with modern/futuristic swag.

https://www.arangodb.com/

How to use

npm i jollof-data-arangodb

then

config/.js

...
data: {
        dataSources: {
            default: {
                adapter: require('jollof-data-arangodb'),
                nativeType: 'arangodb',
                options: {
                    url: null, //uses localhost:8529 by default if this value is falsy
                    databaseName: 'funtime',
                    username: 'root',
                    password: ''
                }
            },
        }
    },
    ...

What to expect

On launch, jollofJs will attempt to connect to ArangoDB and create the database named in databaseName if it does not exist. Naturally, you should give any app server a limited DB account and manually create the database yourself, but JollofJS will attempt to create any missing thing anyway in case you just happened to be lazy and gave it a root-ish account :).

Next, for each model assigned to the datasource (in the case above, 'default'), it will attempt to create a collection if it does not already exist.

The JollofJS ODM (and thus the admin) can work with the document-based side of ArangoDB. To use native features like Joins, transactions, Views, Graphs, etc, feel free to create native functions in your models....something JollofJS will always make easy for you to do.

JollofJS loves ArangoDB

I would personally like to see more people take an interest in ArangoDB. That said, I probably won't be in a hurry to create a PostreSQL or MySQL adapter as ArangoDB more than makes up for either of those. Give it a try!

You are, however, more than free to create any adapters you need. They are fairly simple to churn out! Hit me up if you need help/guidance creating any.