GithubHelp home page GithubHelp logo

victor-wiki / databasemanager Goto Github PK

View Code? Open in Web Editor NEW
118.0 10.0 47.0 5.94 MB

A simple tool for databases : SqlServer, MySql, Oracle, Postgres and SQLite

C# 99.72% HTML 0.21% CSS 0.05% JavaScript 0.01%
database convert migrate table sqlserver mysql copy sql compare translate sync parse oracle pgsql postgres postgresql sql-server tsql plsql sqlite

databasemanager's Issues

Null Object Reference PLSqlRuleAnalyser

Hi, I encountered a problem on the PLSQL side, thank you in advance.

PLSQL Query

WITH
   sum_sales AS
      ( select
      sum(qty) all_sales from sales ),
   number_stores AS
      ( select
      count(*) nbr_stores from stores ),
   sales_by_store AS
      ( select
      stor_name, sum(qty) store_sales from
      stores natural join sales
      group by stor_name)
SELECT
   stores.stor_name
FROM
   stores,
   sum_sales,
   number_stores,
   sales_by_store
where
   store_sales > (all_sales / nbr_stores);

Test Code:

 PlSqlAnalyser plSqlAnalyser = new PlSqlAnalyser(query);       
var result = plSqlAnalyser.AnalyseCommon();

https://github.com/victor-wiki/DatabaseManager/blob/92ed82e633f0ed05753239a86558146328b56548/DatabaseConverter/SqlAnalyser.Core/RuleAnalyser/PlSqlRuleAnalyser.cs#L1342C28-L1342C28

image

image

Sqlite option

how do you open sqlite database and also compare using the app?

Null object reference.

https://github.com/victor-wiki/DatabaseManager/blob/cd61d4cfd9294a1e1618d2982b9403aeadc7b5e5/DatabaseConverter/SqlAnalyser.Core/RuleAnalyser/TSqlRuleAnalyser.cs#L725C46-L725C46

tsij object

if (!asWhole && (tsij.table_source_item_joined() != null || tsij.table_source_item()?.derived_table() != null))
{
    asWhole = true;
}

if (!asWhole && (tsij?.table_source_item_joined() != null || tsij?.table_source_item()?.derived_table() != null))
{
    asWhole = true;
}

T-SQL

SELECT DOCUMENTID,
E_edem_DataSourceProviderV2_Form1.DateTimePicker1,
E_edem_DataSourceProviderV2_Form1.CheckBox1,
E_edem_DataSourceProviderV2_Form1.NumberBox1,
COALESCE(NULLIF(E_edem_DataSourceProviderV2_Form1ML_SystemCulture.TextBox1, ''), NULLIF(E_edem_DataSourceProviderV2_Form1ML_UserCulture.TextBox1, ''), NULLIF(E_edem_DataSourceProviderV2_Form1ML_defaultCulture.TextBox1, '')),
E_edem_DataSourceProviderV2_Form1SL.ComboBox1,
E_edem_DataSourceProviderV2_Form1.TimePicker1,
E_edem_DataSourceProviderV2_Form1.Switch1
 FROM E_edem_DataSourceProviderV2_Form1

            OUTER APPLY (SELECT TextBox1 FROM E_edem_DataSourceProviderV2_Form1ML WHERE E_edem_DataSourceProviderV2_Form1.ID = E_edem_DataSourceProviderV2_Form1ML.PARENTID AND E_edem_DataSourceProviderV2_Form1ML.CULTURE = 'system') E_edem_DataSourceProviderV2_Form1ML_SystemCulture 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.