
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
[VERY MUCH A WORK IN PROGRESS]
Simple key value implementation on top of old fashioned sql.
Some stuff I like for storing my data
Obvious downsides
models =
person:
kind: "person"
indexes:
age: {type: "int", getter: (data) -> data.age}
data =
key: utils.uuid()
kind: "person"
name: "Koen Bok"
age: 29
backend = new PostgresBackend "postgres://localhost/test"
store = new Store backend, [models.person]
store.create (err) ->
# Store a person (upsert)
store.put data, (err) ->
# Get a person by key
store.get "person", data.key (err, result) ->
console.log result
# Query persons older then 10 years
store.query "person", {"name >": "10"}, (err, result) ->
console.log result
new Backend <"dsl">, <[models]>
store.create <"kind">, callback
store.get <"kind">, <"key", [keys]>, callback
store.put <"kind">, <{data}, [{data}]>, callback
store.del <"kind">, <"key", [keys]>, callback
store.query <"kind">, <{filters}>, callback
make test
REST API example using express. Deployable to Heroku.
FAQs
Key-value on top of SQL
The npm package cavia receives a total of 2 weekly downloads. As such, cavia popularity was classified as not popular.
We found that cavia demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.