Skip to content

Commit 6a6c213

Browse files
Add files via upload
1 parent d911ab4 commit 6a6c213

27 files changed

+541
-0
lines changed

templates/bulkInsertCassandra.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Bulk Insert Cassandra</title>
6+
</head>
7+
<body>
8+
<form action="/bulkInsertCassandra/{{client_id}}/{{client_key}}/{{bundle_path}}" method="POST">
9+
<h1>Enter details to bulk insert in Cassandra</h1>
10+
<table>
11+
<tr><td>Keyspace name:</td><td> <input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
13+
<tr><td>Attributes: </td><td><input type="text" name="attr" id="attr"></td></tr>
14+
<tr><td>Path (csv): </td><td><input type="text" name="path" id="Path"></td></tr>
15+
<tr><td colspan="2"><input type="submit" value="Insert"></td></tr>
16+
</table>
17+
</form>
18+
</body>
19+
</html>

templates/bulkInsertMongoDB.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Bulk Insert MongoDB</title>
6+
</head>
7+
<body>
8+
<form action="/bulkInsertMongoDB/{{part1}}/{{part2}}" method="POST">
9+
<h1>Enter details to bulk insert in MongoDB</h1>
10+
<table>
11+
<tr><td>Database name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Collection name: </td><td><input type="text" name="coll" id="coll"></td></tr>
13+
<tr><td>Path (json): </td><td><input type="text" name="path" id="path"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Insert"></td></tr>
15+
</table>
16+
</form>
17+
</body>
18+
</html>

templates/bulkInsertSql.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Bulk Insert SQL</title>
6+
</head>
7+
<body>
8+
<form action="/bulkInsertSql/{{host}}/{{user}}/{{passwd}}" method="POST">
9+
<h1>Enter details to bulk insert in MySQL</h1>
10+
<table>
11+
<tr><td>Database name:</td> <td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
13+
<tr><td>Attributes: </td> <td><input type="text" name="attr" id="attr"></td></tr>
14+
<tr><td>Path (csv): </td><td><input type="text" name="path" id="Path"></td></tr>
15+
<tr><td colspan="2"><input type="submit" value="Insert"></td></tr>
16+
</table>
17+
</form>
18+
</body>
19+
</html>

templates/createCassandra.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Create Cassandra</title>
6+
</head>
7+
<body>
8+
<form action="/createTableCassandra/{{client_id}}/{{client_key}}/{{bundle_path}}" method="POST">
9+
<h1>Create Table in Cassandra</h1>
10+
<h2>For online Cassandra - DataStax, make sure your keyspace is already created.<br>
11+
Hence, leave the Class and Replication Factor fields blank. </h2>
12+
<h2>For offline Cassandra, if your keyspace doesn't exist already, enter details in all the fields.<br>
13+
If keyspace exists, leave the Class and Replication Factor fields blank. </h2>
14+
<table>
15+
<tr><td>Keyspace name: </td><td><input type="text" name="db" id="db"></td></tr>
16+
<tr><td>Class: </td><td><input type="text" name="class" id="class"></td></tr>
17+
<tr><td>Replication Factor: </td><td><input type="text" name="rf" id="rf"></td></tr>
18+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
19+
<tr><td>Attributes: </td><td><input type="text" name="attr" id="attr"></td></tr>
20+
<tr><td colspan="2"><input type="submit" value="Create"></td></tr>
21+
</table>
22+
</form>
23+
</body>
24+
</html>

templates/createMongoDB.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Create MongoDB</title>
6+
</head>
7+
<body>
8+
<form action="/createDocumentMongoDB/{{part1}}/{{part2}}" method="POST">
9+
<h1>Create Document in MongoDB</h1>
10+
<table>
11+
<tr><td>Database name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Collection name: </td><td><input type="text" name="coll" id="coll"></td></tr>
13+
<tr><td colspan="2"><input type="submit" value="Create"></td></tr>
14+
</table>
15+
</form>
16+
</body>
17+
</html>

