Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gosqlite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gosqlite
Commits
0f8a7605
Commit
0f8a7605
authored
Dec 09, 2012
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc
parent
c1430720
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
README.md
README.md
+2
-1
No files found.
README.md
View file @
0f8a7605
...
...
@@ -23,6 +23,7 @@ The original implementation is using this strategy:
-
convert the stored value to a []byte by calling sqlite3_column_blob,
-
convert the bytes to the desired Go type with correct feedback in case of illegal conversion,
-
but apparently no support for NULL value.
Using the native sqlite3_column_x implies:
-
optimal conversion from the storage type to Go type (when they match),
-
loosy conversion when types mismatch (select cast('M' as int); --> 0),
...
...
@@ -87,7 +88,7 @@ Function:
Conn#CreateScalarFunction
Conn#CreateAggregateFunction
$ go test -test.bench
'.
*
'
$ go test -test.bench
.
<pre>
BenchmarkValuesScan 500000 4658 ns/op
BenchmarkScan 500000 324 ns/op
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment