Documentation
¶
Index ¶
- Constants
- type Driver
- type Neorm
- func (orm *Neorm) Add(something string) Neorm
- func (orm *Neorm) AddColumn(name string) Neorm
- func (orm *Neorm) AddConstraint(constraint string) Neorm
- func (orm *Neorm) AddFulltextIndex(column string) Neorm
- func (orm *Neorm) AddIndex(indexName, column string) Neorm
- func (orm *Neorm) AddPrimaryKey(column string) Neorm
- func (orm *Neorm) AddSpatialIndex(column string) Neorm
- func (orm *Neorm) AddUniqueIndex(indexName, column string) Neorm
- func (orm *Neorm) After(columnFromAfter string) Neorm
- func (orm *Neorm) AllUsers() Neorm
- func (orm *Neorm) AlterTable(name string) Neorm
- func (orm *Neorm) And(column, mark string, value interface{}) Neorm
- func (orm *Neorm) AndExpr(column, mark string, expr string) Neorm
- func (orm *Neorm) AutoIncrement() Neorm
- func (orm *Neorm) Begin() error
- func (orm *Neorm) Between(first, second interface{}) Neorm
- func (orm *Neorm) Call(callType, procedure, resultAlias string, args ...interface{}) Neorm
- func (orm *Neorm) ChangeColumn(oldColumn, newColumn string) Neorm
- func (orm *Neorm) CharacterSet(characterSet string) Neorm
- func (orm *Neorm) Check(condition string) Neorm
- func (orm *Neorm) Close()
- func (orm *Neorm) CloseParenthesis() Neorm
- func (orm *Neorm) Comment(comment string) Neorm
- func (orm *Neorm) Commit() error
- func (orm *Neorm) Connect(connString string, driver string) (Neorm, error)
- func (orm *Neorm) Count(table string) Neorm
- func (orm *Neorm) CreateSchema(name string) Neorm
- func (orm *Neorm) CreateTable(name string) Neorm
- func (orm *Neorm) CreateUser(name, scope string) Neorm
- func (orm *Neorm) CrossJoin(table string) Neorm
- func (orm *Neorm) CustomDeleteQuery(query string) Neorm
- func (orm *Neorm) CustomInsertQuery(query string) Neorm
- func (orm *Neorm) CustomKeyword(keywordAndValue string) Neorm
- func (orm *Neorm) CustomQuery(query string) Neorm
- func (orm *Neorm) CustomSelectQuery(query string) Neorm
- func (orm *Neorm) CustomUpdateQuery(query string) Neorm
- func (orm *Neorm) Default(value interface{}) Neorm
- func (orm *Neorm) DefaultOnNull(value interface{}) Neorm
- func (orm *Neorm) Delete() Neorm
- func (orm *Neorm) DisableKeys() Neorm
- func (orm *Neorm) Drop(something string) Neorm
- func (orm *Neorm) DropColumn(column string) Neorm
- func (orm *Neorm) DropConstraint(constraint string) Neorm
- func (orm *Neorm) DropForeingKey(foreignKey string) Neorm
- func (orm *Neorm) DropIndex(index string) Neorm
- func (orm *Neorm) DropPrimaryKey() Neorm
- func (orm *Neorm) DropUser(user, scope string) Neorm
- func (orm *Neorm) EnableKeys() Neorm
- func (orm *Neorm) Engine(engine string) Neorm
- func (orm *Neorm) Enum(values []string) Neorm
- func (orm *Neorm) Execute() error
- func (orm *Neorm) Finish() Neorm
- func (orm *Neorm) First() Neorm
- func (orm *Neorm) FlushPrivileges() Neorm
- func (orm *Neorm) ForeignKey(column string, referenceStruct interface{}) Neorm
- func (orm *Neorm) ForeignKeyWithConstraint(constraint, column string, referenceStruct interface{}) Neorm
- func (orm *Neorm) Generated() Neorm
- func (orm *Neorm) GeneratedAlways(condition string) Neorm
- func (orm *Neorm) GrantPrivileges(privileges interface{}, schema string) Neorm
- func (orm *Neorm) GroupBy(columns ...string) Neorm
- func (orm Neorm) IfNotExist() Neorm
- func (orm *Neorm) In(inType string, column string, values []any) Neorm
- func (orm *Neorm) Index(index interface{}) Neorm
- func (orm *Neorm) InnerJoin(table string, left string, mark string, right string) Neorm
- func (orm *Neorm) Insert(columns []string, values interface{}) Neorm
- func (orm *Neorm) Invisible() Neorm
- func (orm *Neorm) LastInsertId() (string, error)
- func (orm *Neorm) LeftJoin(table string, left string, mark string, right string) Neorm
- func (orm *Neorm) Length() int64
- func (orm *Neorm) Like(queryType, column, operand, pattern string) Neorm
- func (orm *Neorm) Limit(limit int) Neorm
- func (orm *Neorm) LockUserAccount(user, scope string) Neorm
- func (orm *Neorm) ModifyColumn(column string) Neorm
- func (orm *Neorm) NaturalJoin(table string) Neorm
- func (orm *Neorm) NotIn(inType string, column string, values []any) Neorm
- func (orm *Neorm) NotLike(queryType, column, operand, pattern string) Neorm
- func (orm *Neorm) NotNull() Neorm
- func (orm *Neorm) Null() Neorm
- func (orm *Neorm) Offset(offset int) Neorm
- func (orm *Neorm) OnDelete(newValue string) Neorm
- func (orm *Neorm) OnUpdate(newValue string) Neorm
- func (orm *Neorm) OpenParenthesis(parenthesisType string) Neorm
- func (orm *Neorm) Or(column, mark string, value interface{}) Neorm
- func (orm *Neorm) OrExpr(column, mark string, expr string) Neorm
- func (orm *Neorm) OrderBy(column, ordering string) Neorm
- func (orm *Neorm) OrderByField(column string, values []string) Neorm
- func (orm *Neorm) OrderRandom() Neorm
- func (orm *Neorm) PasswordExpiration(user, scope, expirationStr string) Neorm
- func (orm *Neorm) PrimaryKey() Neorm
- func (orm *Neorm) QueryDrop() error
- func (orm *Neorm) RenameColumn(oldName, newName string) Neorm
- func (orm *Neorm) RenameTable(newName string) Neorm
- func (orm *Neorm) RenameUser(newName, newScope string) Neorm
- func (orm *Neorm) Returning(column string) Neorm
- func (orm *Neorm) RevokePrivileges(privileges interface{}, schema string) Neorm
- func (orm *Neorm) RightJoin(table string, left string, mark string, right string) Neorm
- func (orm *Neorm) Rollback() error
- func (orm *Neorm) Rows() ([]map[string]interface{}, error)
- func (orm *Neorm) RowsAffected() (int64, error)
- func (orm *Neorm) Select(columns interface{}) Neorm
- func (orm *Neorm) SelectFunction(function string, args ...interface{}) Neorm
- func (orm *Neorm) Set(column string, value interface{}) Neorm
- func (orm *Neorm) SetDefaultRole(role string) Neorm
- func (orm *Neorm) SetExpr(column, expr string) Neorm
- func (orm *Neorm) SetPassword(password string) Neorm
- func (orm *Neorm) ShowGrants() Neorm
- func (orm *Neorm) Spatial() Neorm
- func (orm *Neorm) Stored() Neorm
- func (orm *Neorm) Table(table string) Neorm
- func (orm *Neorm) Type(typeVal string) Neorm
- func (orm *Neorm) Unique() Neorm
- func (orm *Neorm) Unsigned() Neorm
- func (orm *Neorm) Update() Neorm
- func (orm *Neorm) Use(schema string) Neorm
- func (orm *Neorm) UserInfos(username, scope, password string) Neorm
- func (orm *Neorm) Virtual() Neorm
- func (orm *Neorm) Where(column, mark string, value interface{}) Neorm
- func (orm *Neorm) WhereExpr(column, mark string, expr string) Neorm
- func (orm *Neorm) Zerofill() Neorm
- type Row
Constants ¶
View Source
const Version = "1.9.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Neorm ¶
type Neorm struct {
Schema string
Query string
Pool *sql.DB
Tx *sql.Tx
// contains filtered or unexported fields
}
func (*Neorm) AddConstraint ¶
func (*Neorm) AddFulltextIndex ¶
func (*Neorm) AddPrimaryKey ¶
func (*Neorm) AddSpatialIndex ¶
func (*Neorm) AddUniqueIndex ¶
func (*Neorm) AlterTable ¶
func (*Neorm) AutoIncrement ¶
func (*Neorm) ChangeColumn ¶
func (*Neorm) CharacterSet ¶
func (*Neorm) CloseParenthesis ¶
func (*Neorm) CreateSchema ¶
func (*Neorm) CreateTable ¶
func (*Neorm) CreateUser ¶
func (*Neorm) CustomDeleteQuery ¶ added in v1.9.0
func (*Neorm) CustomInsertQuery ¶ added in v1.9.0
func (*Neorm) CustomKeyword ¶
func (*Neorm) CustomQuery ¶
func (*Neorm) CustomSelectQuery ¶ added in v1.9.0
func (*Neorm) CustomUpdateQuery ¶ added in v1.9.0
func (*Neorm) DefaultOnNull ¶
func (*Neorm) DisableKeys ¶
func (*Neorm) DropColumn ¶
func (*Neorm) DropConstraint ¶
func (*Neorm) DropForeingKey ¶
func (*Neorm) DropPrimaryKey ¶
func (*Neorm) EnableKeys ¶
func (*Neorm) FlushPrivileges ¶
func (*Neorm) ForeignKey ¶
func (*Neorm) ForeignKeyWithConstraint ¶
func (*Neorm) GeneratedAlways ¶
func (*Neorm) GrantPrivileges ¶
func (Neorm) IfNotExist ¶
func (*Neorm) LastInsertId ¶
func (*Neorm) LockUserAccount ¶
func (*Neorm) ModifyColumn ¶
func (*Neorm) NaturalJoin ¶
func (*Neorm) OpenParenthesis ¶
func (*Neorm) OrderRandom ¶
func (*Neorm) PasswordExpiration ¶
func (*Neorm) PrimaryKey ¶
func (*Neorm) QueryDrop ¶
it's for queries that not get any feedback from if operation successfull. It doesn't do any preparations.
func (*Neorm) RenameColumn ¶
func (*Neorm) RenameTable ¶
func (*Neorm) RenameUser ¶
func (*Neorm) RevokePrivileges ¶
func (*Neorm) RowsAffected ¶
func (*Neorm) SelectFunction ¶ added in v1.3.3
func (*Neorm) SetDefaultRole ¶
func (*Neorm) SetPassword ¶
func (*Neorm) ShowGrants ¶
Click to show internal directories.
Click to hide internal directories.