Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
supercharged arangodb poc client
parser = new (require 'fastango/parser') 'IP', PORT
require('fastango/fastango') parser, '_system', (status, fastango) ->
if status >= 400
'some error'
return
'now you can use fastango'
fastango._use 'myDb', (status, fastango) ->
if status >= 400
'some error'
Change the database. Note: the old fastango object points to the old db. You have to use the newly returned fastango object.
fastango.testCollection.truncate (status, heads, body) ->
if status >= 400
'some error'
fastango.testCollection.drop (status, heads, body) ->
if status >= 400
'some error'
fastango._createDocumentCollection 'NAME', {options}, (status, heads, body) ->
if status >= 400
'some error'
for options see https://docs.arangodb.com/HttpCollection/Creating.html
fastango.testCollection.save JSON.strinigfy({key:'value'}), (status, heads, body) ->
if status >= 400
'some error'
fastango.testCollection.update '_key', JSON.strinigfy({key:'value'}), {options}, (status, heads, body) ->
if status >= 400
'some error'
for options (optional) see https://docs.arangodb.com/HttpDocument/WorkingWithDocuments.html (Patch document)
fastango.testCollection.document '_key', (status, heads, body) ->
if status >= 400
'some error'
fastango.testCollection.count (status, heads, body) ->
if status >= 400
'some error'
fastango._query 'FOR doc IN docs RETURN doc._key', {bindVars}, {options}, (status, cursor) ->
if status >= 400
'some error'
return
cursor.all (status, results) ->
if status >= 400
'some error'
for options see https://docs.arangodb.com/HttpAqlQueryCursor/AccessingCursors.html example:
fastango._query 'FOR doc IN docs RETURN doc._key', {}, {fullCount:true, maxPlans:1}, (status, cursor) ->
for the moment only cursor.all
is supported.
fastango._transaction {
params:
a: 4
collections: ['col1', 'col2'] | # optional
read: ['col1', 'col2']
write: ['col1', 'col2']
waitForSync: true|false # optional
lockTimeout: UNUMBER # optional
}, (params) -> # the action function
return params.a
, (status, headers, body) ->
if status >= 400
'some error'
FAQs
A fast poc arangodb client for Node.js(R)
The npm package fastango receives a total of 1 weekly downloads. As such, fastango popularity was classified as not popular.
We found that fastango 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.