Skip to content

Commit

Permalink
Removed exit function
Browse files Browse the repository at this point in the history
  • Loading branch information
Vandana-Rajamani committed Jun 20, 2024
1 parent da392d9 commit 098bb71
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 32 deletions.
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/AddBagData.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ def main():
insert_record(handle,'BaggageInfo',bag4)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/AddData.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ def main():
insert_record(handle,'stream_acct',acct3)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/AlterTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def main():
drop_table(handle)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/CreateTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def main():
create_table(handle)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/GroupSortData.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ def main():
fetch_data(handle,groupsortlimit_stmt)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/Indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def main():
drop_index(handle)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/ModifyData.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ def main():
delete_rows(handle,del_stmt)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/MultiDataOps.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def main():
fetch_rowCnt(handle,sqlstmt)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/MultiWrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def main():
insert_record(handle,'ticket.bagInfo.flightLegs',data3)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/Namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def main():
drop_ns(handle)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/QueryData.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ def main():
fetch_data(handle,sqlstmt)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/Regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def main():
drop_region(handle)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/SQLExpressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ def main():
fetch_data(handle,seq_trn_expr)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/SQLFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ def main():
fetch_data(handle,string_func3)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/SQLOperators.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ def main():
fetch_data(handle,existsope_stmt)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()
3 changes: 1 addition & 2 deletions examples-nosql-python-sdk/sqlexamples/TableJoins.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def main():
fetch_data(handle,sql_stmt_nt)
if handle is not None:
handle.close()
os._exit(0)


if __name__ == "__main__":
main()

0 comments on commit 098bb71

Please sign in to comment.