https://github.com/fabrix-app/spool-plv8
Spool: PLV8 for Fabrix
https://github.com/fabrix-app/spool-plv8
fabrix nodejs plv8 spool typescript
Last synced: 4 months ago
JSON representation
Spool: PLV8 for Fabrix
- Host: GitHub
- URL: https://github.com/fabrix-app/spool-plv8
- Owner: fabrix-app
- License: other
- Created: 2018-08-16T22:07:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:13:31.000Z (over 3 years ago)
- Last Synced: 2024-12-14T18:48:18.224Z (over 1 year ago)
- Topics: fabrix, nodejs, plv8, spool, typescript
- Language: TypeScript
- Size: 266 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# spool-plv8
[![Gitter][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url]
[![Build Status][ci-image]][ci-url]
[![Test Coverage][coverage-image]][coverage-url]
[![Dependency Status][daviddm-image]][daviddm-url]
[![Follow @FabrixApp on Twitter][twitter-image]][twitter-url]
require() and execute nodejs code in Postgres with PLV8 and Fabrix. Depends on [spool-knex](https://github.com/fabrix-app/spool-knex).
## Install
```sh
$ npm install --save @fabrix/spool-plv8
```
## Configure
```js
// config/main.ts
import { PLV8Spool } from '@fabrix/spool-plv8'
import { KnexSpool } from '@fabrix/spool-knex'
export const main = {
spools: [
// ... other spools
KnexSpool,
PLV8Spool
]
}
```
```js
// config/plv8.ts
export const plv8 = {
/**
* The name of the database store to use; must be defined in config.stores
*/
store: 'some-plv8-store'
}
```
## License
MIT
[npm-image]: https://img.shields.io/npm/v/@fabrix/spool-plv8.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@fabrix/spool-plv8
[ci-image]: https://img.shields.io/circleci/project/github/fabrix-app/spool-plv8/master.svg
[ci-url]: https://circleci.com/gh/fabrix-app/spool-plv8/tree/master
[daviddm-image]: http://img.shields.io/david/fabrix-app/spool-plv8.svg?style=flat-square
[daviddm-url]: https://david-dm.org/fabrix-app/spool-plv8
[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square
[gitter-url]: https://gitter.im/fabrix-app/fabrix
[twitter-image]: https://img.shields.io/twitter/follow/FabrixApp.svg?style=social
[twitter-url]: https://twitter.com/FabrixApp
[coverage-image]: https://img.shields.io/codeclimate/coverage/github/fabrix-app/spool-plv8.svg?style=flat-square
[coverage-url]: https://codeclimate.com/github/fabrix-app/spool-plv8/coverage