mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
File diff suppressed because one or more lines are too long
@@ -55,8 +55,8 @@ func (c *Client) init() {
|
||||
{{- end }}
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -42,8 +42,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -60,8 +60,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -87,8 +87,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -84,8 +84,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -47,8 +47,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -43,8 +43,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -42,8 +42,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -47,8 +47,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -55,8 +55,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -47,8 +47,8 @@ func (c *Client) init() {
|
||||
c.Planet = NewPlanetClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -54,8 +54,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -47,8 +47,8 @@ func (c *Client) init() {
|
||||
c.Street = NewStreetClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -42,8 +42,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -47,8 +47,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -43,8 +43,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -43,8 +43,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -47,8 +47,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -43,8 +43,8 @@ func (c *Client) init() {
|
||||
c.Node = NewNodeClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -47,8 +47,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -43,8 +43,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -43,8 +43,8 @@ func (c *Client) init() {
|
||||
c.Node = NewNodeClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -51,8 +51,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
@@ -51,8 +51,8 @@ func (c *Client) init() {
|
||||
c.User = NewUserClient(c.config)
|
||||
}
|
||||
|
||||
// Open opens a connection to the database specified by the driver name and a
|
||||
// driver-specific data source name, and returns a new client attached to it.
|
||||
// Open opens a database/sql.DB specified by the driver name and
|
||||
// the data source name, and returns a new client attached to it.
|
||||
// Optional parameters can be added for configuring the client.
|
||||
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
|
||||
switch driverName {
|
||||
|
||||
Reference in New Issue
Block a user