chai
chai copied to clipboard
Modern embedded SQL database
```sql CREATE INDEX on foo(a, b DESC, c ASC); ``` Notes: - This will have an impact on the Compare function. It might need to be aware of the index...
```sql CREATE INDEX ON foo(a) WHERE ; ``` Define and add proper support for partial indexes in the planner
Now that #382 was merged, my go-orm test is proceeding past inserting objects into the db! The next hurdle is getting Scan() to work: ``` panic: sql: Scan error on...
Run simple program: ```go package main import ( "database/sql" "fmt" _ "github.com/genjidb/genji/sql/driver" ) type Doc struct { Field1 string `genji:"field1"` Field2 int `genji:"field2"` } func main() { db, err :=...
Example: ```sql genji> create table foo; genji> insert into foo values {a: b+1, b: 1}; genji> select * from foo; { "a": null, "b": 1 } ``` The document literal...
Currently each package has to define its own error `errStop` to stop `Iterate` method. It’d be nice if `document` package exported some common error similar to `filepath.SkipDir`. ```go // document/iterator.go...
The code that detects it at the moment is implementation dependent (https://github.com/genjidb/genji/blob/main/document/cast.go#L88) It works on x64 but not on arm64. (https://github.com/golang/go/issues/47387)
### What version of Genji are you using? $ genji version Genji (devel) Genji CLI (devel) ### What did you do? StructScan panics when the api contract is not respected,...
### Proposal For the following example documents: ``` { "product": "iPhone", "attributes": { "storage": 16, "camera": 1200 } }, { "product": "Jacket", "attributes": { "size": "XL", "color": "Black" } }...
### Proposal As we can import csv file, it will be useful to import json file. Even if we can use the genji command insert like this `cat foo.json |...