Comments (7)
Ah yes, I skimmed through common data types, I added support for ArrayType(Text)
since it is in sakila example. I'll add ArrayType(Int)
soon. Thanks for testing out.
from diwata.
The specific commit is here ivanceras/rustorm@1324c9a
from diwata.
I just published a new version of [email protected]
with support for some ArrayType
for int[], float[], text[] variants
.
You could try to reinstall the cli with
cargo +nightly install -f diwata_cli
See if it doesn't panic anymore. If it does, then most likely your database is using data types that has not supported yet.
from diwata.
Thanks for the quick reply.
Unfortunately, I still get a panic: unable to parse integer value: Err(ParseIntError { kind: Empty }), Error:ParseIntError { kind: Empty }', rustorm-0.10.6/src/pg/column_info.rs:216:47
Here's my table:
Column | Type | Modifiers | Storage | Stats target | Description
-----------------------+-------------------+---------------------------------------------------+----------+--------------+-------------
id | integer | not null default nextval('exos_id_seq'::regclass) | plain | |
origin | character varying | | extended | |
difficulty | integer | | plain | |
topic | character varying | not null | extended | |
subtopic | character varying | not null | extended | |
comment | character varying | | extended | |
toknow | boolean | | plain | |
interesting | boolean | | plain | |
lesser | integer[] | default '{}'::integer[] | extended | |
related | integer[] | default '{}'::integer[] | extended | |
topics | text[] | | extended | |
subtopics | text[] | | extended | |
subsubtopic | text | | extended | |
textsearchable_vector | tsvector | | extended | |
pm | smallint | default 0 | plain | |
favorite | boolean | default false | plain | |
Indexes:
"exos_pkey" PRIMARY KEY, btree (id)
"textsearch_idx" gin (textsearchable_vector)
I'm not sure if the panic is an issue with array support, or with the tsvector type. If it's the latter, it may be more reasonable to just ignore columns with unsupported types ?
from diwata.
It looks like the default integer value {}
is empty array which I haven't take into consideration, this should be an easy fix.
I already had support for tsvector, so it wouldn't be a problem. As an early version, I prefer the app to panic in the mean time, since this is the fastest way to fix things right away. I'll have to return proper error when most of the types are already covered.
from diwata.
This commit ivanceras/rustorm@bdfcdeb should fix the panic for empty array defaults. Please try to reinstall the diwata_cli
to see if it works now. I'm betting this would work if you don't have anymore uncommon database types used in your design.
from diwata.
Looking good, thanks !
from diwata.
Related Issues (15)
- Loading of window perception time is too long HOT 1
- Looking for a co-founder
- Compile with stable release of rust HOT 4
- Build breaks due to missing rustorm/dao/Cargo.toml HOT 4
- Could not connect to database (no SSL connection possible?) HOT 5
- Debounce search HOT 1
- Spreadsheet UI mode HOT 1
- Demo not working HOT 5
- Compile error on Win 10 64-bit machine HOT 2
- Panics when database has xml data type HOT 2
- Elm 0.19 HOT 4
- Failed to build openssl v0.9.24 HOT 3
- error[E0554]: `#![feature]` HOT 3
- problem with git submodule init HOT 1
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 diwata.