Skip to content

Commit

Permalink
Small changes to align with pub expected folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Achilleas Anagnostopoulos committed Nov 26, 2014
1 parent 1d1681f commit 1f1d4e4
Show file tree
Hide file tree
Showing 95 changed files with 47 additions and 46 deletions.
10 changes: 0 additions & 10 deletions dart_cassandra_cql.dart

This file was deleted.

10 changes: 10 additions & 0 deletions lib/dart_cassandra_cql.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
library dart_cassandra_cql;

// Client API exports
export "driver/exceptions.dart" show AuthenticationException, CassandraException, NoHealthyConnectionsException, DriverException;
export "driver/types.dart";
export "driver/query.dart";
export "driver/protocol.dart" show ResultMessage, RowsResultMessage, VoidResultMessage, SetKeyspaceResultMessage, SchemaChangeResultMessage, EventMessage, Authenticator, PasswordAuthenticator;
export "driver/connection.dart" hide AsyncQueue;
export "driver/client.dart";
export "driver/stream.dart";
8 changes: 4 additions & 4 deletions lib/client.dart → lib/driver/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import "dart:collection";
import "dart:typed_data";

// Internal lib dependencies
import "connection.dart";
import "protocol.dart";
import "query.dart";
import "exceptions.dart";
import 'connection.dart';
import 'protocol.dart';
import 'query.dart';
import 'exceptions.dart';

// Client impl
part "client/client.dart";
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions lib/connection.dart → lib/driver/connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import "dart:io";
import "dart:typed_data";

// Internal lib dependencies
import "logging.dart";
import "types.dart";
import "protocol.dart";
import "query.dart";
import "exceptions.dart";
import 'logging.dart';
import 'types.dart';
import 'protocol.dart';
import 'query.dart';
import 'exceptions.dart';

// Connection pools
part "connection/async_queue.dart";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/protocol.dart → lib/driver/protocol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import "dart:collection";
import "dart:convert";

// Internal lib dependencies
import "types.dart";
import "stream.dart";
import "query.dart";
import 'types.dart';
import 'stream.dart';
import 'query.dart';
import 'exceptions.dart';

// Protocol frame readers
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/query.dart → lib/driver/query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "dart:typed_data";
import "dart:collection";

// Internal lib dependencies
import "types.dart";
import 'types.dart';

// Query
part "query/query_interface.dart";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/stream.dart → lib/driver/stream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "dart:convert";
import "dart:math";

// Internal lib dependencies
import "types.dart";
import 'types.dart';

// Block reader/writers
part "stream/chunked_input_reader.dart";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: dart_cassandra_cql
version: 0.1.0
author: Achilleas Anagnostopoulos <[email protected]>
author: Achilleas Anagnostopoulos
documentation:
description: Dart driver for apache Cassandra
homepage: https://github.com/achilleasa/dart_cassandra_cql
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion test/lib/chunked_input_reader_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library dart_cassandra_cql.tests.chunked_input_reader;

import "package:unittest/unittest.dart";

import "../../lib/stream.dart";
import '../../lib/driver/stream.dart';

