fwidjaya20 / goloquent Goto Github PK
View Code? Open in Web Editor NEWGolang ORM
Golang ORM
-- Insert data doesn't returning any data, only sql.result
Change generated QUERY into Named Query
Provide executor for:
The where
methods will compare the column against a value:
The whereIn
method verifies that a given column's value is contained within the given array:
The whereNotIn
method verifies that the given column's value is not contained in the given array:
The whereBetween
method verifies that a column's value is between two values:
The whereNotBetween
method verifies that a column's value lies outside of two values:
The whereNull
method verifies that the value of the given column is NULL
:
The whereNotNull
method verifies that the value of the given column is NOT NULL
:
The whereColumn
method may be used to verify that two columns are equal:
The orderBy
method allows you to sort the result of the query by a given column.
The first argument to the orderBy
method should be the column
you wish to sort by, while the second argument controls the direction
of the sort and may be either asc or desc:
The groupBy
and having
methods may be used to group the query results.
The having
method's signature is similar to that of the where method:
To limit the number of results returned from the query, or to skip
a given number of results in the query, you may use the skip
and take
methods:
The query builder may also be used to write join statements. To perform a basic "inner join", "left join", "right join", "full outer join", you may use the join
method on a query builder instance.
The first argument passed to the join method is the name of the table
you need to join to, while the remaining arguments specify the column constraints
for the join.
You can even join to multiple tables in a single query:
The query builder also provides a quick way to "union" two queries together. For example, you may create an initial query and use the union method to union it with a second query:
Require:
Required:
Missing Method
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.