Skip to content

Commit 29781fa

Browse files
committed
Improve documentation for custom type constants
1 parent 5026681 commit 29781fa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

neo4j/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const (
3333
// AccessModeWrite tells the driver to use a connection to 'Leader'
3434
AccessModeWrite AccessMode = 0
3535
// AccessModeRead tells the driver to use a connection to one of the 'Follower' or 'Read Replica'.
36-
AccessModeRead = 1
36+
AccessModeRead AccessMode = 1
3737
)
3838

3939
// Driver represents a pool(s) of connections to a neo4j server or cluster. It's

neo4j/summary.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ const (
3030
// StatementTypeUnknown identifies an unknown statement type
3131
StatementTypeUnknown StatementType = 0
3232
// StatementTypeReadOnly identifies a read-only statement
33-
StatementTypeReadOnly = 1
33+
StatementTypeReadOnly StatementType = 1
3434
// StatementTypeReadWrite identifies a read-write statement
35-
StatementTypeReadWrite = 2
35+
StatementTypeReadWrite StatementType = 2
3636
// StatementTypeWriteOnly identifies a write-only statement
37-
StatementTypeWriteOnly = 3
37+
StatementTypeWriteOnly StatementType = 3
3838
// StatementTypeSchemaWrite identifies a schema-write statement
39-
StatementTypeSchemaWrite = 4
39+
StatementTypeSchemaWrite StatementType = 4
4040
)
4141

4242
// ResultSummary contains information about statement execution.

0 commit comments

Comments
 (0)