// TableName returns the table name
542818
func (b *Builder) TableName() string {
	if b.optype == insertType {
		return b.into
	}
	return b.from
}
733208
func (d *domainClient) GetDatabaseTableNames(ctx context.Context, args *GetDatabaseTableNamesArgs) (reply *GetDatabaseTableNamesReply, err error) {
	reply = new(GetDatabaseTableNamesReply)
	if args != nil {
		err = rpcc.Invoke(ctx, "Database.getDatabaseTableNames", args, reply, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Database.getDatabaseTableNames", nil, reply, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Database", Op: "GetDatabaseTableNames", Err: err}
	}
	return
}
940799
func (s *PutItemInput) SetTableName(v string) *PutItemInput {
	s.TableName = &v
	return s
}
1137872
func (s *UpdateContinuousBackupsInput) SetTableName(v string) *UpdateContinuousBackupsInput {
	s.TableName = &v
	return s
}
1282407
func (DefaultForeignKeyNamer) BuildKeyName(kind, tableName string, fields ...string) string {
	keyName := fmt.Sprintf("%s_%s_%s", kind, tableName, strings.Join(fields, "_"))
	keyName = keyNameRegex.ReplaceAllString(keyName, "_")
	return keyName
}
465429
func (s *TableStatistics) SetTableName(v string) *TableStatistics {
	s.TableName = &v
	return s
}
1100825
func (s *Update) SetTableName(v string) *Update {
	s.TableName = &v
	return s
}
312929
func (r *Repo) dbName(ctx context.Context) string {
	ns := eh.NamespaceFromContext(ctx)
	return r.dbPrefix + "_" + ns
}
1038905
func dynamoDBTableName(r *request.Request) *string {
	// All DynamoDB requests that operate on a table.
	switch v := r.Params.(type) {
	case *dynamodb.QueryInput:
		return v.TableName
	case *dynamodb.ScanInput:
		return v.TableName

	case *dynamodb.PutItemInput:
		return v.TableName
	case *dynamodb.GetItemInput:
		return v.TableName
	case *dynamodb.UpdateItemInput:
		return v.TableName
	case *dynamodb.DeleteItemInput:
		return v.TableName

	case *dynamodb.CreateTableInput:
		return v.TableName
	case *dynamodb.UpdateTableInput:
		return v.TableName
	case *dynamodb.DeleteTableInput:
		return v.TableName

	case *dynamodb.CreateBackupInput:
		return v.TableName
	case *dynamodb.ListBackupsInput:
		return v.TableName
	case *dynamodb.DescribeContinuousBackupsInput:
		return v.TableName
	case *dynamodb.UpdateContinuousBackupsInput:
		return v.TableName

	case *dynamodb.DescribeTableInput:
		return v.TableName
	case *dynamodb.DescribeTimeToLiveInput:
		return v.TableName
	default:
		return nil
	}
}
190971
func (s *DynamoDBAction) SetTableName(v string) *DynamoDBAction {
	s.TableName = &v
	return s
}
125921
func (t *Table) ColumnByName(colName string) *Column {
	for _, c := range t.Columns {
		if c.Info.Name.L == colName {
			return c
		}
	}
	return nil
}
1092538
func (s *DescribeTableInput) SetTableName(v string) *DescribeTableInput {
	s.TableName = &v
	return s
}
958544
func (s *ConsumedCapacity) SetTableName(v string) *ConsumedCapacity {
	s.TableName = &v
	return s
}
65932
func (*PostgresDB) GetTableNames(db *sql.DB) (tables []string) {
	rows, err := db.Query(`
		SELECT table_name FROM information_schema.tables
		WHERE table_catalog = current_database() AND
		table_type = 'BASE TABLE' AND
		table_schema NOT IN ('pg_catalog', 'information_schema')`)
	if err != nil {
		beeLogger.Log.Fatalf("Could not show tables: %s", err)
	}
	defer rows.Close()

	for rows.Next() {
		var name string
		if err := rows.Scan(&name); err != nil {
			beeLogger.Log.Fatalf("Could not show tables: %s", err)
		}
		tables = append(tables, name)
	}
	return
}
1120334
func (s *GetTableVersionInput) SetTableName(v string) *GetTableVersionInput {
	s.TableName = &v
	return s
}
700486
func (s *GetPartitionsInput) SetTableName(v string) *GetPartitionsInput {
	s.TableName = &v
	return s
}
750852
func (s *RestoreTableFromClusterSnapshotInput) SetSourceTableName(v string) *RestoreTableFromClusterSnapshotInput {
	s.SourceTableName = &v
	return s
}