Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
efdb7a80
Commit
efdb7a80
authored
Jul 26, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6463acfc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
go/zodb/connection.go
go/zodb/connection.go
+8
-0
go/zodb/persistent.go
go/zodb/persistent.go
+0
-1
go/zodb/zodbpy.go
go/zodb/zodbpy.go
+1
-1
No files found.
go/zodb/connection.go
View file @
efdb7a80
...
@@ -14,6 +14,14 @@
...
@@ -14,6 +14,14 @@
package
zodb
package
zodb
// application-level database connection.
// application-level database connection.
import
(
"context"
"sync"
"lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/neo/go/zodb/internal/weak"
)
// Connection represents a view of ZODB database.
// Connection represents a view of ZODB database.
//
//
// The view is representing state of ZODB objects as of `at` transaction.
// The view is representing state of ZODB objects as of `at` transaction.
...
...
go/zodb/persistent.go
View file @
efdb7a80
...
@@ -19,7 +19,6 @@ import (
...
@@ -19,7 +19,6 @@ import (
"sync"
"sync"
"lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/neo/go/zodb/internal/weak"
)
)
// IPersistent is the interface that every in-RAM object representing any database object implements.
// IPersistent is the interface that every in-RAM object representing any database object implements.
...
...
go/zodb/zodbpy.go
View file @
efdb7a80
...
@@ -164,7 +164,7 @@ func (conn *Connection) Get(ctx context.Context, oid Oid) (IPyPersistent, error)
...
@@ -164,7 +164,7 @@ func (conn *Connection) Get(ctx context.Context, oid Oid) (IPyPersistent, error)
// object was already there in objtab.
// object was already there in objtab.
if
xobj
!=
nil
{
if
xobj
!=
nil
{
return
xobj
.
(
IPyPersistent
),
nil
return
xobj
.
(
IPyPersistent
),
nil
// XXX if just IPersistent ?
}
}
// object is not there in objtab - raw load it, get its class -> get(pyclass, oid)
// object is not there in objtab - raw load it, get its class -> get(pyclass, oid)
...
...
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