I'm Kat!
I'm a Rust, C#, and JavaScript developer working at Microsoft and I do a bunch of open source stuff.
You can also find me on Mastodon as @[email protected] and Matrix as @kat:zkat.tech, or on Discord as kat#8645
.
CouchDB abstraction layer for Common Lisp
License: MIT License
I'm Kat!
I'm a Rust, C#, and JavaScript developer working at Microsoft and I do a bunch of open source stuff.
You can also find me on Mastodon as @[email protected] and Matrix as @kat:zkat.tech, or on Discord as kat#8645
.
;;I have a db like this
(defparameter *couch* (make-instance 'chillax:yason-server
:host "127.0.0.1"
:username *db-user*
:password *db-pass*
:object-as-alist-p t
:parse-object-key-fun (lambda (string) (intern string *package*))))
;;and when i try to do query-view where I have a key that is an json array and doing grouping, i get an
;;error if i dont change to this in yason.lisp
(defmethod data->json ((server yason-server) data &key)
(with-output-to-string (s)
(if (and (parse-object-as-alist-p server) ;; added the (and and the check to make sure we data is alist
(listp data)
(listp (car data)))
(yason:encode-alist data s)
(yason:encode data s))))
(ensure-db (make-instance 'yason-server) "foo/bar")
results in
Unexpected response with status code: NOT-FOUND
HTTP Response: #<HASH-TABLE :TEST EQUAL :COUNT 2 {1005987281}>
Please report this to Chillax's maintainer(s)
[Condition of type UNEXPECTED-RESPONSE]
...
Backtrace:
0: (DB-CREATE #<YASON-SERVER {100596DA51}> "foo/bar")
1: (ENSURE-DB #<YASON-SERVER {100596DA51}> "foo/bar")
2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ENSURE-DB (MAKE-INSTANCE 'YASON-SERVER) "foo/bar") #)
even if a database named "foo/bar" has already been created using the couchdb web interface
YASON now exports PARSE-OBJECT-AS instead of PARSE-OBJECT-AS-ALIST. Chillax's reference to the old symbol means that chillax does not build any more. See b48746855cfe46415c2b8a398c97015ee4c2b75f in Yason's repo.
It seems that the function definition in src/core/database.lisp redefines drakma:url-encode.
The "chillax.core" package uses the "drakma" package. Therefore chillax.core::url-encode is equivalent to drakma:url-encode.
Yason has removed its JSON package nickname, so the reference to json symbols in src/view-server/view-server.lisp trigger a build error.
Source location: https://github.com/sykopomp/chillax/blob/master/src/core/document.lisp#L117
I got an error for an unhandled response code of CREATED when using bulk-post-documents to submit several new documents.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.