templates/createSql.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Create SQL</title>
6+
</head>
7+
<body>
8+
<form action="/createTableSql/{{host}}/{{user}}/{{passwd}}" method="POST">
9+
<h1>Create Table in MySQL</h1>
10+
<table>
11+
<tr><td>Database name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
13+
<tr><td>Attributes: </td><td><input type="text" name="attr" id="attr"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Create"></td></tr>
15+
</table>
16+
</form>
17+
</body>
18+
</html>

templates/deleteCassandra.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Delete Records</title>
6+
</head>
7+
<body>
8+
<form action="/deleteCassandra/{{client_id}}/{{client_key}}/{{bundle_path}}" method="POST">
9+
<h1>Enter details to delete in Cassandra</h1>
10+
<table>
11+
<tr><td>Keyspace name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
13+
<tr><td>WHERE: </td><td><input type="text" name="val" id="val"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Delete"></td></tr>
15+
</table>
16+
</form>
17+
</body>
18+
</html>

templates/deleteMongoDB.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Delete MongoDB</title>
6+
</head>
7+
<body>
8+
<form action="/deleteMongoDB/{{part1}}/{{part2}}" method="POST">
9+
<h1>Enter details to delete in MongoDB</h1>
10+
<table>
11+
<tr><td>Database name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Collection name: </td><td><input type="text" name="coll" id="coll"></td></tr>
13+
<tr><td>WHERE (dict): </td><td><input type="text" name="delete" id="delete"></td></tr>
14+
<tr><td colspan="2">
15+
<select id="delete_op" name="delete_op">
16+
<option value="delete_one">Delete One</option>
17+
<option value="delete_many">Delete Many</option>
18+
</select>
19+
</td></tr>
20+
<tr><td colspan="2"><input type="submit" value="Delete"></td></tr>
21+
</table>
22+
</form>
23+
</body>
24+
</html>

templates/deleteSql.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Delete Records</title>
6+
</head>
7+
<body>
8+
<form action="/deleteSql/{{host}}/{{user}}/{{passwd}}" method="POST">
9+
<h1>Enter details to delete in MySQL</h1>
10+
<table>
11+
<tr><td>Database name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
13+
<tr><td>WHERE: </td><td><input type="text" name="val" id="val"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Delete">
15+
</table>
16+
</form>
17+
</body>
18+
</html>

templates/downloadCassandra.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Download Cassandra</title>
6+
</head>
7+
<body>
8+
<form action="/downloadCassandra/{{client_id}}/{{client_key}}/{{bundle_path}}" method="POST">
9+
<h1>Enter details to download from Cassandra</h1>
10+
<table>
11+
<tr><td>Keyspace name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
13+
<tr><td>Path (csv): </td><td><input type="text" name="path" id="path"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Download"></td></tr>
15+
</table>
16+
</form>
17+
</body>
18+
</html>

templates/downloadMongoDB.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Download MongoDB</title>
6+
</head>
7+
<body>
8+
<form action="/downloadMongoDB/{{part1}}/{{part2}}" method="POST">
9+
<h1>Enter details to download from MongoDB</h1>
10+
<table>
11+
<tr><td>Database name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Collection name: </td><td><input type="text" name="coll" id="coll"></td></tr>
13+
<tr><td>Path (json): </td><td><input type="text" name="path" id="path"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Download"></td></tr>
15+
</table>
16+
</form>
17+
</body>
18+
</html>

templates/downloadSql.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Download SQL</title>
6+
</head>
7+
<body>
8+
<form action="/downloadSql/{{host}}/{{user}}/{{passwd}}" method="POST">
9+
<h1>Enter details to download from MySQL</h1>
10+
<table>
11+
<tr><td>Database name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
13+
<tr><td>Path (csv): </td><td><input type="text" name="path" id="path"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Download"></td></tr>
15+
</table>
16+
</form>
17+
</body>
18+
</html>

