How about generating web service go-language code from sql ddl? - grails-orm

Define the sql ddl and then generate a web service code based on the sql, for example using gin, gorm, go-redis etc.
https://github.com/zhufuyi/sponge
Implementing go language server-side low code.

Related

Best method for using stored procedures and table valued functions in ASP.NET Core 5

We are developing a razor application with VueJS on the frontend and razor / ASP.NET Core 5 on the backend. VueJS accesses the data via post (ajax) requests which we are handling using page handlers in the page models.
I have integrated Entity Framework and done a few queries for practice however I am realizing Entity Framework is not my answer. All of my SQL queries are saved as table valued functions in SQL Server and the update / insert / delete operations are done using stored procedures in SQL Server.
We have a SQL programmer so he just does everything server-side to keep things simple and just gives us function / procedure names and parameters.
I like this approach and we used this in our application when it was VBA in Excel using ADO and recordsets but now that we are using ASP.NET Core in a web setting so I am learning Entity Framework. However EF requires me to maintain models and that seems unnecessarily complicated as my SQL results are generated from procedures / functions.
Really I just need to run these procedures / functions and return the results as a json data array in the POST request.
What would be the best option for this in regards to performance and simplicity (hopefully they can go hand in hand)? A simple code example would also be helpful to get the ball rolling.
As for other questions on StackOverflow I have seen one question which is similar that says dapper is great for stored procedures but does not indicate if table valued functions are allowable.
Please note that Entity Framework Core also allows us to execute raw SQL query to make use of existing stored procedure. For more information about executing raw SQL queries with Entity Framework Core, you can check this doc:
https://learn.microsoft.com/en-us/ef/core/querying/raw-sql
Besides, if you want to implement it with ADO.NET approach, you can try to use Microsoft.Data.SqlClient that provides the data provider for Microsoft SQL Server.
https://devblogs.microsoft.com/dotnet/introducing-the-new-microsoftdatasqlclient/

SQL API, how to get started

I'm looking for some resources to get me started on how to design and implement an API for SQL.
Is this done by writing a series of functions and/or stored procedures to process your transactions on the SQL server (T-SQL).
I have read a bit about Transaction API's v Table API's. While you don't have to chose one of the other I would prefer to avoid the Table API's and focus more on Transaction API's to keep performance high and avoid using cursors.
Also from what I understand RESTFUL API's are just making the requests through HTTP requests (Using JSON) rather than connecting to the DB directly.
If my understanding is completely wrong on this subject please correct me as I am trying to learn.
Thanks

Data Integration Tool For HANA

Is there a good data integration tool available for SAP HANA which could accomplish the following :
Consuming data periodically (a user defined interval) from REST based web service (A simple URL containing XML)
Parsing the XML and extracting the data
Populating the associated table
I am aware that SQL Server Integration Service is one such tool available for Microsoft SQL Server, which does the above. Would like to know the equivalent in HANA. I did explore SAP Cloud Integration service and Business Object Data Services tool, but would like to have a first hand opinion on the same.
SAP HANA Smart Data Integration (SDI) is a standard product option that you can use for this. As it is a feature of SAP HANA, no additional server is required for this solution. This blog gives a good overview SAP SDI BLOG.
Data Services can of course also used for that, but would probably be the 'Ferrari for driving to the bakery'.

Apache Calcite - Access RESTFul Service with SQL

I have went through documentation and its a bit hard for me to grasp how one should go about writing adapter for anything. I want to ease the access of RESTful web services with SQL like interface for business folks.
Coarse requirements look something like:
Register data source, in this case endpoint
Add mapping for endpoint to table
Execute simple select queries
Allow joins to be performed on the basis of some join key but in client application memory
Represent the output in the tabular format
Try using Calcite's file adapter, which was just added in release 1.12.
The simplest use case is reading and parsing a CSV file from the file system, and presenting it as a table that can be used in a SQL statement. But in addition to files, the file adapter read documents via HTTP, and it can parse the contents of HTML tables. So you should be able to use it to read data from a REST service.

Examples of WCF CRUD operations for Oracle?

I'm working on exposing access to an Oracle database table for a SharePoint implementation.
From what I've seen, Oracle is not directly supported by BDC, so I'm trying to write a WCF service to perform the CRUD operations against my table.
I've been researching on Google with very limited success. Can anybody point me to an example of using WCF to modify data in an Oracle database?
I was able to figure this out by following this tutorial (leaving out the Silverlight stuff since I didn't need Silverlight)
How to connect to Oracle database using WCF in Silverlight