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
...
@@ -59,7 +59,7 @@ func (e *ConnError) Error() string { // FIXME code.Error() & e.msg are often red
}
}
// Result codes
// Result codes
type
Errno
int
type
Errno
int
32
func
(
e
Errno
)
Error
()
string
{
func
(
e
Errno
)
Error
()
string
{
var
s
string
var
s
string
...
@@ -171,7 +171,7 @@ func Version() string {
...
@@ -171,7 +171,7 @@ func Version() string {
}
}
// Flags for file open operations
// Flags for file open operations
type
OpenFlag
int
type
OpenFlag
int
32
const
(
const
(
OpenReadOnly
OpenFlag
=
C
.
SQLITE_OPEN_READONLY
OpenReadOnly
OpenFlag
=
C
.
SQLITE_OPEN_READONLY
...
@@ -419,7 +419,7 @@ func (c *Conn) GetAutocommit() bool {
...
@@ -419,7 +419,7 @@ func (c *Conn) GetAutocommit() bool {
}
}
// See Conn.BeginTransaction
// See Conn.BeginTransaction
type
TransactionType
int
type
TransactionType
uint8
const
(
const
(
Deferred
TransactionType
=
0
Deferred
TransactionType
=
0
...
...
stmt.go
View file @
dbabae2f
...
@@ -504,7 +504,7 @@ func (s *Stmt) ColumnNames() []string {
...
@@ -504,7 +504,7 @@ func (s *Stmt) ColumnNames() []string {
}
}
// SQLite fundamental datatypes
// SQLite fundamental datatypes
type
Type
int
type
Type
uint8
func
(
t
Type
)
String
()
string
{
func
(
t
Type
)
String
()
string
{
return
typeText
[
t
]
return
typeText
[
t
]
...
...
trace.go
View file @
dbabae2f
...
@@ -88,7 +88,7 @@ func (c *Conn) Profile(f Profiler, udp interface{}) {
...
@@ -88,7 +88,7 @@ func (c *Conn) Profile(f Profiler, udp interface{}) {
}
}
// Authorizer return codes
// Authorizer return codes
type
Auth
int
type
Auth
int
32
const
(
const
(
AuthOk
Auth
=
C
.
SQLITE_OK
AuthOk
Auth
=
C
.
SQLITE_OK
...
@@ -97,7 +97,7 @@ const (
...
@@ -97,7 +97,7 @@ const (
)
)
// Authorizer action codes
// Authorizer action codes
type
Action
int
type
Action
int
32
const
(
const
(
CreateIndex
Action
=
C
.
SQLITE_CREATE_INDEX
CreateIndex
Action
=
C
.
SQLITE_CREATE_INDEX
...
@@ -293,7 +293,7 @@ func (c *Conn) ProgressHandler(f ProgressHandler, numOps int, udp interface{}) {
...
@@ -293,7 +293,7 @@ func (c *Conn) ProgressHandler(f ProgressHandler, numOps int, udp interface{}) {
}
}
// Status parameters for prepared statements
// Status parameters for prepared statements
type
StmtStatus
int
type
StmtStatus
int
32
const
(
const
(
StmtStatusFullScanStep
StmtStatus
=
C
.
SQLITE_STMTSTATUS_FULLSCAN_STEP
StmtStatusFullScanStep
StmtStatus
=
C
.
SQLITE_STMTSTATUS_FULLSCAN_STEP
...
@@ -386,7 +386,7 @@ func ConfigLog(f Logger, udp interface{}) error {
...
@@ -386,7 +386,7 @@ func ConfigLog(f Logger, udp interface{}) error {
return
Errno
(
rv
)
return
Errno
(
rv
)
}
}
type
ThreadingMode
int
type
ThreadingMode
int
32
const
(
const
(
SingleThread
ThreadingMode
=
C
.
SQLITE_CONFIG_SINGLETHREAD
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