Documentation ¶
Index ¶
- Constants
- Variables
- func GetResourceDb(ctx context.Context, conn sql.Connection, dbId string) sql.Database
- func IsAttrSet[T attr.Value](attr T) bool
- func ToRequired(attr tfsdk.Attribute) tfsdk.Attribute
- func ToRequiredImmutable(attr tfsdk.Attribute) tfsdk.Attribute
- func ToResourceId(attr tfsdk.Attribute) tfsdk.Attribute
- type DbObjectId
- type DbObjectMemberId
Constants ¶
View Source
const RegularIdentifiersDoc = "" /* 159-byte string literal not displayed */
Variables ¶
View Source
var DatabaseIdAttribute = tfsdk.Attribute{ MarkdownDescription: fmt.Sprintf("ID of database. Can be retrieved using `mssql_database` or `SELECT DB_ID('<db_name>')`."), Type: types.StringType, }
View Source
var DatabaseIdResourceAttribute = DatabaseIdAttribute
Functions ¶
func GetResourceDb ¶
Types ¶
type DbObjectId ¶
type DbObjectId[T sql.NumericObjectId] struct { DbId sql.DatabaseId ObjectId T IsEmpty bool }
func ParseDbObjectId ¶
func ParseDbObjectId[T sql.NumericObjectId](ctx context.Context, s string) DbObjectId[T]
func (DbObjectId[T]) String ¶
func (id DbObjectId[T]) String() string
type DbObjectMemberId ¶
type DbObjectMemberId[TObject sql.NumericObjectId, TMember sql.NumericObjectId] struct { DbObjectId[TObject] MemberId TMember }
func ParseDbObjectMemberId ¶
func ParseDbObjectMemberId[TObject sql.NumericObjectId, TMember sql.NumericObjectId](ctx context.Context, s string) DbObjectMemberId[TObject, TMember]
func (DbObjectMemberId[TObject, TMember]) GetMemberId ¶
func (id DbObjectMemberId[TObject, TMember]) GetMemberId() DbObjectId[TMember]
func (DbObjectMemberId[TObject, TMember]) String ¶
func (id DbObjectMemberId[TObject, TMember]) String() string
Click to show internal directories.
Click to hide internal directories.