main({bool enableLogger : true}) {

Expand Down
2 changes: 1 addition & 1 deletion test/lib/client_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "dart:typed_data";
import "package:unittest/unittest.dart";
import "mocks/mocks.dart" as mock;
import "mocks/custom.dart" as custom;
import "../../dart_cassandra_cql.dart" as cql;
import '../../lib/dart_cassandra_cql.dart' as cql;

main({bool enableLogger : true}) {
if( enableLogger ){
Expand Down
4 changes: 2 additions & 2 deletions test/lib/connection_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import "dart:async";
import "package:unittest/unittest.dart";
import "mocks/mocks.dart" as mock;
import "mocks/compression.dart" as compress;
import "../../dart_cassandra_cql.dart" as cql;
import "../../lib/exceptions.dart" as cqlEx;
import '../../lib/dart_cassandra_cql.dart' as cql;
import '../../lib/driver/exceptions.dart' as cqlEx;

main({bool enableLogger : true}) {
if( enableLogger ){
Expand Down
2 changes: 1 addition & 1 deletion test/lib/enum_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library dart_cassandra_cql.tests.enums;

import "dart:mirrors";
import "package:unittest/unittest.dart";
import "../../lib/types.dart";
import '../../lib/driver/types.dart';

Type _getMethodArgType(MethodMirror methodMirror) {
ParameterMirror paramMirror = methodMirror.parameters.first;
Expand Down
6 changes: 3 additions & 3 deletions test/lib/frame_parser_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import "dart:async";
import "package:unittest/unittest.dart";
import "mocks/mocks.dart" as mock;

import "../../lib/types.dart";
import "../../lib/protocol.dart";
import "../../lib/exceptions.dart";
import '../../lib/driver/types.dart';
import '../../lib/driver/protocol.dart';
import '../../lib/driver/exceptions.dart';

main({bool enableLogger : true}) {
if( enableLogger ){
Expand Down
8 changes: 4 additions & 4 deletions test/lib/frame_writer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ library dart_cassandra_cql.tests.frame_writer;
import "package:unittest/unittest.dart";
import "mocks/mocks.dart" as mock;

import "../../lib/types.dart";
import "../../lib/protocol.dart";
import "../../lib/stream.dart";
import "../../lib/exceptions.dart";
import '../../lib/driver/types.dart';
import '../../lib/driver/protocol.dart';
import '../../lib/driver/stream.dart';
import '../../lib/driver/exceptions.dart';

main({bool enableLogger : true}) {
if( enableLogger ){
Expand Down
2 changes: 1 addition & 1 deletion test/lib/mocks/custom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library dart_cassandra_cql.tests.custom;

import "dart:typed_data";
import "dart:convert";
import "../../../lib/types.dart";
import '../../../lib/driver/types.dart';

class CustomJson implements CustomType {
Map payload;
Expand Down
6 changes: 3 additions & 3 deletions test/lib/mocks/mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import "dart:typed_data";
import "dart:io";
import "dart:async";
import "package:logging/logging.dart";
import "../../../lib/stream.dart";
import "../../../lib/protocol.dart";
import "../../../lib/types.dart";
import '../../../lib/driver/stream.dart';
import '../../../lib/driver/protocol.dart';
import '../../../lib/driver/types.dart';

final Logger mockLogger = new Logger("MockLogger");
bool initializedLogger = false;
Expand Down
2 changes: 1 addition & 1 deletion test/lib/pool_config_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library dart_cassandra_cql.tests.pool_config;

import "package:unittest/unittest.dart";

import "../../dart_cassandra_cql.dart" as cql;
import '../../lib/dart_cassandra_cql.dart' as cql;

main({bool enableLogger : true}) {

Expand Down
2 changes: 1 addition & 1 deletion test/lib/query_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "dart:typed_data";
import "dart:io";
import "package:unittest/unittest.dart";

import "../../dart_cassandra_cql.dart" as cql;
import '../../lib/dart_cassandra_cql.dart' as cql;
import "mocks/mocks.dart" as mock;
import "mocks/custom.dart" as custom;

Expand Down
4 changes: 2 additions & 2 deletions test/lib/serialization_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import "dart:io";
import "dart:math";
import "package:unittest/unittest.dart";

import "../../lib/stream.dart";
import "../../lib/types.dart";
import '../../lib/driver/stream.dart';
import '../../lib/driver/types.dart';
import "mocks/mocks.dart" as mock;
import 'mocks/custom.dart' as custom;

Expand Down
2 changes: 1 addition & 1 deletion test/lib/type_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "dart:typed_data";
import "dart:io";
import "package:unittest/unittest.dart";

import "../../lib/types.dart";
import '../../lib/driver/types.dart';
import 'mocks/mocks.dart' as mock;
import "mocks/custom.dart" as custom;

Expand Down

0 comments on commit 1f1d4e4

Please sign in to comment.