Comments (2)
Yup, I think we should just add text operators for those operations, but one thing I dislike about array-concat
and friends is that they're recognized by symbol, not by binding so what I'd like to do is add a deta/operators
module where you can import all of these special operators from and use them. That way you get completion and the ability to rename them, etc. I'll take a stab at that over the weekend.
from deta.
Oh, that'd be amazing to have them as real bindings!
Thinking about the possible names for the basic operators:
->
:json-ref
/json->
->>
:json-ref/convert
/json->>
#>
:json-ref/path
/json#>
#>>
:json-ref/path/convert
/json#>>
The json->
style are shorter but potentially confusing...
The additional operator suggestions:
@>
:json-contains?
orjson-contains-right?
<@
:json-contains-left?
(not sure whether those left/right variants even make sense in the s-exp world)?
:json-has-key?
?|
:json-has-key/any?
?&
:json-has-key/every?
||
:json-concat
-
:json-remove
#-
:json-remove/path
@?
:json-has-path?
@@
:json-path-check
(Just ideas)
P.S. Really excited seeing all these new features in deta recently!
from deta.
Related Issues (20)
- Support subqueries within `select`
- [Question] Use with North HOT 2
- Postgresql binary type support HOT 2
- Maybe `insert-one!` ought to query entity inserted? HOT 1
- uuid PostgreSQL data type HOT 1
- Question: convey "where" conditions as values? HOT 3
- group-by: name collision with racket/list HOT 1
- Question / suggestion: "virtual" fields? HOT 16
- Question: polymorphic operations on entities? HOT 3
- join isn't support subquery contract correct HOT 1
- Support for MySQL HOT 3
- A use case for DISTINCT
- How to go about turning a schema entity to json? HOT 1
- query-exec fails with queries that generate prepared statements HOT 7
- sqlite3 dialet: cannot convert given value to SQL type HOT 2
- How to define foreign keys? HOT 3
- integer exceed default `type?` contract? HOT 1
- Consider provide `define-type` from deta/type module
- SQLite RETURNING clause support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deta.