You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: namespace.go
    path of file: ./repos/flipt/internal/storage/sql/common
    
    the code of the file until where you have to start completion: package common

import (
	"context"
	"database/sql"
	"encoding/base64"
	"encoding/json"
	"errors"
	"fmt"

	sq "github.com/Masterminds/squirrel"
	errs "go.flipt.io/flipt/errors"
	"go.flipt.io/flipt/internal/storage"
	fliptsql "go.flipt.io/flipt/internal/storage/sql"
	flipt "go.flipt.io/flipt/rpc/flipt"
)

func (s *Store) GetNamespace(ctx context.Context, p storage.NamespaceRequest) (*flipt.Namespace, error) {
	var (
		createdAt fliptsql.Timestamp
		updatedAt fliptsql.Timestamp

		namespace = &flipt.Namespace{}

		err = s.builder.Select("\"key\", name, description, protected, created_at, updated_at").
			From("namespaces").
			Where(sq.Eq{"\"key\"": p.Namespace()}).
			QueryRowContext(ctx).
			Scan(
	
    
func (s *Store) GetNamespace(ctx context.Context, p storage.NamespaceRequest) (*flipt.Namespace, error) {
	var (
		createdAt fliptsql.Timestamp
		updatedAt fliptsql.Timestamp

		namespace = &flipt.Namespace{}

		err = s.builder.Select("\"key\", name, description, protected, created_at, updated_at").
			From("namespaces").
			Where(sq.Eq{"\"key\"": p.Namespace()}).
			QueryRowContext(ctx).
			Scan(
				&namespace.Key,
				&namespace.Name,
				&namespace.Description,
				&namespace.Protected,
				&createdAt,
				&updatedAt)
	)

	if err != nil {
		if errors.Is(err, sql.ErrNoRows) {
			return nil, errs.ErrNotFoundf("namespace %q", p)
		}

		return nil, err
	}

	namespace.CreatedAt = createdAt.Timestamp
	namespace.UpdatedAt = updatedAt.Timestamp

	return namespace, nil
}