Comments (7)
In case anyone else needs it, my quick workaround was to change
Rel8.unsafeCastExpr (Rel8.nextval "foo.bar")
to
Rel8.unsafeLiteral "nextval('foo.bar')"
from rel8.
Thanks, I think we're going to need to change the type of nextval
to something like Either QualifiedName Name
in order to fix this (though I think we'd introduce a specific sum-type here, rather than using Either
). @shane-circuithub any thoughts?
from rel8.
Yeah this might be a big breaking change but I'd love to have arguments typed something like
data RelationName = RelationName {
schema :: Maybe Text,
name :: Text
}
instance IsString RelationName
wherever we have functions where getting a name argument wrong can cause an ERROR: relation _ does not exist
.
from rel8.
Sorry, missed this. Yeah I agree with @elldritch, some sort of type like that would be best. TableSchema
could use it too, so that TableSchema
becomes just RelationName
and the columns.
from rel8.
This caused an outage for me 😬
from rel8.
@chris-martin Ack, as in upgrading Rel8 and getting #217 caused the outage?
from rel8.
Yeah, I upgraded 1.4.0 to 1.4.1, and I had one insert involving nextVal
that stopped working.
In retrospect I guess I should have had golden tests on the statement ByteString
that would have forced me to look over the changes to the statement when upgrading. Not sure I would have noticed the problem even if I'd seen it, though, because I didn't know that the SQL quoting worked this way.
from rel8.
Related Issues (20)
- Allow hedgehog 1.2 in test suite HOT 4
- rel8 1.4.0.0 does not build with opaleye 0.9.7.0 HOT 2
- Use `ilike` with newtype around `Text`
- How to filter `ListTable`? HOT 1
- instance for `Rel8able (Generically1 t)`
- compile times are extremely high HOT 2
- [Feature Request] Generate tests that can check against an actual postgres schema HOT 5
- [Question] What does the `NonEmpty String` list contain in `namesFromLabelsWith`? HOT 1
- Release a version compatible with `opaleye-0.10.2.0` HOT 1
- Rel8 Performance x100 Slower than SQL HOT 8
- Provide access to rel8 internals
- New Hackage release? HOT 3
- Using `DBEnum` with a newtype wrapper HOT 1
- Rel8able records make app slow to start up HOT 1
- Allow `exists` to be used within expressions
- Replace `CalendarDiffTime` with a more useful type, like `NominalDiffTime`
- Boolean comparison operators have confusing/incorrect documentation
- Improve documentation showing how different TableSchemas relates to an actual sql schema
- Gradual shift from Opaleye? HOT 1
- Bad escaping of lambdas in Haddocks HOT 3
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 rel8.