-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimportDataBase.java
More file actions
45 lines (27 loc) · 884 Bytes
/
importDataBase.java
File metadata and controls
45 lines (27 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
n
import java.io;
import java.util;
import org.apache.HTTP.*;
import android.os.Parcelable.Creator.*;
import org.postgresql.Connection;
public class ImportDataBase {
public static main(String[] args) {
BufferedInputStream jdbcCurrent = JarInputFileStream(getInputStream("postgresql-9.4-1200-jdbc41.jar", true));
Array = { "DataSource": "usr/local/lib/psql",
"host" : .getPort(),
"login" : 'root',
"password" : 'pw',
"Tables" : 'TID',
"encoding" : 'UTF-8',
};
getInputStream.openFileInput;
DataSource xData = InitialContext(.getConnection.pg_relation_filepath.lookup("Tables"));
}}
public static Listener{
//Lookup Directory
//import all files
BufferedInputStream(FileReader(.getInputStream("did")));
//get all TID#
Connection xLoad = {getConnection.ByteArrayOutStream.setDataSource('TID')}
//both TID origins //
}