Skip to content

Commit f29819f

Browse files
committed
mark as deprecated db.Table().CreateSession()
1 parent 81acbfc commit f29819f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

table/table.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ type Client interface {
3939
// CreateSession implements internal busy loop until one of the following conditions is met:
4040
// - context was canceled or deadlined
4141
// - session was created
42+
//
43+
// Deprecated: don't use CreateSession explicitly. This method only for ORM's compatibility.
44+
// Use Do for queries with session
4245
CreateSession(ctx context.Context, opts ...Option) (s ClosableSession, err error)
4346

4447
// Do provide the best effort for execute operation.

0 commit comments

Comments
 (0)