Comments (11)
How would you handle Go bool values by default?
from ora.
A bool is ok, but don't treat CHAR(1) columns as bool by default.
from ora.
That's fine if you'd like to change the default char(1) behavior.
On Apr 18, 2016 10:14 AM, "Tamás Gulácsi" [email protected] wrote:
A bool is ok, but don't treat CHAR(1) columns as bool by default.
—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
#82 (comment)
from ora.
Ok, thanks!
from ora.
Would this be a breaking change for some? Do we need a new version for
gopkg.in?
On Apr 18, 2016 11:49 AM, "Tamás Gulácsi" [email protected] wrote:
—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
#82 (comment)
from ora.
That's a good question. API per se does not change, "just" the defaults.
But if we didn't created a new version for the ora.N change (OCINum instead of string), then this wouldn't need a new version, either.
from ora.
Ya.
What do you think of golang's 'vendoring' feature?
Does that replace the need for gopkg.in?
On Apr 18, 2016 12:03 PM, "Tamás Gulácsi" [email protected] wrote:
That's a good question. API per se does not change, "just" the defaults.
But if we didn't created a new version for the ora.N change (OCINum
instead of string), then this wouldn't need a new version, either.—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
#82 (comment)
from ora.
Yes and no. With gopkg.in, we swear that we won't change the API in the same major version; with vendoring, users can hedge against changes.
I think as a library writer, you don't need vendoring; as a library user/consumer, you want it very much.
Do we have any non-standard dependency in ora? go list -f '{{range .Imports}}{{println . }}{{end}}'
lists only gopkg.in/rana/ora.v3/num which is a subpackage - already vendored in.
from ora.
The main Ora package just use the standard library. The logging bits use
other go libraries
On Apr 18, 2016 12:58 PM, "Tamás Gulácsi" [email protected] wrote:
Yes and no. With gopkg.in, we swear that we won't change the API in the
same major version; with vendoring, users can hedge against changes.
I think as a library writer, you don't need vendoring; as a library
user/consumer, you want it very much.
Do we have any non-standard dependency in ora? go list -f '{{range
.Imports}}{{println . }}{{end}}' lists only gopkg.in/rana/ora.v3/num which
is a subpackage - already vendored in.
—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
#82 (comment)
from ora.
Logging: I agree with Dave Cheney that a Debug and an Info level is adequate - maybe for a library, Debug is enough, as errors are reported back, and should contain enough info to localize them anyway.
The main idea I've read I cannot find now: in a library, logging should be through global settable vars - such as
var Debug func(string, ...interface{})
so the library user can provide and use any kind of logger she wishes, just provide a proper function!
from ora.
Nice!
I love the blog post and idea of offering Debug func and Info func.
Were you thinking of adding Debug func and Info func?
On Apr 18, 2016 9:54 PM, "Tamás Gulácsi" [email protected] wrote:
Logging: I agree with Dave Cheney
http://dave.cheney.net/2015/11/05/lets-talk-about-logging that a Debug
and an Info level is adequate - maybe for a library, Debug is enough, as
errors are reported back, and should contain enough info to localize them
anyway.The main idea I've read I cannot find now: in a library, logging should be
through global settable vars - such asvar Debug func(string, ...interface{})
so the library user can provide and use any kind of logger she wishes,
just provide a proper function!—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
#82 (comment)
from ora.
Related Issues (20)
- How to get the result of a function HOT 5
- Package 'oci8' has no Name: field HOT 4
- LastInsertId is returning 0, when using database/sql package with oracle driver
- exemple
- Getting error in the.Next() method HOT 5
- sql db.Exec fail to insert "" to blob,runtime error: index out of range HOT 2
- Dependencies HOT 3
- When run the program get That can not find bind point of OCIBindByPos2 in the dynamic link library HOT 8
- My code makes de select and prints <nil> for each row HOT 5
- Build in Bitbucket Pipelines HOT 2
- Stmt.exeC Env.ociError ORA-03135: connection lost contact\nProcess ID: 61366\nSession ID: 2867 Serial number: 6006 HOT 3
- Error during go get HOT 6
- Cannot build with instaclient 11.1 HOT 3
- Data Cartridge Development support HOT 3
- Support AQ HOT 1
- time.Time shows <nil> even if the value is present in the DB HOT 7
- remove lock on break HOT 1
- I am geting BLOB fields with extra content HOT 1
- v4.1.15 Data chaos bug HOT 1
- MAC OS ARM64
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 ora.