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
dbabae2f
Commit
dbabae2f
authored
Feb 14, 2014
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce memory size of some constants.
parent
6f753a8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
sqlite.go
sqlite.go
+3
-3
stmt.go
stmt.go
+1
-1
trace.go
trace.go
+4
-4
No files found.
sqlite.go
View file @
dbabae2f
...
...
@@ -59,7 +59,7 @@ func (e *ConnError) Error() string { // FIXME code.Error() & e.msg are often red
}
// Result codes
type
Errno
int
type
Errno
int
32
func
(
e
Errno
)
Error
()
string
{
var
s
string
...
...
@@ -171,7 +171,7 @@ func Version() string {
}
// Flags for file open operations
type
OpenFlag
int
type
OpenFlag
int
32
const
(
OpenReadOnly
OpenFlag
=
C
.
SQLITE_OPEN_READONLY
...
...
@@ -419,7 +419,7 @@ func (c *Conn) GetAutocommit() bool {
}
// See Conn.BeginTransaction
type
TransactionType
int
type
TransactionType
uint8
const
(
Deferred
TransactionType
=
0
...
...
stmt.go
View file @
dbabae2f
...
...
@@ -504,7 +504,7 @@ func (s *Stmt) ColumnNames() []string {
}
// SQLite fundamental datatypes
type
Type
int
type
Type
uint8
func
(
t
Type
)
String
()
string
{
return
typeText
[
t
]
...
...
trace.go
View file @
dbabae2f
...
...
@@ -88,7 +88,7 @@ func (c *Conn) Profile(f Profiler, udp interface{}) {
}
// Authorizer return codes
type
Auth
int
type
Auth
int
32
const
(
AuthOk
Auth
=
C
.
SQLITE_OK
...
...
@@ -97,7 +97,7 @@ const (
)
// Authorizer action codes
type
Action
int
type
Action
int
32
const
(
CreateIndex
Action
=
C
.
SQLITE_CREATE_INDEX
...
...
@@ -293,7 +293,7 @@ func (c *Conn) ProgressHandler(f ProgressHandler, numOps int, udp interface{}) {
}
// Status parameters for prepared statements
type
StmtStatus
int
type
StmtStatus
int
32
const
(
StmtStatusFullScanStep
StmtStatus
=
C
.
SQLITE_STMTSTATUS_FULLSCAN_STEP
...
...
@@ -386,7 +386,7 @@ func ConfigLog(f Logger, udp interface{}) error {
return
Errno
(
rv
)
}
type
ThreadingMode
int
type
ThreadingMode
int
32
const
(
SingleThread
ThreadingMode
=
C
.
SQLITE_CONFIG_SINGLETHREAD
...
...
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