You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The best Java query builder/SQL connector.
5
5
AdvancedSQL is a SQL query builder and/or connector that helps you to generate/modify information on the database without even have to write any line of SQL code, which sometimes is kindof boring and tiring. AdvancedSQL is the best exit for that developers who wants to continue coding without having to write out-of-syntax code (SQL queries) on Java code.
6
6
7
7
## Documentation:
8
-
Connect to the Database:
8
+
**Connect to the Database:**
9
9
There is no need to create the database manually, AdvancedSQL does it for you.
10
10
```java
11
11
importadvancedsql.*;
@@ -21,6 +21,36 @@ try {
21
21
}
22
22
```
23
23
24
+
**Create table:**
25
+
```java
26
+
importadvancedsql.*;
27
+
importadvancedsql.query.*;
28
+
29
+
try {
30
+
MySQL mySQL = connect();
31
+
32
+
// Table
33
+
ITable table = mySQL.table("users");
34
+
35
+
// Create table
36
+
Create create = table.create();
37
+
38
+
// Table columns
39
+
create.id();
40
+
create.string("first_name");
41
+
create.string("last_name");
42
+
create.string("test");
43
+
44
+
Boolean result = create.execute();
45
+
46
+
// Print query string and result.
47
+
System.out.println(create);
48
+
System.out.println(result);
49
+
} catch (SQLException e) {
50
+
e.printStackTrace();
51
+
}
52
+
```
53
+
24
54
## Licensing information
25
55
This project is licensed under LGPL-3.0. Please see the [LICENSE](/LICENSE) file for details.
0 commit comments