templates/error.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Error</title>
6+
</head>
7+
<body>
8+
<h2>Error Description</h2>
9+
<h3>{{message}}</h3>
10+
<h4>Go back to try again</h4>
11+
</body>
12+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Establish Cassandra Connection</title>
6+
</head>
7+
<body>
8+
<form action="/establishCassandraConnection" method="POST">
9+
<h1>Connect to Cassandra Database</h1>
10+
<h2>Leave fields blank for local Cassandra connection</h2>
11+
<table>
12+
<tr><td>Client ID: </td><td><input type="text" name="id" id="id"></td></tr>
13+
<tr><td>Client Key: </td><td><input type="text" name="key" id="key"></td></tr>
14+
<tr><td>Secure Connect Bundle Path: </td><td><input type="text" name="path" id="path"></td></tr>
15+
<tr><td colspan="2"><input type="submit" value="Connect"></td></tr>
16+
</table>
17+
</form>
18+
</body>
19+
</html>
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Establish MongoDB Connection</title>
6+
</head>
7+
<body>
8+
<form action="/establishMongoDBConnection" method="POST">
9+
<h1>Connect to MongoDB Database</h1>
10+
<table>
11+
<tr><td>Connection String: </td><td><input type="text" name="con_url" id="con_url"></td></tr>
12+
<tr><td colspan="2"><input type="submit" value="Connect"></td></tr>
13+
</table>
14+
</form>
15+
</body>
16+
</html>

templates/establishSqlConnection.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Establish MySql Connection</title>
6+
</head>
7+
<body>
8+
<form action="/establishSqlConnection" method="POST">
9+
<h1>Connect to MySQL Database</h1>
10+
<table>
11+
<tr><td>Host: </td><td><input type="text" name="host" id="host"></td></tr>
12+
<tr><td>User: </td><td><input type="text" name="user" id="user"></td></tr>
13+
<tr><td>Password: </td><td><input type="password" name="passwd" id="passwd"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Connect"></td></tr>
15+
</table>
16+
</form>
17+
</body>
18+
</html>

templates/index.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Select Database</title>
6+
</head>
7+
<body style="background-color:tomato;">
8+
<form action="/establishConnection" method="POST">
9+
<h1 align="center">Welcome To Flask Database API</h1>
10+
<h2 align="center">Select the Database</h2>
11+
<table align="center">
12+
<tr>
13+
<td>
14+
<select id="db" name="db">
15+
<option value="mysql">MySQL</option>
16+
<option value="mongodb">MongoDB</option>
17+
<option value="cassandra">Cassandra</option>
18+
</select>
19+
</td>
20+
<td>
21+
<input type="submit" value="Proceed to establish connection">
22+
</td>
23+
</tr>
24+
</table>
25+
</form>
26+
</body>
27+
</html>

templates/oneInsertCassandra.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>One Insert Cassandra</title>
6+
</head>
7+
<body>
8+
<form action="/oneInsertCassandra/{{client_id}}/{{client_key}}/{{bundle_path}}" method="POST">
9+
<h1>Enter details to insert in Cassandra</h1>
10+
<table>
11+
<tr><td>Keyspace name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Table name: </td><td><input type="text" name="table" id="table"></td></tr>
13+
<tr><td>Attributes: </td><td><input type="text" name="attr" id="attr"></td></tr>
14+
<tr><td>Values: </td><td><input type="text" name="val" id="val"></td></tr>
15+
<tr><td colspan="2"><input type="submit" value="Insert"></td></tr>
16+
</table>
17+
</form>
18+
</body>
19+
</html>

templates/oneInsertMongoDB.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>One Insert MongoDB</title>
6+
</head>
7+
<body>
8+
<form action="/oneInsertMongoDB/{{part1}}/{{part2}}" method="POST">
9+
<h1>Enter details to insert in MongoDB</h1>
10+
<table>
11+
<tr><td>Database name: </td><td><input type="text" name="db" id="db"></td></tr>
12+
<tr><td>Collection name: </td><td><input type="text" name="coll" id="coll"></td></tr>
13+
<tr><td>VALUES (dict/list): </td><td><input type="text" name="attr" id="attr"></td></tr>
14+
<tr><td colspan="2"><input type="submit" value="Insert"></td></tr>
15+
</table>
16+
</form>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)