Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nested table support #32

Merged
2 changes: 1 addition & 1 deletion ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ distribution = "slbeta3"
path = "../native/build/libs/oracledb-native-0.1.0-beta.3-SNAPSHOT.jar"

[[platform.java11.dependency]]
path = "./lib/sql-native-1.0.0-20210908-160800-40ba25d.jar"
path = "./lib/sql-native-1.0.0-20210911-122200-3cb1d5f.jar"

[[platform.java11.dependency]]
path = "./lib/ojdbc8-12.2.0.1.jar"
Expand Down
111 changes: 105 additions & 6 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,35 @@ modules = [
{org = "ballerina", packageName = "file", moduleName = "file"}
]

[[package]]
org = "ballerina"
name = "http"
version = "2.0.0"
scope = "testOnly"
transitive = true
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "cache"},
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "file"},
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "jwt"},
{org = "ballerina", name = "lang.array"},
{org = "ballerina", name = "lang.decimal"},
{org = "ballerina", name = "lang.int"},
{org = "ballerina", name = "lang.runtime"},
{org = "ballerina", name = "lang.string"},
{org = "ballerina", name = "lang.value"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "mime"},
{org = "ballerina", name = "oauth2"},
{org = "ballerina", name = "observe"},
{org = "ballerina", name = "regex"},
{org = "ballerina", name = "time"},
{org = "ballerina", name = "url"}
]

[[package]]
org = "ballerina"
name = "io"
Expand All @@ -79,7 +108,7 @@ modules = [
[[package]]
org = "ballerina"
name = "jballerina.java"
version = "0.9.0"
version = "0.0.0"
transitive = false
modules = [
{org = "ballerina", packageName = "jballerina.java", moduleName = "jballerina.java"}
Expand All @@ -102,10 +131,58 @@ dependencies = [
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "lang.__internal"
version = "0.0.0"
scope = "testOnly"
transitive = true
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"}
]

[[package]]
org = "ballerina"
name = "lang.array"
version = "0.0.0"
scope = "testOnly"
transitive = true
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.__internal"}
]

[[package]]
org = "ballerina"
name = "lang.decimal"
version = "0.0.0"
scope = "testOnly"
transitive = true
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.int"
version = "0.0.0"
scope = "testOnly"
transitive = true
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.object"
version = "0.0.0"
transitive = true

[[package]]
org = "ballerina"
name = "lang.runtime"
version = "0.0.1"
version = "0.0.0"
scope = "testOnly"
transitive = false
dependencies = [
Expand All @@ -120,7 +197,7 @@ modules = [
[[package]]
org = "ballerina"
name = "lang.string"
version = "1.1.0"
version = "0.0.0"
scope = "testOnly"
transitive = false
dependencies = [
Expand All @@ -133,7 +210,7 @@ modules = [
[[package]]
org = "ballerina"
name = "lang.transaction"
version = "0.0.1"
version = "0.0.0"
scope = "testOnly"
transitive = false
dependencies = [
Expand All @@ -143,6 +220,15 @@ modules = [
{org = "ballerina", packageName = "lang.transaction", moduleName = "lang.transaction"}
]

[[package]]
org = "ballerina"
name = "lang.value"
version = "0.0.0"
transitive = true
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "log"
Expand Down Expand Up @@ -239,7 +325,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "test"
version = "0.8.0"
version = "0.0.0"
scope = "testOnly"
transitive = false
dependencies = [
Expand Down Expand Up @@ -271,10 +357,23 @@ dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "uuid"
version = "1.0.0"
scope = "testOnly"
transitive = true
dependencies = [
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.int"},
{org = "ballerina", name = "regex"}
]

[[package]]
org = "ballerinai"
name = "transaction"
version = "1.0.15"
version = "0.0.0"
scope = "testOnly"
transitive = false
dependencies = [
Expand Down
12 changes: 8 additions & 4 deletions ballerina/tests/08-procedure-call-test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ isolated function testCallWithStringTypesInOutParams() returns error? {
}

@test:Config {
groups: ["procedures"]
groups: ["procedures"],
dependsOn: [testCallWithStringTypesInOutParams]
}
isolated function testCallWithNumericTypesOutParams() returns error? {
Client oracledbClient = check new(HOST, USER, PASSWORD, DATABASE, PORT);
Expand Down Expand Up @@ -188,7 +189,8 @@ isolated function testCallWithNumericTypesOutParams() returns error? {
type Xml xml;

@test:Config {
groups: ["procedures"]
groups: ["procedures"],
dependsOn: [testCallWithNumericTypesOutParams]
}
isolated function testCallWithComplexTypesOutParams() returns error? {
Client oracledbClient = check new(HOST, USER, PASSWORD, DATABASE, PORT);
Expand All @@ -211,7 +213,8 @@ distinct class RandomOutParameter {
}

@test:Config {
groups: ["procedures"]
groups: ["procedures"],
dependsOn: [testCallWithComplexTypesOutParams]
}
isolated function testCallWithRandomOutParams() returns error? {
Client oracledbClient = check new(HOST, USER, PASSWORD, DATABASE, PORT);
Expand All @@ -225,7 +228,8 @@ isolated function testCallWithRandomOutParams() returns error? {
}

@test:Config {
groups: ["procedures"]
groups: ["procedures"],
dependsOn: [testCallWithRandomOutParams]
}
isolated function testCallWithDateTimesOutParams() returns error? {
Client oracledbClient = check new (HOST, USER, PASSWORD, DATABASE, PORT);
Expand Down
Loading