Exemple #1
0
func (o _UserObjs) Insert(obj User) _UserQuery {
	q := _UserQuery{}
	q.Query = gmq.Insert(o, o.columnsWithData(obj, "Name", "Password", "IsMarried", "Age"))
	return q
}
Exemple #2
0
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
}
Exemple #3
0
func (o _CommentObjs) Insert(obj Comment) _CommentQuery {
	q := _CommentQuery{}
	q.Query = gmq.Insert(o, o.columnsWithData(obj, "UserId", "ArticleId", "Content"))
	return q
}
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
}
Exemple #5
0
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
}
func (o _KeyColumnUsageObjs) Insert(obj KeyColumnUsage) _KeyColumnUsageQuery {
	q := _KeyColumnUsageQuery{}
	q.Query = gmq.Insert(o, o.columnsWithData(obj, "ConstraintCatalog", "ConstraintSchema", "ConstraintName", "TableCatalog", "TableSchema", "TableName", "ColumnName", "OrdinalPosition", "PositionInUniqueConstraint"))
	return q
}
Exemple #7
0
func (o _ArticleObjs) Insert(obj Article) _ArticleQuery {
	q := _ArticleQuery{}
	q.Query = gmq.Insert(o, o.columnsWithData(obj, "UserId", "Title", "State", "Content", "Donation"))
	return q
}