コード例 #1
0
ファイル: table_constraints.go プロジェクト: jlovison/modelq
func (o _TableConstraintsObjs) Insert(obj TableConstraints) _TableConstraintsQuery {
	q := _TableConstraintsQuery{}
	q.Query = gmq.Insert(o, o.columnsWithData(obj, "ConstraintCatalog", "ConstraintSchema", "ConstraintName", "TableCatalog", "TableSchema", "TableName", "ConstraintType", "IsDeferrable", "InitiallyDeferred"))
	return q
}
コード例 #2
0
ファイル: columns.go プロジェクト: jlovison/modelq
func (o _ColumnsObjs) Insert(obj Columns) _ColumnsQuery {
	q := _ColumnsQuery{}
	q.Query = gmq.Insert(o, o.columnsWithData(obj, "TableCatalog", "TableSchema", "TableName", "ColumnName", "OrdinalPosition", "ColumnDefault", "IsNullable", "DataType", "CharacterMaximumLength", "CharacterOctetLength", "NumericPrecision", "NumericPrecisionRadix", "NumericScale", "DatetimePrecision", "IntervalType", "IntervalPrecision", "CharacterSetCatalog", "CharacterSetSchema", "CharacterSetName", "CollationCatalog", "CollationSchema", "CollationName", "DomainCatalog", "DomainSchema", "DomainName", "UdtCatalog", "UdtSchema", "UdtName", "ScopeCatalog", "ScopeSchema", "ScopeName", "MaximumCardinality", "DtdIdentifier", "IsSelfReferencing", "IsIdentity", "IdentityGeneration", "IdentityStart", "IdentityIncrement", "IdentityMaximum", "IdentityMinimum", "IdentityCycle", "IsGenerated", "GenerationExpression", "IsUpdatable"))
	return q
}
コード例 #3
0
ファイル: COLUMNS.go プロジェクト: jlovison/modelq
func (o _ColumnsObjs) Insert(obj Columns) _ColumnsQuery {
	q := _ColumnsQuery{}
	q.Query = gmq.Insert(o, o.columnsWithData(obj, "TableCatalog", "TableSchema", "TableName", "ColumnName", "OrdinalPosition", "ColumnDefault", "IsNullable", "DataType", "CharacterMaximumLength", "CharacterOctetLength", "NumericPrecision", "NumericScale", "DatetimePrecision", "CharacterSetName", "CollationName", "ColumnType", "ColumnKey", "Extra", "Privileges", "ColumnComment"))
	return q
}