
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
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 0 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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.