Comments (5)
Yes, if you use the text format, which I do right now. Lines 268-346 in src/parsing.jl contain the current code for parsing numeric arrays, if you're interested in making a PR.
from libpq.jl.
Yes, and this should already work; please give me examples where it doesn't and I will attempt to fix any issues :)
from libpq.jl.
@iamed2 well, here is a very simple reproducible example:
fetch!(NamedTuple, execute(conn, "
select array_agg(schemaname)
from pg_tables
")).array_agg[1]
gives a string, which in my case looks like this:
"{public,public,public,pg_catalog,pg_catalog,public,public,public,public,public,public,public,public,public,public,public,pg_catalog,pg_catalog,pg_catalog,public,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,pg_catalog,information_schema,information_schema,information_schema,information_schema,information_schema,information_schema,information_schema,pg_catalog,public,public,public,public,public}"
instead of an array of strings.
And now, after looking into LibPQ.jl code, I see that numeric arrays are supported. However, string- and other are not, right?
from libpq.jl.
I've changed the title; currently I support numeric arrays only. I need to add escaping support in order to support text.
from libpq.jl.
That would be useful indeed. I'm not familiar with the postgres api, does it just return everything as strings and you parse them into whatever datatype?
from libpq.jl.
Related Issues (20)
- collect on LibPQ.Column allocates a lot HOT 1
- Memory Leak? HOT 4
- LibPQ and local peer trust ("ident") HOT 4
- All rational numbers are parsed as Decimals.Decimal instead of Float HOT 3
- Trying to implement large object support HOT 4
- Large select queries running 5-10x slower than with psql HOT 7
- Support UUIDs with binary_format=true HOT 1
- Make Tables.rowtable(result) as fast as Tables.rowtable(Tables.columntable(result))
- `tryparse` Inexact Error HOT 5
- Docs links return 404 HOT 3
- Using array_agg results in a string HOT 2
- I install LibPQ but test fails. HOT 1
- Guess when there is no server running in tests and suggest users install one
- Multiple `async_execute`s may not always execute in sequence?
- `execute` and `async_execute` exception handling difference
- `LibPQ`.`async_execute`'s overhead is around 3ms HOT 2
- Add functions for closing prepared statements (requires PostgreSQL 17 release and corresponding libpq_jll)
- Can't suppress LibPQ's error output HOT 2
- Conflict with Dates.jl HOT 1
- Can't store Vector{UInt8} as expected in bytea
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 libpq.jl.