Move Standard.Database.Data to Standard.Database. (#9321)

Moves the types out of `Data`.
This commit is contained in:
James Dunkerley 2024-03-07 14:43:38 +00:00 committed by GitHub
parent 7e498a049d
commit c7d693dfc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
60 changed files with 139 additions and 139 deletions

View File

@ -8,7 +8,7 @@ import { computed, ref, watch, watchEffect, watchPostEffect } from 'vue'
export const name = 'Histogram'
export const inputType =
'Standard.Table.Data.Table.Table | Standard.Base.Data.Vector.Vector | Standard.Image.Data.Histogram.Histogram'
'Standard.Table.Data.Table.Table | Standard.Base.Data.Vector.Vector | Standard.Image.Histogram.Histogram'
export const defaultPreprocessor = [
'Standard.Visualization.Histogram',
'process_to_json_text',

View File

@ -1,7 +1,7 @@
<script lang="ts">
export const name = 'Image'
export const icon = 'image'
export const inputType = 'Standard.Image.Data.Image.Image'
export const inputType = 'Standard.Image.Image.Image'
interface Data {
mediaType?: string

View File

@ -2,7 +2,7 @@
export const name = 'SQL Query'
export const icon = 'braces'
export const inputType =
'Standard.Database.Data.DB_Table.DB_Table | Standard.Database.Data.DB_Column.DB_Column'
'Standard.Database.DB_Table.DB_Table | Standard.Database.DB_Column.DB_Column'
export const defaultPreprocessor = [
'Standard.Visualization.SQL.Visualization',
'prepare_visualization',

View File

@ -3,10 +3,8 @@ from Standard.Base import all
from Standard.Table import Aggregate_Column, Value_Type
import Standard.Database.Connection.Connection.Connection
import Standard.Database.Data.DB_Column.DB_Column
import Standard.Database.Data.Dialect
import Standard.Database.Data.SQL_Statement.SQL_Statement
import Standard.Database.Data.SQL_Type.SQL_Type
import Standard.Database.DB_Column.DB_Column
import Standard.Database.Dialect
import Standard.Database.Internal.Base_Generator
import Standard.Database.Internal.Column_Fetcher as Column_Fetcher_Module
import Standard.Database.Internal.Column_Fetcher.Column_Fetcher
@ -24,6 +22,8 @@ import Standard.Database.Internal.Postgres.Postgres_Type_Mapping.Postgres_Type_M
import Standard.Database.Internal.SQL_Type_Mapping.SQL_Type_Mapping
import Standard.Database.Internal.SQL_Type_Reference.SQL_Type_Reference
import Standard.Database.Internal.Statement_Setter.Statement_Setter
import Standard.Database.SQL_Statement.SQL_Statement
import Standard.Database.SQL_Type.SQL_Type
from Standard.Database.Errors import SQL_Error, Unsupported_Database_Operation
import project.Database.Redshift.Internal.Redshift_Error_Mapper.Redshift_Error_Mapper

View File

@ -14,12 +14,12 @@ import project.Errors.No_Such_Key.No_Such_Key
import project.Errors.Problem_Behavior.Problem_Behavior
import project.Nothing.Nothing
import project.Panic.Panic
import project.System.File.Existing_File_Behavior.Existing_File_Behavior
import project.System.File.File
import project.System.File.File_Access.File_Access
import project.System.File.Generic.Writable_File.Writable_File
import project.System.File.Existing_File_Behavior.Existing_File_Behavior
import project.System.Input_Stream.Input_Stream
import project.System.File.Write_Extensions
import project.System.Input_Stream.Input_Stream
from project.Data.Boolean import Boolean, False, True
from project.Data.Range.Extensions import all
from project.Data.Text.Extensions import all
@ -222,7 +222,7 @@ type XML_Document
Appending will probably not work as expected for XML documents, as it will
append after the root element, which is not valid XML.
Arguments:
- path: The path to the target file.
- encoding: The encoding to use when writing the file.
@ -230,7 +230,7 @@ type XML_Document
- include_xml_declaration: Specifies whether to include the XML declaration
in the output. (e.g. `<?xml version="1.0" encoding="UTF-8"?>`)
- on_problems: Specifies how to handle any encountered problems.
If a character cannot be converted to a byte, an `Encoding_Error` is raised.
If `on_problems` is set to `Report_Warning` or `Ignore`, it is replaced with
a substitute (either '<27>' (if Unicode) or '?' depending on the encoding).
@ -240,18 +240,18 @@ type XML_Document
If another error occurs, such as access denied, an `File_Error.IO_Error` is
raised.
Otherwise, the file is created with the encoded xlm written to it.
The method returns a `File` object for the written file.
? Dry Run
If writing to Output context is not enabled (such as in "Design" mode),
then this function will write to a temporary file. This temporary file will
be automatically deleted on exit of the Enso process.
This allows for building the workflow without affecting the real files.
@encoding Encoding.default_widget
write : Writable_File -> Encoding -> Existing_File_Behavior -> Boolean -> File
write : Writable_File -> Encoding -> Existing_File_Behavior -> Boolean -> Problem_Behavior -> File
write self path:Writable_File (encoding : Encoding = Encoding.utf_8) (on_existing_file : Existing_File_Behavior = Existing_File_Behavior.Backup) (include_xml_declaration : Boolean = Boolean.True) (on_problems : Problem_Behavior = Problem_Behavior.Report_Warning) =
declaration = if include_xml_declaration then '<?xml version=\"1.0\" encoding=\"' + encoding.character_set + '\"?>\n' else ""
XML_Error.handle_java_exceptions <|

View File

@ -2,7 +2,7 @@ from Standard.Base import all
import Standard.Table.Data.Type.Value_Type.Value_Type
import project.Data.Column_Constraint.Column_Constraint
import project.Column_Constraint.Column_Constraint
## Describes a column structure for `Connection.create_table`.
type Column_Description

View File

@ -13,13 +13,10 @@ import Standard.Table.Data.Table.Table
import Standard.Table.Data.Type.Value_Type.Value_Type
import Standard.Table.Internal.Column_Naming_Helper.Column_Naming_Helper
import project.Data.Column_Description.Column_Description
import project.Data.DB_Table as DB_Table_Module
import project.Data.DB_Table.DB_Table
import project.Data.Dialect.Dialect
import project.Data.SQL_Query.SQL_Query
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.Column_Description.Column_Description
import project.DB_Table as DB_Table_Module
import project.DB_Table.DB_Table
import project.Dialect.Dialect
import project.Internal.Connection.Entity_Naming_Properties.Entity_Naming_Properties
import project.Internal.Hidden_Table_Registry
import project.Internal.IR.Context.Context
@ -29,6 +26,9 @@ import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.Internal.SQL_Warning_Helper
import project.Internal.Statement_Setter.Statement_Setter
import project.Internal.Table_Naming_Helper.Table_Naming_Helper
import project.SQL_Query.SQL_Query
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
from project.Errors import SQL_Error, Table_Already_Exists, Table_Not_Found
from project.Internal.JDBC_Connection import handle_sql_errors, JDBC_Connection
from project.Internal.Result_Set import read_column, result_set_to_table

View File

@ -1,6 +1,6 @@
from Standard.Base import all
from Standard.Base.Enso_Cloud.Public_Utils import get_required_field
from Standard.Base.Enso_Cloud.Data_Link import parse_secure_value
from Standard.Base.Enso_Cloud.Public_Utils import get_required_field
import project.Connection.Connection_Options.Connection_Options
import project.Connection.Credentials.Credentials

View File

@ -21,9 +21,7 @@ from Standard.Table.Errors import Conversion_Failure, Floating_Point_Equality, I
from Standard.Table.Internal.Cast_Helpers import check_cast_compatibility
import project.Connection.Connection.Connection
import project.Data.DB_Table.DB_Table
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.DB_Table.DB_Table
import project.Internal.Helpers
import project.Internal.IR.Context.Context
import project.Internal.IR.Internal_Column.Internal_Column
@ -31,6 +29,8 @@ import project.Internal.IR.Query.Query
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.Replace_Params.Replace_Params
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
from project.Errors import Integrity_Error, Unsupported_Database_Operation
type DB_Column

View File

@ -49,11 +49,7 @@ from Standard.Table.Errors import all
from Standard.Table.Internal.Filter_Condition_Helpers import make_filter_column
import project.Connection.Connection.Connection
import project.Data.DB_Column.DB_Column
import project.Data.SQL_Query.SQL_Query
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.Data.Take_Drop_Helpers
import project.DB_Column.DB_Column
import project.Internal.Aggregate_Helper
import project.Internal.Base_Generator
import project.Internal.Common.Database_Join_Helper
@ -69,8 +65,12 @@ import project.Internal.IR.Query.Query
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.IR.SQL_Join_Kind.SQL_Join_Kind
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
from project.Data.Take_Drop_Helpers import Take_Drop
import project.SQL_Query.SQL_Query
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
import project.Take_Drop_Helpers
from project.Errors import Integrity_Error, SQL_Error, Table_Not_Found, Unsupported_Database_Operation
from project.Take_Drop_Helpers import Take_Drop
polyglot java import java.sql.JDBCType
polyglot java import java.util.UUID
@ -146,7 +146,7 @@ type DB_Table
_ -> Error.throw (Illegal_Argument.Error "expected 'selector' to be either a Text or an Integer, but got "+(Meta.get_simple_type_name selector)+".")
if internal_column.is_nothing then if_missing else self.make_column internal_column
## ALIAS get cell, cell value
## ALIAS cell value, get cell
ICON select_column
Gets a value from the table.
@ -652,7 +652,7 @@ type DB_Table
filter_by_expression self expression:Text on_problems=Report_Warning =
column = self.evaluate_expression (Expression.Value expression) on_problems
result = self.filter column Filter_Condition.Is_True
Warning.attach (Deprecated.Warning "Standard.Database.Data.DB_Table.DB_Table" "filter_by_expression" "Deprecated: use `filter` with an `Expression` instead.") result
Warning.attach (Deprecated.Warning "Standard.Database.DB_Table.DB_Table" "filter_by_expression" "Deprecated: use `filter` with an `Expression` instead.") result
## ALIAS first, last, sample, slice
GROUP Standard.Base.Selections
@ -833,7 +833,7 @@ type DB_Table
new_ctx = self.context.set_limit max_rows
self.updated_context new_ctx
## ALIAS add column, new column, update column, formula
## ALIAS add column, formula, new column, update column
GROUP Standard.Base.Values
ICON dataframe_map_column
Sets the column value at the given name.
@ -945,7 +945,7 @@ type DB_Table
evaluate_expression : Text | Expression -> Problem_Behavior -> DB_Column ! No_Such_Column | Invalid_Value_Type | Expression_Error
evaluate_expression self expression:(Text | Expression) on_problems:Problem_Behavior=Report_Warning = if expression.is_a Text then self.evaluate_expression (Expression.Value expression) on_problems else
get_column name = self.at name
new_column = Expression.evaluate expression get_column self.make_constant_column "Standard.Database.Data.DB_Column" "DB_Column" DB_Column.var_args_functions
new_column = Expression.evaluate expression get_column self.make_constant_column "Standard.Database.DB_Column" "DB_Column" DB_Column.var_args_functions
problems = Warning.get_all new_column . map .value
result = new_column.rename (self.connection.base_connection.column_naming_helper.sanitize_name expression.expression)
on_problems.attach_problems_before problems <|
@ -1222,7 +1222,7 @@ type DB_Table
# If the key is a result of a join, union or a subquery then it has no notion of primary key.
_ -> Nothing
## ALIAS unique, deduplicate
## ALIAS deduplicate, unique
GROUP Standard.Base.Selections
ICON preparation
Returns the distinct set of rows within the specified columns from the

View File

@ -5,10 +5,8 @@ import Standard.Table.Internal.Problem_Builder.Problem_Builder
from Standard.Table import Aggregate_Column, Join_Kind, Value_Type
import project.Connection.Connection.Connection
import project.Data.DB_Column.DB_Column
import project.Data.DB_Table.DB_Table
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.DB_Column.DB_Column
import project.DB_Table.DB_Table
import project.Internal.Column_Fetcher.Column_Fetcher
import project.Internal.Error_Mapper.Error_Mapper
import project.Internal.IR.Context.Context
@ -23,6 +21,8 @@ import project.Internal.SQL_Type_Mapping.SQL_Type_Mapping
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.Internal.SQLite.SQLite_Dialect
import project.Internal.Statement_Setter.Statement_Setter
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
from project.Errors import SQL_Error, Unsupported_Database_Operation
from project.Internal.Result_Set import result_set_to_table

View File

@ -6,8 +6,8 @@ import Standard.Table.Internal.Widget_Helpers
from Standard.Table.Errors import all
import project.Connection.Connection.Connection
import project.Data.DB_Table.DB_Table
import project.Data.Update_Action.Update_Action
import project.DB_Table.DB_Table
import project.Update_Action.Update_Action
from project.Errors import all
from project.Internal.Upload_Table import all

View File

@ -6,8 +6,8 @@ import Standard.Table.Internal.Widget_Helpers
from Standard.Table.Errors import all
import project.Connection.Connection.Connection
import project.Data.DB_Table.DB_Table
import project.Data.Update_Action.Update_Action
import project.DB_Table.DB_Table
import project.Update_Action.Update_Action
from project.Errors import all
from project.Internal.Upload_Table import all

View File

@ -6,8 +6,8 @@ import Standard.Table.Internal.Problem_Builder.Problem_Builder
from Standard.Table.Data.Aggregate_Column.Aggregate_Column import all
from Standard.Table.Errors import Floating_Point_Equality
import project.Data.DB_Table.DB_Table
import project.Data.Dialect.Dialect
import project.DB_Table.DB_Table
import project.Dialect.Dialect
import project.Internal.IR.Internal_Column.Internal_Column
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.SQL_Type_Reference.SQL_Type_Reference

View File

@ -1,8 +1,7 @@
from Standard.Base import all
import Standard.Base.Errors.Illegal_State.Illegal_State
import project.Data.Column_Constraint.Column_Constraint
import project.Data.SQL.SQL_Builder
import project.Column_Constraint.Column_Constraint
import project.Internal.IR.Context.Context
import project.Internal.IR.From_Spec.From_Spec
import project.Internal.IR.Nulls_Order.Nulls_Order
@ -10,6 +9,7 @@ import project.Internal.IR.Order_Descriptor.Order_Descriptor
import project.Internal.IR.Query.Query
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.IR.SQL_Join_Kind.SQL_Join_Kind
import project.SQL.SQL_Builder
from project.Errors import Unsupported_Database_Operation
from project.Internal.IR.Operation_Metadata import Row_Number_Metadata

View File

@ -7,14 +7,14 @@ import Standard.Table.Internal.Unique_Name_Strategy.Unique_Name_Strategy
from Standard.Table.Errors import Floating_Point_Equality
import project.Connection.Connection.Connection
import project.Data.DB_Table.DB_Table
import project.Data.SQL_Type.SQL_Type
import project.DB_Table.DB_Table
import project.Internal.Helpers
import project.Internal.IR.Context.Context
import project.Internal.IR.From_Spec.From_Spec
import project.Internal.IR.Internal_Column.Internal_Column
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.SQL_Type.SQL_Type
## PRIVATE
make_join_helpers left_table right_table left_column_mapping right_column_mapping =

View File

@ -7,7 +7,7 @@ import Standard.Table.Internal.Lookup_Helpers.Lookup_Column
from Standard.Table import Join_Kind, Value_Type
from Standard.Table.Errors import all
import project.Data.DB_Table.DB_Table
import project.DB_Table.DB_Table
import project.Internal.IR.Context.Context
import project.Internal.IR.From_Spec.From_Spec
import project.Internal.IR.Internal_Column.Internal_Column

View File

@ -2,8 +2,8 @@ from Standard.Base import all
import Standard.Base.Errors.Illegal_Argument.Illegal_Argument
from Standard.Base.Runtime import assert
import project.Data.DB_Column.DB_Column
import project.Data.DB_Table.DB_Table
import project.DB_Column.DB_Column
import project.DB_Table.DB_Table
import project.Internal.IR.Internal_Column.Internal_Column
from project.Errors import Unsupported_Database_Operation

View File

@ -1,6 +1,6 @@
from Standard.Base import all
import project.Data.Column_Constraint.Column_Constraint
import project.Column_Constraint.Column_Constraint
## PRIVATE
type Create_Column_Descriptor

View File

@ -1,8 +1,8 @@
from Standard.Base import all
import project.Data.SQL_Type.SQL_Type
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.SQL_Type.SQL_Type
type Internal_Column
## PRIVATE

View File

@ -1,6 +1,6 @@
from Standard.Base import all
import project.Data.SQL_Type.SQL_Type
import project.SQL_Type.SQL_Type
## PRIVATE

View File

@ -9,12 +9,12 @@ from Standard.Base.Enso_Cloud.Enso_Secret import as_hideable_value
import Standard.Table.Data.Table.Table
import Standard.Table.Data.Type.Value_Type.Value_Type
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.Internal.Column_Fetcher as Column_Fetcher_Module
import project.Internal.In_Transaction.In_Transaction
import project.Internal.SQL_Warning_Helper
import project.Internal.Statement_Setter.Statement_Setter
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
from project.Errors import SQL_Error, SQL_Timeout
from project.Internal.Result_Set import result_set_to_table

View File

@ -7,17 +7,17 @@ from Standard.Base.Metadata.Widget import Single_Choice
import Standard.Table.Data.Table.Table
import Standard.Table.Data.Type.Value_Type.Value_Type
import project.Column_Description.Column_Description
import project.Connection.Connection.Connection
import project.Data.Column_Description.Column_Description
import project.Data.DB_Table.DB_Table
import project.Data.Dialect
import project.Data.SQL_Query.SQL_Query
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.DB_Table.DB_Table
import project.Dialect
import project.Internal.IR.Query.Query
import project.Internal.JDBC_Connection
import project.Internal.Postgres.Postgres_Entity_Naming_Properties
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.SQL_Query.SQL_Query
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
from project.Connection.Connection import make_schema_selector, make_structure_creator, make_table_name_selector, make_table_types_selector
from project.Errors import SQL_Error, Table_Already_Exists, Table_Not_Found
from project.Internal.Result_Set import read_column

View File

@ -12,13 +12,9 @@ from Standard.Table.Data.Aggregate_Column.Aggregate_Column import all
from Standard.Table.Errors import Inexact_Type_Coercion
import project.Connection.Connection.Connection
import project.Data.DB_Column.DB_Column
import project.Data.DB_Table.DB_Table
import project.Data.Dialect
import project.Data.SQL.SQL_Builder
import project.Data.SQL.SQL_Fragment
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.DB_Column.DB_Column
import project.DB_Table.DB_Table
import project.Dialect
import project.Internal.Base_Generator
import project.Internal.Column_Fetcher as Column_Fetcher_Module
import project.Internal.Column_Fetcher.Column_Fetcher
@ -39,6 +35,10 @@ import project.Internal.Replace_Params.Replace_Params
import project.Internal.SQL_Type_Mapping.SQL_Type_Mapping
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.Internal.Statement_Setter.Statement_Setter
import project.SQL.SQL_Builder
import project.SQL.SQL_Fragment
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
from project.Errors import SQL_Error, Unsupported_Database_Operation
from project.Internal.IR.Operation_Metadata import Date_Period_Metadata

View File

@ -5,10 +5,10 @@ import Standard.Table.Data.Type.Value_Type.Bits
import Standard.Table.Data.Type.Value_Type.Value_Type
from Standard.Table.Errors import Inexact_Type_Coercion
import project.Data.SQL_Type.SQL_Type
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.SQL_Type_Mapping
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.SQL_Type.SQL_Type
from project.Errors import Unsupported_Database_Operation
polyglot java import java.sql.Types

View File

@ -3,8 +3,8 @@ from Standard.Base import all
import Standard.Table.Data.Table.Table
import Standard.Table.Internal.Java_Problems
import project.Data.SQL_Type.SQL_Type
import project.Internal.Column_Fetcher.Column_Fetcher
import project.SQL_Type.SQL_Type
from project.Internal.SQL_Warning_Helper import extract_warnings_into_builder
polyglot java import java.sql.ResultSet

View File

@ -5,9 +5,9 @@ import Standard.Base.Errors.Unimplemented.Unimplemented
import Standard.Table.Data.Type.Value_Type.Value_Type
from Standard.Table.Errors import Inexact_Type_Coercion
import project.Data.SQL_Type.SQL_Type
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.SQL_Type.SQL_Type
## PRIVATE
type SQL_Type_Mapping

View File

@ -2,10 +2,10 @@ from Standard.Base import all
import Standard.Base.Errors.Illegal_State.Illegal_State
import project.Connection.Connection.Connection
import project.Data.SQL_Type.SQL_Type
import project.Internal.IR.Context.Context
import project.Internal.IR.Query.Query
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.SQL_Type.SQL_Type
type SQL_Type_Reference
## Refers to the SQL type of a given column, as computed by the Database

View File

@ -7,17 +7,17 @@ from Standard.Base.Metadata.Widget import Single_Choice
import Standard.Table.Data.Table.Table
import Standard.Table.Data.Type.Value_Type.Value_Type
import project.Column_Description.Column_Description
import project.Connection.Connection.Connection
import project.Data.Column_Description.Column_Description
import project.Data.DB_Table.DB_Table
import project.Data.Dialect
import project.Data.SQL_Query.SQL_Query
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.DB_Table.DB_Table
import project.Dialect
import project.Internal.IR.Query.Query
import project.Internal.JDBC_Connection
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.Internal.SQLite.SQLite_Entity_Naming_Properties
import project.SQL_Query.SQL_Query
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
from project.Connection.Connection import make_schema_selector, make_structure_creator, make_table_name_selector, make_table_types_selector
from project.Errors import SQL_Error, Table_Already_Exists, Table_Not_Found
from project.Internal.Upload_Table import first_column_name_in_structure

View File

@ -8,12 +8,9 @@ from Standard.Table import Aggregate_Column, Value_Type
from Standard.Table.Data.Aggregate_Column.Aggregate_Column import all
import project.Connection.Connection.Connection
import project.Data.DB_Column.DB_Column
import project.Data.DB_Table.DB_Table
import project.Data.Dialect
import project.Data.SQL.SQL_Builder
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.DB_Column.DB_Column
import project.DB_Table.DB_Table
import project.Dialect
import project.Internal.Base_Generator
import project.Internal.Column_Fetcher as Column_Fetcher_Module
import project.Internal.Column_Fetcher.Column_Fetcher
@ -33,6 +30,9 @@ import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.Internal.SQLite.SQLite_Error_Mapper.SQLite_Error_Mapper
import project.Internal.SQLite.SQLite_Type_Mapping.SQLite_Type_Mapping
import project.Internal.Statement_Setter.Statement_Setter
import project.SQL.SQL_Builder
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
from project.Errors import SQL_Error, Unsupported_Database_Operation
## PRIVATE

View File

@ -8,12 +8,12 @@ import Standard.Table.Data.Type.Value_Type.Value_Type
import Standard.Table.Data.Type.Value_Type_Helpers
from Standard.Table.Errors import Inexact_Type_Coercion
import project.Data.DB_Column.DB_Column
import project.Data.SQL_Type.SQL_Type
import project.DB_Column.DB_Column
import project.Internal.IR.Internal_Column.Internal_Column
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.Internal.SQL_Type_Mapping
import project.Internal.SQL_Type_Reference.SQL_Type_Reference
import project.SQL_Type.SQL_Type
from project.Errors import Unsupported_Database_Operation
polyglot java import java.sql.Types

View File

@ -11,17 +11,17 @@ import Standard.Table.Internal.Problem_Builder.Problem_Builder
from Standard.Table import Aggregate_Column, Join_Kind, Value_Type
from Standard.Table.Errors import all
import project.Column_Constraint.Column_Constraint
import project.Column_Description.Column_Description
import project.Connection.Connection.Connection
import project.Data.Column_Constraint.Column_Constraint
import project.Data.Column_Description.Column_Description
import project.Data.DB_Table.DB_Table
import project.Data.SQL_Query.SQL_Query
import project.Data.SQL_Statement.SQL_Statement
import project.Data.Update_Action.Update_Action
import project.DB_Table.DB_Table
import project.Internal.In_Transaction.In_Transaction
import project.Internal.IR.Create_Column_Descriptor.Create_Column_Descriptor
import project.Internal.IR.Query.Query
import project.Internal.IR.SQL_Expression.SQL_Expression
import project.SQL_Query.SQL_Query
import project.SQL_Statement.SQL_Statement
import project.Update_Action.Update_Action
from project.Errors import all
from project.Internal.Result_Set import result_set_to_table

View File

@ -1,3 +1,4 @@
import project.Column_Description.Column_Description
import project.Connection.Client_Certificate.Client_Certificate
import project.Connection.Connection_Options.Connection_Options
import project.Connection.Credentials.Credentials
@ -7,14 +8,14 @@ import project.Connection.SQLite_Details.In_Memory
import project.Connection.SQLite_Details.SQLite_Details
import project.Connection.SQLite_Format.SQLite_Format
import project.Connection.SSL_Mode.SSL_Mode
import project.Data.Column_Description.Column_Description
import project.Data.SQL_Query.SQL_Query
import project.Data.Update_Action.Update_Action
import project.SQL_Query.SQL_Query
import project.Update_Action.Update_Action
from project.Connection.Postgres_Details.Postgres_Details import Postgres
from project.Connection.SQLite_Details.SQLite_Details import SQLite
from project.Extensions.Upload_Database_Table import all
from project.Extensions.Upload_In_Memory_Table import all
export project.Column_Description.Column_Description
export project.Connection.Client_Certificate.Client_Certificate
export project.Connection.Connection_Options.Connection_Options
export project.Connection.Credentials.Credentials
@ -24,9 +25,8 @@ export project.Connection.SQLite_Details.In_Memory
export project.Connection.SQLite_Details.SQLite_Details
export project.Connection.SQLite_Format.SQLite_Format
export project.Connection.SSL_Mode.SSL_Mode
export project.Data.Column_Description.Column_Description
export project.Data.SQL_Query.SQL_Query
export project.Data.Update_Action.Update_Action
export project.SQL_Query.SQL_Query
export project.Update_Action.Update_Action
from project.Connection.Postgres_Details.Postgres_Details export Postgres
from project.Connection.SQLite_Details.SQLite_Details export SQLite
from project.Extensions.Upload_Database_Table export all

View File

@ -3,8 +3,8 @@ import Standard.Base.Runtime.State
import Standard.Table.Internal.Vector_Builder.Vector_Builder
import project.Data.SQL_Statement.SQL_Statement
import project.Data.SQL_Type.SQL_Type
import project.SQL_Statement.SQL_Statement
import project.SQL_Type.SQL_Type
## PRIVATE

View File

@ -1,6 +1,6 @@
from Standard.Base import all
import project.Data.SQL.SQL_Fragment
import project.SQL.SQL_Fragment
## PRIVATE
type SQL_Statement

View File

@ -8,7 +8,7 @@ from Standard.Base.Data.Index_Sub_Range import normalize_ranges, resolve_ranges,
from Standard.Table import Set_Mode
import project.Data.DB_Table.DB_Table
import project.DB_Table.DB_Table
from project.Errors import Unsupported_Database_Operation
## PRIVATE

View File

@ -3,9 +3,9 @@ import Standard.Base.Errors.File_Error.File_Error
import Standard.Base.Runtime.Context
import Standard.Base.System.File.Generic.Writable_File.Writable_File
import project.Data.Histogram.Histogram
import project.Data.Matrix.Matrix
import project.Data.Matrix_Error.Matrix_Error
import project.Histogram.Histogram
import project.Matrix.Matrix
import project.Matrix_Error.Matrix_Error
import project.Read_Flag.Read_Flag
import project.Write_Flag.Write_Flag

View File

@ -3,7 +3,7 @@ import Standard.Base.Errors.Illegal_Argument.Illegal_Argument
import Standard.Base.System.File.Generic.Writable_File.Writable_File
import Standard.Base.System.File_Format_Metadata.File_Format_Metadata
import project.Data.Image.Image
import project.Image.Image
## PRIVATE
List comes from org.opencv.imgcodecs.Imgcodecs#imread doc comment.

View File

@ -1,11 +1,11 @@
from Standard.Base import all
import project.Data.Image.Image
import project.Data.Matrix.Matrix
import project.Image.Image
import project.Matrix.Matrix
import project.Read_Flag.Read_Flag
import project.Write_Flag.Write_Flag
export project.Data.Image.Image
export project.Data.Matrix.Matrix
export project.Image.Image
export project.Matrix.Matrix
export project.Read_Flag.Read_Flag
export project.Write_Flag.Write_Flag

View File

@ -1,7 +1,7 @@
from Standard.Base import all
import project.Data.Image.Image
import project.Data.Matrix_Error.Matrix_Error
import project.Image.Image
import project.Matrix_Error.Matrix_Error
polyglot java import org.enso.image.data.Matrix as Java_Matrix
polyglot java import org.opencv.core.Mat

View File

@ -469,7 +469,7 @@ filter_blank_rows table when treat_nans_as_blank =
Currently, it relies on a hack - it checks if the object has a method
`is_table` and if it returns `True`.
is_column obj =
known_types = ["Standard.Table.Data.Column.Column", "Standard.Database.Data.DB_Column.DB_Column"]
known_types = ["Standard.Table.Data.Column.Column", "Standard.Database.DB_Column.DB_Column"]
known_types.contains (Meta.get_qualified_type_name obj)
## PRIVATE

View File

@ -1,7 +1,7 @@
from Standard.Base import all
import Standard.Database.Data.DB_Table.DB_Table
import Standard.Database.Data.SQL_Type.SQL_Type
import Standard.Database.DB_Table.DB_Table
import Standard.Database.SQL_Type.SQL_Type
import project.Helpers

View File

@ -5,8 +5,8 @@ import Standard.Table.Data.Column.Column
import Standard.Table.Data.Row.Row
import Standard.Table.Data.Table.Table
import Standard.Database.Data.DB_Column.DB_Column
import Standard.Database.Data.DB_Table.DB_Table
import Standard.Database.DB_Column.DB_Column
import Standard.Database.DB_Table.DB_Table
import project.Helpers

View File

@ -1,7 +1,7 @@
from Standard.Base import all
from Standard.Image import Image, Matrix
import Standard.Image.Data.Matrix_Error.Matrix_Error
import Standard.Image.Matrix_Error.Matrix_Error
from Standard.Test import all

View File

@ -1,7 +1,7 @@
from Standard.Base import all
from Standard.Image import Matrix
import Standard.Image.Data.Matrix_Error.Matrix_Error
import Standard.Image.Matrix_Error.Matrix_Error
from Standard.Test import all

View File

@ -4,7 +4,7 @@ import Standard.Base.Errors.Common.Arithmetic_Error
import Standard.Base.Errors.Common.Incomparable_Values
import Standard.Base.Errors.Illegal_Argument.Illegal_Argument
import Standard.Base.Meta.Type
import Standard.Database.Data.DB_Column.DB_Column
import Standard.Database.DB_Column.DB_Column
import Standard.Database.Internal.Replace_Params.Replace_Params
from Standard.Table import Value_Type, Column_Ref
@ -12,7 +12,7 @@ from Standard.Table.Data.Type.Value_Type import Bits
from Standard.Table.Errors import all
from Standard.Database.Errors import all
import Standard.Database.Data.DB_Table.DB_Table
import Standard.Database.DB_Table.DB_Table
from Standard.Test import all

View File

@ -3,7 +3,7 @@ import Standard.Base.Errors.Common.Assertion_Error
import Standard.Base.Errors.Empty_Error.Empty_Error
import Standard.Base.Errors.Illegal_Argument.Illegal_Argument
from Standard.Database.Data.DB_Table import MAX_LITERAL_ELEMENT_COUNT
from Standard.Database.DB_Table import MAX_LITERAL_ELEMENT_COUNT
from Standard.Test import all

View File

@ -2,7 +2,7 @@ from Standard.Base import all
from Standard.Table import all
import Standard.Database.Data.DB_Column.DB_Column
import Standard.Database.DB_Column.DB_Column
from Standard.Test import Test
import Standard.Test.Extensions

View File

@ -5,8 +5,8 @@ from Standard.Table import Sort_Column, Value_Type, Blank_Selector, Aggregate_Co
from Standard.Table.Errors import No_Input_Columns_Selected, Missing_Input_Columns, No_Such_Column
from Standard.Database import all
import Standard.Database.Data.Dialect
import Standard.Database.Data.SQL_Type.SQL_Type
import Standard.Database.Dialect
import Standard.Database.SQL_Type.SQL_Type
from Standard.Database.Errors import Unsupported_Database_Operation
from Standard.Test import all

View File

@ -7,9 +7,9 @@ import Standard.Table.Data.Type.Value_Type.Bits
from Standard.Table import Table, Value_Type, Aggregate_Column, expr
from Standard.Table.Errors import Invalid_Column_Names, Inexact_Type_Coercion, Duplicate_Output_Column_Names
import Standard.Database.Data.DB_Column.DB_Column
import Standard.Database.Data.DB_Table.DB_Table
import Standard.Database.Data.SQL_Type.SQL_Type
import Standard.Database.DB_Column.DB_Column
import Standard.Database.DB_Table.DB_Table
import Standard.Database.SQL_Type.SQL_Type
import Standard.Database.Internal.Postgres.Pgpass
import Standard.Database.Internal.Postgres.Postgres_Entity_Naming_Properties
import Standard.Database.Internal.Replace_Params.Replace_Params

View File

@ -4,7 +4,7 @@ import Standard.Table.Data.Type.Value_Type.Bits
from Standard.Table import Aggregate_Column, Value_Type, Table
from Standard.Table.Errors import Invalid_Value_Type, Inexact_Type_Coercion
import Standard.Database.Data.Dialect
import Standard.Database.Dialect
import Standard.Database.Extensions.Upload_Database_Table
import Standard.Database.Extensions.Upload_In_Memory_Table
import Standard.Database.Internal.SQLite.SQLite_Type_Mapping

View File

@ -15,7 +15,7 @@ from Standard.Table.Errors import all
from Standard.Database import all
from Standard.Database.Errors import all
from Standard.Database.Internal.Upload_Table import default_key_columns
import Standard.Database.Data.Column_Constraint.Column_Constraint
import Standard.Database.Column_Constraint.Column_Constraint
from Standard.Test import all
import Standard.Test.Test_Environment

View File

@ -1,7 +1,7 @@
from Standard.Base import all
import Standard.Database.Data.DB_Table.DB_Table
import Standard.Database.Data.DB_Column.DB_Column
import Standard.Database.DB_Table.DB_Table
import Standard.Database.DB_Column.DB_Column
import Standard.Table.Data.Table.Table
import Standard.Table.Data.Column.Column

View File

@ -3,7 +3,7 @@ from Standard.Base import all
from Standard.Table import Table, Aggregate_Column, Value_Type
from Standard.Database import all
import Standard.Database.Data.DB_Table.DB_Table
import Standard.Database.DB_Table.DB_Table
import Standard.Visualization.Table.Visualization