Skip to content

SolutionsDesign/LLBLGenProSpanner

Repository files navigation

Google Spanner Driver / DQE for LLBLGen Pro

This is the repository for the Google Spanner Driver and Dynamic Query Engine (DQE) for LLBLGen Pro v5.9+. It contains the sourcecode for the driver and DQE so users who move to v5.9+ and need to support Google Spanner can continue to do so. Starting with v5.9, LLBLGen Pro doesn't officially support Google Spanner anymore, and as a courtesy to our existing customers we have published the sourcecode for the driver and DQE here on GitHub under the flexible MIT license.

The code in this repository references LLBLGen Pro v5.9 assemblies. It's easy to adjust them to the LLBLGen Pro version you're using though.

Compatiblity

The sourcecode available here compiles against LLBLGen Pro v5.9.x assemblies. If you encounter code breaking changes, please file an issue on this repository so we can look into this.

Support on this sourcecode

While LLBLGen Pro officially doesn't support Google Spanner anymore, we strive to keep this code compileable against the latest LLBLGen Pro version, if feasible. As we no longer have access to any Google Spanner database, we can't test the code ourselves (and which is also the reason why we no longer support it officially).

Please file an issue here if you run into an issue with compiling the code. We can't fix bugs / issues in the code for you as we can't test it on live databases anymore. However if you want to fix an issue yourself but need advice how to do so, e.g. because you're unfamiliar with how things work internally in the system, please ask the question as an issue here on GitHub and we'll try to help you as best as we can.

Templates

The contents of the Templates folder has to be copied into the LLBLGen Pro installation folder\Frameworks\LLBLGen Pro\Templates. Depending on which version of LLBLGen Pro you're using the contents of this repository with, you have to adjust the dqeReferenceXmlInclude.template template in the Templates\SpannerSpecific\Shared folder: change 5.9.0.0 into the version you're using. Only Major/Minor version numbers matter, so e.g. v5.9.1 is still using assembly version 5.9.0.0.

The public key token has been adjusted for you in this template to the new self-signing key shipped with the DQE sourcecode in this repository.

Features of the driver / DQE

The features supported by this driver can be found in the v5.8 documentation

Compiling the Driver

To compile the driver, make sure the references in the SybaseAsaDBDriver csproj file are updated and point to the LLBLGen Pro v5.9.x designer installation. The driver dll is self-signed. Compiling is simple: just compile the csproj file.

Deploying the driver

To use the driver, place the compiled dll it in the following folder: <[LLBLGen Pro](https://www.llblgen.com) installation folder>\Drivers\Spanner. Additionally, copy the file driver.config from the Driver folder into this folder.

To see whether the driver is loaded by the designer, start the designer and go to Tools->View Loaded External Types... If the Google Spanner driver is shown, it's loaded and usable.

Driver ID

Drivers in LLBLGen Pro use a GUID as 'ID'. This ID is hardcoded and is specified in the driver.config file and the DBDriver class. As this ID is also used in the templates it's key you keep this ID the same as it is today. If you fork this codebase and change that ID, templates shipped with the designer won't work with the driver.

The ID for Google Spanner is: 00127E43-3911-4EA5-ABFF-7456C6349261

Compiling the Dynamic Query Engine (DQE)

To compile the DQE, make sure the references in the SybaseAsaDQE csproj are updated and point to the ORMSupportClasses dll. The DQE dll is self-signed. The ORM Support classes package is also available on nuget, for easy referencing.

Deploying the DQE

To use the DQE, just reference the compiled dll. See for more info about compiling the generated code and using a DQE, the Compiling your code topic in the LLBLGen Pro Runtime Framework documentation.

License

The sourcecode in this repository is licensed to you under the MIT license, given below.

The MIT License (MIT)

Copyright (c) 2021 Solutions Design bv

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

NuGet

You are not allowed to publish the assemblies, compiled from the code in this repository, on NuGet as separate packages.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages